Skip to content

MSVC build failing #1

@hazeycode

Description

@hazeycode

On Windows 11:

PS C:\Users\rumco\Desktop\zig-gamedev\libs\ztracy> zig build -Dtarget=x86_64-windows-msvc
install
└─ install tracy
   └─ zig build-lib tracy Debug x86_64-windows-msvc failure
error: error: unable to find native libc installation: LibCStdLibHeaderNotFound

error: the following command exited with error code 1:
C:\Users\rumco\bin\zig\0.13.0-dev.351+64ef45eb0\files\zig.exe build-lib -cflags -DTRACY_ENABLE  -fno-sanitize=undefined -- C:\Users\rumco\Desktop\zig-gamedev\libs\ztracy\libs\tracy\TracyClient.cpp -lws2_32 -ldbghelp -ODebug -target x86_64-windows-msvc -mcpu baseline -I C:\Users\rumco\Desktop\zig-gamedev\libs\ztracy\libs\tracy\tracy -Mroot -lc --cache-dir C:\Users\rumco\Desktop\zig-gamedev\libs\ztracy\.zig-cache --global-cache-dir C:\Users\rumco\AppData\Local\zig --name tracy -static --listen=-
Build Summary: 1/6 steps succeeded; 1 failed (disable with --summary none)

Cross-compiling from Linux:

~/projects/zig-gamedev/libs/ztracy$ zig build -Dtarget=x86_64-windows-msvc
install
└─ install tracy
   └─ zig build-lib tracy Debug x86_64-windows-msvc failure
error: error: unable to find Dynamic system library 'ws2_32' using strategy 'paths_first'. searched paths: none
error: unable to find Dynamic system library 'dbghelp' using strategy 'paths_first'. searched paths: none

error: the following command exited with error code 1:
/home/chris/zig/0.12.0-dev.2063+804cee3b9/files/zig build-lib -cflags -DTRACY_ENABLE  -D_WIN32_WINNT=0x601 -fno-sanitize=undefined -- /home/chris/projects/zig-gamedev/libs/ztracy/libs/tracy/TracyClient.cpp -lws2_32 -ldbghelp -ODebug -target x86_64-windows-msvc -mcpu baseline -I /home/chris/projects/zig-gamedev/libs/ztracy/libs/tracy/tracy -lc --cache-dir /home/chris/projects/zig-gamedev/libs/ztracy/zig-cache --global-cache-dir /home/chris/.cache/zig --name tracy -static --listen=-

Regression introduced by adoption of Zig packager manager in zig-gamedev/zig-gamedev@1a80092

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions