-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-windowsregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.
Milestone
Description
Zig Version
zig-linux-x86_64-0.12.0-dev.2334+aef1da163
Steps to Reproduce and Observed Behavior
At https://github.com/upx/upx-test-build-with-zig we are continuously testing building UPX for 104 different build targets, and it seems that recently zig cc -target x86_64-windows.win7-gnu stopped working
Possible cause: recent upgrade from msvcrt to ucrt
# create a simple main() file
echo 'int main() { return 0; }' > x.c
# works
./zig-linux-x86_64-0.12.0-dev.2285+b80cad248/zig cc -target x86_64-windows.win7-gnu x.c
# FAILS
./zig-linux-x86_64-0.12.0-dev.2334+aef1da163/zig cc -target x86_64-windows.win7-gnu x.c
zig-linux-x86_64-0.12.0-dev.2334+aef1da163/lib/libc/mingw/libsrc/dloadhelper.c:31:3: error: unknown type name 'PDELAYLOAD_FAILURE_DLL_CALLBACK'
31 | PDELAYLOAD_FAILURE_DLL_CALLBACK FailureDllHook,
| ^
zig-linux-x86_64-0.12.0-dev.2334+aef1da163/lib/libc/mingw/libsrc/dloadhelper.c:52:66: error: use of undeclared identifier '__pfnDliFailureHook2'
52 | return ResolveDelayLoadedAPI(&__ImageBase, DelayloadDescriptor, __pfnDliFailureHook2, DelayLoadFailureHook, ThunkAddress, 0);
| ^
2 errors generated.Expected Behavior
No error.
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-windowsregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.