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
[zlib] build failure with vcpkg #34597
Comments
I de-installed everything and installed again only VS 2022 Release edition and not the preview that I had before. Again the same error is produced.
vcpkg.json file used
I don't think I am using a community-triplet but rather a tested triplet x64-windows |
I installed a new VM win11 with only VS2022 and git. I checked the logs and saw that vcpkg was downloading cmake in order to make the build. Then I also changed cmake version to 3.27.7 (latest release) and again everything worked fine. I installed again CMAKE 3.28-rc2 in mt PC and again the problem reproduced. So CMAKE 3.28 along with something else in combination in my PC (which I still do not know) make vcpkg build to fail. |
Got the same error with both CMake 3.28.0-rc1 and CMake 3.28.0-rc2 in windows sandbox. However I use cmd.exe instead of VS console. Command line:
Also works fine with CMake 3.27.7 without reboot. Thanks @PTamis to find it. Edit: created a topic on cmake forum for that issue. Hopefully it will allow kitware to fix that issue before the non rc release. |
Can someone who can reproduce the issue please bisect to find out what broke things? |
Thanks @mathstuf for the recommendation.
I don't know if it helps but the exe that breaks staff is |
Thanks for bisecting! Could you bisect that MR to try and narrow it down further? |
Hello, I did bisect again as asked.
Indeed, when I build CMAKE Hope it helps further. |
Issue found in CMAKE. |
Hello I am trying to build zlib in my Windows 11 PC but it emits errors.
If I try another package like bzip2 it is working fine. But it fails all the time with the zlib.
Host Environment
Host: x64-windows 11
Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33126.1 for x64
vcpkg-tool version: git log -1
commit 2815578 (HEAD -> master, origin/master, origin/HEAD)
Visual Studio Community Edition 2022 (Preview), 2019, 2017 are installed with C++.
Windows 10 SDK is also install, multiple versions (10.0.14, 15, 16, 17, 18 ...)
RAM: 64GB
To Reproduce
.\vcpkg install zlib
Failure logs
.\vcpkg install zlib --triplet=x64-windows-vs22
I also attach the diagnostic logs
C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\install-x64-windows-vs22-dbg-out.log
C:\Users\PTamt\source\repos\VCPKG\
install-x64-windows-vs22-dbg-out-1.log
install-x64-windows-vs22-dbg-out.log
I tried to run execute the commands stated in the logs by hand:
C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\x64-windows-vs22-dbg> C:/PROGRA~1/CMake/bin/cmcldeps.exe RC C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\src\v1.3-8825ee792f.clean\win32\zlib1.rc CMakeFiles\zlib.dir\win32\zlib1.rc.res.d CMakeFiles\zlib.dir\win32\zlib1.rc.res "Note: including file: " "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33126/bin/Hostx64/x64/cl.exe" "C:\PROGRA~2\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe" -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -I C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\src\v1.3-8825ee792f.clean -I C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\x64-windows-vs22-dbg -c65001 /DWIN32 -D_DEBUG /fo CMakeFiles\zlib.dir\win32\zlib1.rc.res C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\src\v1.3-8825ee792f.clean\win32\zlib1.rc
output
cl : Command line warning D9002 : ignoring unknown option '-c65001' C:\Users\PTamt\source\repos\VCPKG\vcpkg\buildtrees\zlib\src\v1.3-8825ee792f.clean\win32\zlib1.rc(1): fatal error C1083: Cannot open include file: 'winver.h': No such file or directory
So it seems that
winver.h
seems not to be found. But the file exists in my machine under path:C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um
What it might goes wrong?
Does vcpkg needs any includes in order to work and find that file?
I am at your disposal for any additional logs
The text was updated successfully, but these errors were encountered: