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

Use of fread() lead to compile error on 64-bit Windows when optimize = ReleaseSafe #419

Open
chung-leong opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chung-leong
Copy link
Owner

install
+- WriteFile
   +- zig build-lib call-fread ReleaseSafe x86_64-windows 1 errors
error: lld-link: undefined symbol: __mingw_call_fread
    note: referenced by C:\Users\Chung Leong\zigar\zigar-compiler\zig\exporter.zig:502
    note:               C:\Users\CHUNGL~1\AppData\Local\Temp\zigar-build\call-fread-317d5bfc\.zig-cache\o\77f1aa5234a7d36b63b890d6db2e2a0c\call-fread.dll.obj:(exporter.createThunk__anon_8781.ns_regular.invokeFunction)
error: the following command failed with 1 compilation errors:
C:\Users\Chung Leong\.zvm\0.13.0\zig.exe build-lib -OReleaseSafe -target x86_64-windows -mcpu baseline --dep module -Mroot=C:\Users\Chung Leong\zigar\zigar-compiler\zig\stub-c.zig -I C:\Users\Chung Leong\zigar\zigar-compiler\test\integration\function-calling -Mmodule=C:\Users\Chung Leong\zigar\zigar-compiler\test\integration\function-calling\call-fread.zig -lc --cache-dir C:\Users\CHUNGL~1\AppData\Local\Temp\zigar-build\call-fread-317d5bfc\.zig-cache --global-cache-dir C:\Users\Chung Leong\AppData\Local\zig --name call-fread -dynamic --listen=-
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
+- WriteFile transitive failure
   +- zig build-lib call-fread ReleaseSafe x86_64-windows 1 errors
   +- zig build-lib call-fread ReleaseSafe x86_64-windows (reused)
error: the following build command failed with exit code 1:
C:\Users\CHUNGL~1\AppData\Local\Temp\zigar-build\call-fread-317d5bfc\.zig-cache\o\718dd4753efae1853b8f7a8babc57d24\build.exe C:\Users\Chung Leong\.zvm\0.13.0\zig.exe C:\Users\CHUNGL~1\AppData\Local\Temp\zigar-build\call-fread-317d5bfc C:\Users\CHUNGL~1\AppData\Local\Temp\zigar-build\call-fread-317d5bfc\.zig-cache C:\Users\Chung Leong\AppData\Local\zig --seed 0xf641cc2b -Z84abd6d9050203ce -Doptimize=ReleaseSafe -Dtarget=x86_64-windows
@chung-leong chung-leong added the bug Something isn't working label Jul 5, 2024
@chung-leong chung-leong self-assigned this Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant