Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloned template doesn't build #17

Open
matkuki opened this issue Sep 20, 2024 · 1 comment
Open

Cloned template doesn't build #17

matkuki opened this issue Sep 20, 2024 · 1 comment

Comments

@matkuki
Copy link

matkuki commented Sep 20, 2024

  • OS: Windows 10 x64
  • Zig 0.13.0 x86_64 (installed via Chocolatey)

When building with zig build run his error is thrown:

warning: 'demo' is broken (disabled by default)
warning: 'dev-tools' is broken (disabled by default)
warning: 'fade' is broken (disabled by default)
warning: 'many-counters' is broken (disabled by default)
warning: 'notepad' is broken (disabled by default)
warning: 'osm-viewer' is broken (disabled by default)
warning: 'slide-viewer' is broken (disabled by default)
run
└─ run capy-template
   └─ zig build-exe capy-template Debug native 1 errors
C:\Users\matic\AppData\Local\zig\p\12202d8a1a46e0e78dc366ba3cb9843821b65ed3d0e110cf705bdeaba9eb8f75a
c75\src\backends\win32\res\resource.rc:1:1: error: zig rc exited with code 1
error: error(compilation): zig rc failed with stderr:
error: the following build command failed with exit code 5:
C:\Users\matic\AppData\Local\zig\o\db63b730956bed3aea5ec95246af3f16\resinator.exe C:\ProgramData\cho
colatey\lib\zig\tools\zig-windows-x86_64-0.13.0\lib --zig-integration /:depfile E:\Zig\first_test\zi
g-template\.zig-cache\tmp\e352365747828c65-resource.d.json /:depfile-fmt json /x /:auto-includes any
 -D_DEBUG -- C:\Users\matic\AppData\Local\zig\p\12202d8a1a46e0e78dc366ba3cb9843821b65ed3d0e110cf705b
deaba9eb8f75ac75\src\backends\win32\res\resource.rc E:\Zig\first_test\zig-template\.zig-cache\tmp\c0
bd650f42c0deba-resource.res


error: the following command failed with 1 compilation errors:
C:\ProgramData\chocolatey\lib\zig\tools\zig-windows-x86_64-0.13.0\zig.exe build-exe -ODebug --dep ca
py -Mroot=E:\Zig\first_test\zig-template\src\main.zig -lcomctl32 -lgdi32 -lgdiplus C:\Users\matic\Ap
pData\Local\zig\p\12202d8a1a46e0e78dc366ba3cb9843821b65ed3d0e110cf705bdeaba9eb8f75ac75\src\backends\
win32\res\resource.rc -ODebug --dep zigimg --dep zigwin32 -Mcapy=C:\Users\matic\AppData\Local\zig\p\
12202d8a1a46e0e78dc366ba3cb9843821b65ed3d0e110cf705bdeaba9eb8f75ac75\src\main.zig -Mzigimg=C:\Users\
matic\AppData\Local\zig\p\1220dc313944ea71a87b4f54f26b1427ad2992a721a221cb42f7f80b8eee4e4944b7\zigim
g.zig -Mzigwin32=C:\Users\matic\AppData\Local\zig\p\12202d8a1a46e0e78dc366ba3cb9843821b65ed3d0e110cf
705bdeaba9eb8f75ac75\vendor\zigwin32\win32.zig --cache-dir E:\Zig\first_test\zig-template\.zig-cache
 --global-cache-dir C:\Users\matic\AppData\Local\zig --name capy-template --subsystem console --list
en=-
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run capy-template transitive failure
   └─ zig build-exe capy-template Debug native 1 errors
error: the following build command failed with exit code 1:
E:\Zig\first_test\zig-template\.zig-cache\o\4dda4646c06de64b5be33eb088a7c991\build.exe C:\ProgramDat
a\chocolatey\lib\zig\tools\zig-windows-x86_64-0.13.0\zig.exe E:\Zig\first_test\zig-template E:\Zig\f
irst_test\zig-template\.zig-cache C:\Users\matic\AppData\Local\zig --seed 0xc37d78ee -Z8d6e7f1e777ac212 run
@zenith391
Copy link
Member

It looks like it's a bug in Zig itself, so the only fix I see would be to use a more recent Zig version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants