Zig 0.16-dev error on build after pc reset
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- zig
- 領域
- build-system
研究方向
使用 Zig 0.16.0-dev.3061+9b1eaad13 執行 zig build gui 時,快取的 libressl build.zig 在第 62 行附近回報失敗。首先重現該 build 並檢查相依性版本;完成的標準是:重新啟動 PC 後,不刪除 zig-pkg、.zig-cache 或全域 Zig 快取,package 即可完成建置。
由索引模型根據 Issue 內容生成。
描述
Hi, I am currently trying to implement screencasting on Wayland for Awebo https://codeberg.org/awebo-chat/awebo
(I also plan to switch the audio backend from PulseAudio to PipeWire after I finished my goal).
I have this weird behaviour, I don't know exactly why it happens:
When I clone this package and try to build it, everything works fine. But after restarting my pc, I can't build this package, because some dependencies do not comply with the latest 0.16 build.zig changes. I can fix that by deleting zig-pkg, .zig-cache and the entire zig cache in /home/user/.cache/zig
I get the following errors (I cut it, it is obv that it fails to parse the build.zig of some dpeendencies):
/home/user/.local/bin/zig-awebo/zig build gui
zig-pkg/libressl-4.0.0--kqV4OjTAADhw9rD-tZaxFy2KPrSU4Bt9FOi9UZe-Zjl/build.zig:62:30: error: no field or member function named 'addCSourceFiles' in 'Build.Step.Compile'
libressl_common.libcrypto.addCSourceFiles(.{
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/user/.local/bin/zig-awebo/lib/std/Build/Step/Compile.zig:1:1: note: struct declared here
const Compile = @This();
^~~~~
I am using:
/home/user/.local/bin/zig-awebo/zig version
0.16.0-dev.3061+9b1eaad13
This happens only with this package (and when I compile Awebo, because it depends on this package).
I will try to update some of the dependencies and report back if it fixes the issue.
Note: New to Zig, heavily clueless, could very likely be my mistake
EDIT: Updated the dependencies that had issues, now everything works fine, even after restarting my pc.
- 主要語言
- C
- 星號
- 328
- 分支
- 58
- 平均合併
- 8 天 12 小時
- 30 天內合併 PR
- 2
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
allyourcodebase/ffmpeg 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
allyourcodebase/ffmpeg#51 ·
-
難度 5/5 一週以上 新手友好度 25/100
allyourcodebase/ffmpeg#39 · 3 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 52/100
allyourcodebase/ffmpeg#31 · 1 則留言 ·
-
enhancement
難度 4/5 3-5 天 新手友好度 45/100
allyourcodebase/ffmpeg#30 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
allyourcodebase/ffmpeg#16 · 1 則留言 ·
查看 allyourcodebase/ffmpeg 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
FujiNetWIFI/fujinet-firmware#2079 ·
維護者通常 1 天內回覆
-
bug Official Image release/25.12 Supported Device target/kirkwood
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
area/archive bug
難度 2/5 1-3 小時 新手友好度 76/100
DarkFlippers/qUnleashed#374 ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 84/100
VirusTotal/yara#2255 ·
-
難度 2/5 1-3 小時 新手友好度 66/100