microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.06k stars 6.36k forks source link

[build error?] error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output #39744

Closed Biswajeetmohanty closed 3 months ago

Biswajeetmohanty commented 3 months ago

Operating system

window

Compiler

No response

Steps to reproduce the behavior

PS C:\Users\AMAN $ SUMAN> git clone https://github.com/microsoft/vcpkg.git
fatal: destination path 'vcpkg' already exists and is not an empty directory.
PS C:\Users\AMAN $ SUMAN> cd .\vcpkg\
PS C:\Users\AMAN $ SUMAN\vcpkg> .\bootstrap-vcpkg.bat
Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2024-06-10/vcpkg.exe -> C:\Users\AMAN $ SUMAN\vcpkg\vcpkg.exe... done.
Validating signature... done.

vcpkg package management program version 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772

See LICENSE.txt for license information.
Telemetry
---------
vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md
PS C:\Users\AMAN $ SUMAN\vcpkg> .\vcpkg.exe install boost:x64-windows
boost:x86-windows
Computing installation plan...
The following packages will be built and installed:
    boost:x64-windows@1.85.0#1
    boost:x86-windows@1.85.0#1
  * boost-accumulators:x86-windows@1.85.0#1
  * boost-accumulators:x64-windows@1.85.0#1
  * boost-algorithm:x64-windows@1.85.0#1
  * boost-algorithm:x86-windows@1.85.0#1
  * boost-align:x86-windows@1.85.0#1
  * boost-align:x64-windows@1.85.0#1
  * boost-any:x64-windows@1.85.0#1
  * boost-any:x86-windows@1.85.0#1
  * boost-array:x64-windows@1.85.0#1
  * boost-array:x86-windows@1.85.0#1
  * boost-asio:x86-windows@1.85.0#2
  * boost-asio:x64-windows@1.85.0#2
  * boost-assert:x64-windows@1.85.0#1
  * boost-assert:x86-windows@1.85.0#1
  * boost-assign:x64-windows@1.85.0#1
  * boost-assign:x86-windows@1.85.0#1
  * boost-atomic:x86-windows@1.85.0#1
  * boost-atomic:x64-windows@1.85.0#1
  * boost-beast:x86-windows@1.85.0#2
  * boost-beast:x64-windows@1.85.0#2
  * boost-bimap:x86-windows@1.85.0#2
  * boost-bimap:x64-windows@1.85.0#2
  * boost-bind:x64-windows@1.85.0#1
  * boost-bind:x86-windows@1.85.0#1
  * boost-callable-traits:x86-windows@1.85.0#1
  * boost-callable-traits:x64-windows@1.85.0#1
  * boost-charconv:x86-windows@1.85.0#1
  * boost-charconv:x64-windows@1.85.0#1
  * boost-chrono:x64-windows@1.85.0#1
  * boost-chrono:x86-windows@1.85.0#1
  * boost-circular-buffer:x64-windows@1.85.0#1
  * boost-circular-buffer:x86-windows@1.85.0#1
  * boost-cmake:x86-windows@1.85.0#1
  * boost-cmake:x64-windows@1.85.0#1
  * boost-cobalt:x64-windows@1.85.0#2
  * boost-cobalt:x86-windows@1.85.0#2
  * boost-compat:x64-windows@1.85.0#2
  * boost-compat:x86-windows@1.85.0#2
  * boost-compatibility:x64-windows@1.85.0#1
  * boost-compatibility:x86-windows@1.85.0#1
  * boost-compute:x64-windows@1.85.0#1
  * boost-compute:x86-windows@1.85.0#1
  * boost-concept-check:x64-windows@1.85.0#1
  * boost-concept-check:x86-windows@1.85.0#1
  * boost-config:x86-windows@1.85.0#1
  * boost-config:x64-windows@1.85.0#1
  * boost-container:x64-windows@1.85.0#1
  * boost-container:x86-windows@1.85.0#1
  * boost-container-hash:x86-windows@1.85.0#1
  * boost-container-hash:x64-windows@1.85.0#1
  * boost-context:x64-windows@1.85.0#1
  * boost-context:x86-windows@1.85.0#1
  * boost-contract:x86-windows@1.85.0#1
  * boost-contract:x64-windows@1.85.0#1
  * boost-conversion:x64-windows@1.85.0#1
  * boost-conversion:x86-windows@1.85.0#1
  * boost-convert:x86-windows@1.85.0#1
  * boost-convert:x64-windows@1.85.0#1
  * boost-core:x64-windows@1.85.0#2
  * boost-core:x86-windows@1.85.0#2
  * boost-coroutine:x64-windows@1.85.0#1
  * boost-coroutine:x86-windows@1.85.0#1
  * boost-coroutine2:x86-windows@1.85.0#1
  * boost-coroutine2:x64-windows@1.85.0#1
  * boost-crc:x64-windows@1.85.0#1
  * boost-crc:x86-windows@1.85.0#1
  * boost-date-time:x64-windows@1.85.0#1
  * boost-date-time:x86-windows@1.85.0#1
  * boost-describe:x86-windows@1.85.0#2
  * boost-describe:x64-windows@1.85.0#2
  * boost-detail:x64-windows@1.85.0#1
  * boost-detail:x86-windows@1.85.0#1
  * boost-dll:x86-windows@1.85.0#1
  * boost-dll:x64-windows@1.85.0#1
  * boost-dynamic-bitset:x86-windows@1.85.0#1
  * boost-dynamic-bitset:x64-windows@1.85.0#1
  * boost-endian:x64-windows@1.85.0#1
  * boost-endian:x86-windows@1.85.0#1
  * boost-exception:x64-windows@1.85.0#1
  * boost-exception:x86-windows@1.85.0#1
  * boost-fiber:x64-windows@1.85.0#1
  * boost-fiber:x86-windows@1.85.0#1
  * boost-filesystem:x86-windows@1.85.0#2
  * boost-filesystem:x64-windows@1.85.0#2
  * boost-flyweight:x64-windows@1.85.0#1
  * boost-flyweight:x86-windows@1.85.0#1
  * boost-foreach:x64-windows@1.85.0#1
  * boost-foreach:x86-windows@1.85.0#1
  * boost-format:x86-windows@1.85.0#1
  * boost-format:x64-windows@1.85.0#1
  * boost-function:x86-windows@1.85.0#1
  * boost-function:x64-windows@1.85.0#1
  * boost-function-types:x86-windows@1.85.0#1
  * boost-function-types:x64-windows@1.85.0#1
  * boost-functional:x86-windows@1.85.0#1
  * boost-functional:x64-windows@1.85.0#1
  * boost-fusion:x64-windows@1.85.0#1
  * boost-fusion:x86-windows@1.85.0#1
  * boost-geometry:x64-windows@1.85.0#2
  * boost-geometry:x86-windows@1.85.0#2
  * boost-gil:x86-windows@1.85.0#1
  * boost-gil:x64-windows@1.85.0#1
  * boost-graph:x64-windows@1.85.0#1
  * boost-graph:x86-windows@1.85.0#1
  * boost-hana:x64-windows@1.85.0#1
  * boost-hana:x86-windows@1.85.0#1
  * boost-headers:x86-windows@1.85.0#1
  * boost-headers:x64-windows@1.85.0#1
  * boost-heap:x86-windows@1.85.0#1
  * boost-heap:x64-windows@1.85.0#1
  * boost-histogram:x86-windows@1.85.0#1
  * boost-histogram:x64-windows@1.85.0#1
  * boost-hof:x64-windows@1.85.0#1
  * boost-hof:x86-windows@1.85.0#1
  * boost-icl:x86-windows@1.85.0#1
  * boost-icl:x64-windows@1.85.0#1
  * boost-integer:x86-windows@1.85.0#1
  * boost-integer:x64-windows@1.85.0#1
  * boost-interprocess:x64-windows@1.85.0#1
  * boost-interprocess:x86-windows@1.85.0#1
  * boost-interval:x64-windows@1.85.0#1
  * boost-interval:x86-windows@1.85.0#1
  * boost-intrusive:x86-windows@1.85.0#2
  * boost-intrusive:x64-windows@1.85.0#2
  * boost-io:x86-windows@1.85.0#1
  * boost-io:x64-windows@1.85.0#1
  * boost-iostreams[bzip2,core,lzma,zlib,zstd]:x86-windows@1.85.0#1
  * boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows@1.85.0#1
  * boost-iterator:x64-windows@1.85.0#1
  * boost-iterator:x86-windows@1.85.0#1
  * boost-json:x64-windows@1.85.0#2
  * boost-json:x86-windows@1.85.0#2
  * boost-lambda:x86-windows@1.85.0#1
  * boost-lambda:x64-windows@1.85.0#1
  * boost-lambda2:x64-windows@1.85.0#1
  * boost-lambda2:x86-windows@1.85.0#1
  * boost-leaf:x86-windows@1.85.0#1
  * boost-leaf:x64-windows@1.85.0#1
  * boost-lexical-cast:x86-windows@1.85.0#1
  * boost-lexical-cast:x64-windows@1.85.0#1
  * boost-local-function:x64-windows@1.85.0#1
  * boost-local-function:x86-windows@1.85.0#1
  * boost-locale:x64-windows@1.85.0#2
  * boost-locale:x86-windows@1.85.0#2
  * boost-lockfree:x64-windows@1.85.0#1
  * boost-lockfree:x86-windows@1.85.0#1
  * boost-log:x64-windows@1.85.0#2
  * boost-log:x86-windows@1.85.0#2
  * boost-logic:x86-windows@1.85.0#1
  * boost-logic:x64-windows@1.85.0#1
  * boost-math:x86-windows@1.85.0#2
  * boost-math:x64-windows@1.85.0#2
  * boost-metaparse:x64-windows@1.85.0#1
  * boost-metaparse:x86-windows@1.85.0#1
  * boost-move:x64-windows@1.85.0#1
  * boost-move:x86-windows@1.85.0#1
  * boost-mp11:x86-windows@1.85.0#1
  * boost-mp11:x64-windows@1.85.0#1
  * boost-mpl:x64-windows@1.85.0#1
  * boost-mpl:x86-windows@1.85.0#1
  * boost-msm:x86-windows@1.85.0#2
  * boost-msm:x64-windows@1.85.0#2
  * boost-multi-array:x86-windows@1.85.0#1
  * boost-multi-array:x64-windows@1.85.0#1
  * boost-multi-index:x86-windows@1.85.0#2
  * boost-multi-index:x64-windows@1.85.0#2
  * boost-multiprecision:x86-windows@1.85.0#2
  * boost-multiprecision:x64-windows@1.85.0#2
  * boost-mysql:x64-windows@1.85.0#2
  * boost-mysql:x86-windows@1.85.0#2
  * boost-nowide:x64-windows@1.85.0#2
  * boost-nowide:x86-windows@1.85.0#2
  * boost-numeric-conversion:x86-windows@1.85.0#1
  * boost-numeric-conversion:x64-windows@1.85.0#1
  * boost-odeint:x64-windows@1.85.0#1
  * boost-odeint:x86-windows@1.85.0#1
  * boost-optional:x64-windows@1.85.0#1
  * boost-optional:x86-windows@1.85.0#1
  * boost-outcome:x64-windows@1.85.0#2
  * boost-outcome:x86-windows@1.85.0#2
  * boost-parameter:x86-windows@1.85.0#1
  * boost-parameter:x64-windows@1.85.0#1
  * boost-parameter-python:x64-windows@1.85.0#1
  * boost-parameter-python:x86-windows@1.85.0#1
  * boost-pfr:x64-windows@1.85.0#2
  * boost-pfr:x86-windows@1.85.0#2
  * boost-phoenix:x86-windows@1.85.0#1
  * boost-phoenix:x64-windows@1.85.0#1
  * boost-poly-collection:x64-windows@1.85.0#1
  * boost-poly-collection:x86-windows@1.85.0#1
  * boost-polygon:x86-windows@1.85.0#1
  * boost-polygon:x64-windows@1.85.0#1
  * boost-pool:x86-windows@1.85.0#1
  * boost-pool:x64-windows@1.85.0#1
  * boost-predef:x64-windows@1.85.0#1
  * boost-predef:x86-windows@1.85.0#1
  * boost-preprocessor:x64-windows@1.85.0#1
  * boost-preprocessor:x86-windows@1.85.0#1
  * boost-process:x64-windows@1.85.0#2
  * boost-process:x86-windows@1.85.0#2
  * boost-program-options:x64-windows@1.85.0#2
  * boost-program-options:x86-windows@1.85.0#2
  * boost-property-map:x64-windows@1.85.0#1
  * boost-property-map:x86-windows@1.85.0#1
  * boost-property-tree:x86-windows@1.85.0#1
  * boost-property-tree:x64-windows@1.85.0#1
  * boost-proto:x86-windows@1.85.0#1
  * boost-proto:x64-windows@1.85.0#1
  * boost-ptr-container:x64-windows@1.85.0#1
  * boost-ptr-container:x86-windows@1.85.0#1
  * boost-python[core,python3]:x64-windows@1.85.0#1
  * boost-python[core,python3]:x86-windows@1.85.0#1
  * boost-qvm:x64-windows@1.85.0#1
  * boost-qvm:x86-windows@1.85.0#1
  * boost-random:x64-windows@1.85.0#1
  * boost-random:x86-windows@1.85.0#1
  * boost-range:x64-windows@1.85.0#1
  * boost-range:x86-windows@1.85.0#1
  * boost-ratio:x64-windows@1.85.0#1
  * boost-ratio:x86-windows@1.85.0#1
  * boost-rational:x64-windows@1.85.0#1
  * boost-rational:x86-windows@1.85.0#1
  * boost-redis:x64-windows@1.85.0#2
  * boost-redis:x86-windows@1.85.0#2
  * boost-regex:x86-windows@1.85.0#1
  * boost-regex:x64-windows@1.85.0#1
  * boost-safe-numerics:x86-windows@1.85.0#1
  * boost-safe-numerics:x64-windows@1.85.0#1
  * boost-scope:x64-windows@1.85.0#1
  * boost-scope:x86-windows@1.85.0#1
  * boost-scope-exit:x86-windows@1.85.0#1
  * boost-scope-exit:x64-windows@1.85.0#1
  * boost-serialization:x86-windows@1.85.0#1
  * boost-serialization:x64-windows@1.85.0#1
  * boost-signals2:x86-windows@1.85.0#1
  * boost-signals2:x64-windows@1.85.0#1
  * boost-smart-ptr:x86-windows@1.85.0#1
  * boost-smart-ptr:x64-windows@1.85.0#1
  * boost-sort:x86-windows@1.85.0#1
  * boost-sort:x64-windows@1.85.0#1
  * boost-spirit:x64-windows@1.85.0#1
  * boost-spirit:x86-windows@1.85.0#1
  * boost-stacktrace:x86-windows@1.85.0#2
  * boost-stacktrace:x64-windows@1.85.0#2
  * boost-statechart:x64-windows@1.85.0#1
  * boost-statechart:x86-windows@1.85.0#1
  * boost-static-assert:x64-windows@1.85.0#1
  * boost-static-assert:x86-windows@1.85.0#1
  * boost-static-string:x86-windows@1.85.0#1
  * boost-static-string:x64-windows@1.85.0#1
  * boost-stl-interfaces:x86-windows@1.85.0#1
  * boost-stl-interfaces:x64-windows@1.85.0#1
  * boost-system:x86-windows@1.85.0#1
  * boost-system:x64-windows@1.85.0#1
  * boost-test:x86-windows@1.85.0#1
  * boost-test:x64-windows@1.85.0#1
  * boost-thread:x64-windows@1.85.0#1
  * boost-thread:x86-windows@1.85.0#1
  * boost-throw-exception:x64-windows@1.85.0#1
  * boost-throw-exception:x86-windows@1.85.0#1
  * boost-timer:x64-windows@1.85.0#2
  * boost-timer:x86-windows@1.85.0#2
  * boost-tokenizer:x64-windows@1.85.0#1
  * boost-tokenizer:x86-windows@1.85.0#1
  * boost-tti:x86-windows@1.85.0#1
  * boost-tti:x64-windows@1.85.0#1
  * boost-tuple:x86-windows@1.85.0#1
  * boost-tuple:x64-windows@1.85.0#1
  * boost-type-erasure:x64-windows@1.85.0#1
  * boost-type-erasure:x86-windows@1.85.0#1
  * boost-type-index:x64-windows@1.85.0#1
  * boost-type-index:x86-windows@1.85.0#1
  * boost-type-traits:x86-windows@1.85.0#1
  * boost-type-traits:x64-windows@1.85.0#1
  * boost-typeof:x86-windows@1.85.0#1
  * boost-typeof:x64-windows@1.85.0#1
  * boost-ublas:x86-windows@1.85.0#1
  * boost-ublas:x64-windows@1.85.0#1
  * boost-uninstall:x64-windows@1.85.0#1
  * boost-uninstall:x86-windows@1.85.0#1
  * boost-units:x64-windows@1.85.0#1
  * boost-units:x86-windows@1.85.0#1
  * boost-unordered:x64-windows@1.85.0#2
  * boost-unordered:x86-windows@1.85.0#2
  * boost-url:x64-windows@1.85.0#1
  * boost-url:x86-windows@1.85.0#1
  * boost-utility:x86-windows@1.85.0#1
  * boost-utility:x64-windows@1.85.0#1
  * boost-uuid:x64-windows@1.85.0#1
  * boost-uuid:x86-windows@1.85.0#1
  * boost-variant:x86-windows@1.85.0#1
  * boost-variant:x64-windows@1.85.0#1
  * boost-variant2:x64-windows@1.85.0#2
  * boost-variant2:x86-windows@1.85.0#2
  * boost-vmd:x64-windows@1.85.0#1
  * boost-vmd:x86-windows@1.85.0#1
  * boost-wave:x64-windows@1.85.0#2
  * boost-wave:x86-windows@1.85.0#2
  * boost-winapi:x86-windows@1.85.0#1
  * boost-winapi:x64-windows@1.85.0#1
  * boost-xpressive:x86-windows@1.85.0#1
  * boost-xpressive:x64-windows@1.85.0#1
  * boost-yap:x64-windows@1.85.0#1
  * boost-yap:x86-windows@1.85.0#1
  * bzip2[core,tool]:x86-windows@1.0.8#5
  * bzip2[core,tool]:x64-windows@1.0.8#5
  * expat:x86-windows@2.6.2#1
  * expat:x64-windows@2.6.2#1
  * libffi:x86-windows@3.4.6
  * libffi:x64-windows@3.4.6
  * liblzma:x64-windows@5.6.2
  * liblzma:x86-windows@5.6.2
  * openssl:x64-windows@3.3.1#1
  * openssl:x86-windows@3.3.1#1
  * pkgconf:x64-windows@2.2.0
  * python3:x64-windows@3.11.8#4
  * python3:x86-windows@3.11.8#4
  * sqlite3[core,json1]:x64-windows@3.46.0#2
  * sqlite3[core,json1]:x86-windows@3.46.0#2
  * vcpkg-boost:x64-windows@2024-05-15
  * vcpkg-cmake:x64-windows@2024-04-23
  * vcpkg-cmake-config:x64-windows@2024-05-23
  * vcpkg-cmake-get-vars:x64-windows@2023-12-31
  * vcpkg-get-python:x64-windows@2024-06-08
  * vcpkg-msbuild:x64-windows@2023-08-08
  * vcpkg-pkgconfig-get-modules:x64-windows@2024-04-03
  * vcpkg-tool-meson:x64-windows@1.3.2#8
  * zlib:x64-windows@1.3.1
  * zlib:x86-windows@1.3.1
  * zstd:x64-windows@1.5.6
  * zstd:x86-windows@1.5.6
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
error: while detecting compiler information:
The log file content at "C:\Users\AMAN $ SUMAN\vcpkg\buildtrees\detect_compiler\stdout-x64-windows.log" is:
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/Users/AMAN $ SUMAN/vcpkg/buildtrees/detect_compiler/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Users\AMAN $ SUMAN\vcpkg\buildtrees\detect_compiler\config-x64-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:314 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:192 (include)

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

Failure logs

error: while detecting compiler information: The log file content at "C:\Users\AMAN $ SUMAN\vcpkg\buildtrees\detect_compiler\stdout-x64-windows.log" is:

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

Additional context

How to solve this problem

jimwang118 commented 3 months ago

Please make sure there are no spaces or special characters in your installation path. For example: c:/users/AMAN/vcpkg.

jimwang118 commented 3 months ago

@Biswajeetmohanty Can you install it normally after removing spaces and special characters in the installation path?

jimwang118 commented 3 months ago

Thanks for posting this issue. Please reopen this issue if this is still a problem for you.