Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Zig 0.16-dev error on build after pc reset

未關閉
#32 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

allyourcodebase/ffmpeg 的其他 Issue

查看 allyourcodebase/ffmpeg 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。