Comments (5)
You could consider using the link at the bottom of the message to submit an issue here. I believe the process behind that ensures that all relevant details are recorded to help the maintainers help you with the issue.
from vcpkg.
Can you share the error message that you are seeing? I do not see an error in the attached log, but it seems to indicate that MSVC 19.39 was found, I believe you should be seeing 19.40 for VS2022 17.10.0.
I am not entirely sure if it is the same issue, but it sounds like the error message that I got after updating to VS2022 17.10.1. It occurs when I install anything with from a powershell in the vcpkg folder.
error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
The following paths were examined for Visual Studio instances:
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary/Build\vcvarsall.bat
Running ./bootstrap.bat
in the vcpkg folder solved this issue for me.
from vcpkg.
Running bootstrap didn't make a difference for me.
The error which seems most relevant to me is:
-- The CXX compiler identification is Clang 17.0.3 with GNU-like command-line
C:\PROGRA2\MICROS3\2022\BUILDT~1\VC\Tools\Llvm\x64\bin\CLANG_~1.EXE /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -MD -MT CMakeFiles/cmTC_65363.dir/testCXXCompiler.cxx.obj -MF CMakeFiles\cmTC_65363.dir\testCXXCompiler.cxx.obj.d -o CMakeFiles/cmTC_65363.dir/testCXXCompiler.cxx.obj -c C:/Users/David.Benson/ThirdParty/vcpkg/buildtrees/fmt/x64-windows-static-md-rel/CMakeFiles/CMakeScratch/TryCompile-twve2z/testCXXCompiler.cxx
CLANG_~1: error: no such file or directory: '/nologo'
CLANG_~1: error: no such file or directory: '/DWIN32'
CLANG_~1: error: no such file or directory: '/D_WINDOWS'
CLANG_~1: error: no such file or directory: '/W3'
CLANG_~1: error: no such file or directory: '/utf-8'
Console output:
C:\Users\David.Benson\ThirdParty\vcpkg>vcpkg install fmt --triplet x64-windows-static-md
Computing installation plan...
The following packages will be built and installed:
fmt:x64-windows-static-md -> 10.1.1
Detecting compiler hash for triplet x64-windows-static-md...
Restored 0 package(s) from C:\Users\David.Benson\AppData\Local\vcpkg\archives in 823 us. Use --debug to see more details.
Installing 1/1 fmt:x64-windows-static-md...
Building fmt:x64-windows-static-md...
warning: -- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Users\David.Benson\ThirdParty\vcpkg\triplets\community\x64-windows-static-md.cmake
-- Using cached fmtlib-fmt-10.1.1.tar.gz.
-- Cleaning sources at C:/Users/David.Benson/ThirdParty/vcpkg/buildtrees/fmt/src/10.1.1-281bbdd8af.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/David.Benson/ThirdParty/vcpkg/downloads/fmtlib-fmt-10.1.1.tar.gz
-- Applying patch fix-write-batch.patch
-- Applying patch fix-format-conflict.patch
-- Using source at C:/Users/David.Benson/ThirdParty/vcpkg/buildtrees/fmt/src/10.1.1-281bbdd8af.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows-static-md
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
Working Directory: C:/Users/David.Benson/ThirdParty/vcpkg/buildtrees/fmt/x64-windows-static-md-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\David.Benson\ThirdParty\vcpkg\buildtrees\fmt\config-x64-windows-static-md-dbg-CMakeCache.txt.log
C:\Users\David.Benson\ThirdParty\vcpkg\buildtrees\fmt\config-x64-windows-static-md-rel-CMakeCache.txt.log
C:\Users\David.Benson\ThirdParty\vcpkg\buildtrees\fmt\config-x64-windows-static-md-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
ports/fmt/portfile.cmake:12 (vcpkg_cmake_configure)
scripts/ports.cmake:170 (include)
error: building fmt:x64-windows-static-md failed with: BUILD_FAILED
Elapsed time to handle fmt:x64-
config-x64-windows-static-md-out.log
windows-static-md: 36 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+fmt
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[fmt]+Build+error+on+x64-windows-static-md&body=Copy+issue+body+from+C%3A%2FUsers%2FDavid.Benson%2FThirdParty%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
from vcpkg.
I am on 17.10.0 too, but I didn't repro it.
- Open a Developer Command Prompt for VS2022 (or Powershell, same behavior)
- cl (demonstrates that command is in path and has expected version)
- ./vcpkg install fmt --triplet x64-windows
BTW, the first 2 step is no need. Just run vcpkg install xxx
from vcpkg.
Deleting the vcpkg directory cleared the issue. Closing.
from vcpkg.
Related Issues (20)
- [openvino] update to 2024.2.0 HOT 1
- [New Port Request] libserdes
- [eigen3] Build error on x64-windows HOT 1
- [abseil] Build error on x64-windows HOT 2
- [botan] build failure - Unbound var implib_name
- [python3] Build error on x64-osx HOT 3
- [aws-sdk-cpp] build failure x64-windows HOT 1
- [abseil] Build failure on x64-windows
- [gtkmm] update to 4.14.0
- libxml2 update to 2.13.1 HOT 2
- [skia] update to 127
- [openblas] Build error on x64-linux HOT 1
- [libtorch] build failure HOT 2
- [abseil] Build error on x64-windows HOT 2
- [abseil] Build error on x64-windows HOT 2
- [opencv4] Build error on x64-windows with latest MSVC 14.40 (19.40) and CUDA 12.5
- vcpkg ignores msvc toolset version set on the command-line HOT 8
- Ошибка CMAKE помогите пожалуйста конкретно решить проблему!!! HOT 2
- [libmysql] Build error on x64-windows HOT 3
- [libpqxx] Build error on x64-windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcpkg.