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

[zlib] x64-windows-static build failure #39317

Closed
nnaem opened this issue Jun 16, 2024 · 4 comments
Closed

[zlib] x64-windows-static build failure #39317

nnaem opened this issue Jun 16, 2024 · 4 comments
Assignees
Labels
category:question This issue is a question

Comments

@nnaem
Copy link

nnaem commented Jun 16, 2024

Operating system

Windows 11

Compiler

MSVC

Steps to reproduce the behavior

`./vcpkg install zlib:x64-windows-static`

Failure logs

-- Configuring x64-windows-static
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/vcpkg/buildtrees/zlib/x64-windows-static-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\zlib\config-x64-windows-static-dbg-CMakeCache.txt.log
      C:\vcpkg\buildtrees\zlib\config-x64-windows-static-rel-CMakeCache.txt.log
      C:\vcpkg\buildtrees\zlib\config-x64-windows-static-dbg-CMakeConfigureLog.yaml.log
      C:\vcpkg\buildtrees\zlib\config-x64-windows-static-rel-CMakeConfigureLog.yaml.log
      C:\vcpkg\buildtrees\zlib\config-x64-windows-static-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
  ports/zlib/portfile.cmake:17 (vcpkg_cmake_configure)
  scripts/ports.cmake:191 (include)


error: building zlib:x64-windows-static failed with: BUILD_FAILED
Elapsed time to handle zlib:x64-windows-static: 1.3 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+zlib
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[zlib]+Build+error+on+x64-windows-static&body=Copy+issue+body+from+C%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

config-x86-windows-static-dbg-CMakeCache.txt.log
config-x86-windows-static-dbg-CMakeConfigureLog.yaml.log
config-x64-windows-static-out.log
config-x64-windows-static-rel-CMakeCache.txt.log
config-x64-windows-static-rel-CMakeConfigureLog.yaml.log

Additional context

Fresh Windows 11 install.

@nnaem nnaem added the category:port-bug The issue is with a library, which is something the port should already support label Jun 16, 2024
@Cheney-W Cheney-W changed the title zlib:x64-windows-static build failure [zlib] x64-windows-static build failure Jun 17, 2024
@Cheney-W Cheney-W added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Jun 17, 2024
@Cheney-W
Copy link
Contributor

I am unable to reproduce this issue locally. To help me investigate the problem, could you please provide the following information:

  1. What is your version of Visual Studio? Which components are installed?
  2. What is your Windows SDK version?

@nnaem
Copy link
Author

nnaem commented Jun 17, 2024

Hello @Cheney-W.

  1. My Visual Studio version is the latest 2022 Enterprise preview version (17.11.0 Preview 2.0). I installed all components from the "Workloads" tab in visual studio installer. I didn't modify the individual components tab. I also have Visual Studio Build Tools 2019 installed which has the "Desktop development with C++" workload installed, the windows SDK version selected in the individual components tab is older than the latest one.
  2. image

Thank you for taking your time to help me.

@AenBleidd
Copy link
Contributor

@nnaem, check that you have these two installed in the 'Individual components' tab (might be different version for the VS2019, but the idea is the same):
image

@nnaem
Copy link
Author

nnaem commented Jun 17, 2024

@nnaem, check that you have these two installed in the 'Individual components' tab (might be different version for the VS2019, but the idea is the same): image

Oh my god I uninstalled Visual Studio build tools 2019 and it worked.. I don't even know why they were installed in the first place, I never used or installed them. Thank you so much.

@nnaem nnaem closed this as completed Jun 17, 2024
@Cheney-W Cheney-W added category:question This issue is a question and removed requires:repro The issue is not currently repro-able labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants