Skip to content

Find native include and libraries is broken with msvc ABI #9002

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

Closed
mlarouche opened this issue Jun 5, 2021 · 0 comments · Fixed by #9351
Closed

Find native include and libraries is broken with msvc ABI #9002

mlarouche opened this issue Jun 5, 2021 · 0 comments · Fixed by #9351
Labels
bug Observed behavior contradicts documented or intended behavior os-windows
Milestone

Comments

@mlarouche
Copy link
Contributor

I think #8878 broke the detection of MSVC Windows SDK find in Zig. I can't find windows.h or any Windows library when using the msvc ABI

Tried with Zig version 0.9.0-dev.5423+7babff0bc

❯ zig build -Dtarget=native-native-msvc --verbose
C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe build-exe C:\Programmation\Hochelag\src\main.zig -lc -ld3d12 -ldxgi -ld3dcompiler -ldxguid --cache-dir C:\Programmation\Hochelag\zig-cache --global-cache-dir C:\Users\micha\AppData\Local\zig --name Hochelag -target native-native-msvc -mcpu=skylake-sgx --enable-cache
lld-link: error: could not open 'msvcrtd.lib': no such file or directory
lld-link: error: could not open 'vcruntimed.lib': no such file or directory
lld-link: error: could not open 'ucrtd.lib': no such file or directory
lld-link: error: could not open 'legacy_stdio_definitions.lib': no such file or directory
lld-link: error: could not open 'kernel32.lib': no such file or directory
lld-link: error: could not open 'ntdll.lib': no such file or directory
lld-link: error: could not open 'd3dcompiler.lib': no such file or directory
lld-link: error: could not open 'dxguid.lib': no such file or directory
error: LLDReportedFailure
Hochelag...The following command exited with error code 1:
C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe build-exe C:\Programmation\Hochelag\src\main.zig -lc -ld3d12 -ldxgi -ld3dcompiler -ldxguid --cache-dir C:\Programmation\Hochelag\zig-cache --global-cache-dir C:\Users\micha\AppData\Local\zig --name Hochelag -target native-native-msvc -mcpu=skylake-sgx --enable-cache
error: the following build command failed with exit code 1:
C:\Programmation\Hochelag\zig-cache\o\1163269d18ecaacb76d29494e60535eb\build.exe C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe C:\Programmation\Hochelag C:\Programmation\Hochelag\zig-cache C:\Users\micha\AppData\Local\zig -Dtarget=native-native-msvc --verbose
@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior os-windows labels Jun 6, 2021
@andrewrk andrewrk added this to the 0.8.1 milestone Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior os-windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants