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

[expat] Build error with VS 17.4.0 --triplet x64-windows #27733

Closed
MaartenHilferink opened this issue Nov 9, 2022 · 2 comments
Closed

[expat] Build error with VS 17.4.0 --triplet x64-windows #27733

MaartenHilferink opened this issue Nov 9, 2022 · 2 comments
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@MaartenHilferink
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: VS 17.4.0

To Reproduce

Steps to reproduce the behavior:

cd \vcpkg
git pull
C:\dev\vcpkg>vcpkg install expat --recurse --triplet x64-windows

Failure logs

C:\dev\vcpkg>vcpkg install expat --recurse --triplet x64-windows
Computing installation plan...
warnivvcng: vcpkg appears to be in a Visual Studio prompt targeting x86 but is installing packages for x64-windows. Consider using --triplet x86-windows or --triplet x86-uwp.
The following packages will be built and installed:
expat[core]:x64-windows -> 2.5.0
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\mtahi\AppData\Local\vcpkg\archives in 205.6 us. Use --debug to see more details.
Installing 1/1 expat:x64-windows...
Building expat[core]:x64-windows...
-- Using cached libexpat-libexpat-R_2_5_0.tar.gz.
-- Cleaning sources at C:/dev/vcpkg/buildtrees/expat/src/R_2_5_0-56671c0753.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/dev/vcpkg/downloads/libexpat-libexpat-R_2_5_0.tar.gz
-- Using source at C:/dev/vcpkg/buildtrees/expat/src/R_2_5_0-56671c0753.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
CMake Error at installed/x64-windows/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake:36 (message):
'C:/dev/vcpkg/packages/expat_x64-windows/debug/lib/cmake/expat-' does not
exist.
Call Stack (most recent call first):
ports/expat/portfile.cmake:24 (vcpkg_cmake_config_fixup)
scripts/ports.cmake:147 (include)

error: building expat:x64-windows failed with: BUILD_FAILED
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+expat
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[expat]+Build+error
Include '[expat] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-05-05-67e17c1782801cf481be9ac0b3765dff3e4bdeb8
vcpkg-scripts version: e79c0d2 2022-11-08 (13 hours ago)Add any other context about the problem here, such as what you have already tried to resolve the issue.

@MaartenHilferink MaartenHilferink added the category:port-bug The issue is with a library, which is something the port should already support label Nov 9, 2022
@MaartenHilferink
Copy link
Author

MaartenHilferink commented Nov 9, 2022

This issue might be a duplicate of #27671 and #27674
and it seems that

.\bootstrap-vcpkg.bat

and then installing again works.

@MaartenHilferink
Copy link
Author

MaartenHilferink commented Nov 9, 2022

I'll close this issue now, as performing ".\bootstrap-vcpkg.bat" fixed it, however, wouldn't it be better that any vcpkg action, such as install, update, upgrade, etc. would first bootstrap-vcpkg ? Or, at least, suggest doing that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

1 participant