Closed PJBoy closed 3 years ago
Could you try rerunning with --debug
on the command line?
Certainly.
C:\>vcpkg --debug install libmysql
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using vcpkg-root: C:\Program Files\vcpkg
[DEBUG] Using installed-root: C:\Program Files\vcpkg\installed
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using buildtrees-root: C:\Program Files\vcpkg\buildtrees
[DEBUG] Using downloads-root: C:\Program Files\vcpkg\downloads
[DEBUG] Using packages-root: C:\Program Files\vcpkg\packages
[DEBUG] Using scripts-root: C:\Program Files\vcpkg\scripts
[DEBUG] Using ports-root: C:\Program Files\vcpkg\ports
[DEBUG] Using versions-root: C:\Program Files\vcpkg\versions
[DEBUG] Default binary cache path is: C:\Users\P.JBoy\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 28746 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" "-DVCPKG_ROOT_DIR=C:/Program Files/vcpkg" "-DPACKAGES_DIR=C:/Program Files/vcpkg/packages" "-DBUILDTREES_DIR=C:/Program Files/vcpkg/buildtrees" "-D_VCPKG_INSTALLED_DIR=C:/Program Files/vcpkg/installed" "-DDOWNLOADS=C:/Program Files/vcpkg/downloads" -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\Program Files\vcpkg\buildtrees\0.vcpkg_dep_info.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 20977 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" "-DVCPKG_ROOT_DIR=C:/Program Files/vcpkg" "-DPACKAGES_DIR=C:/Program Files/vcpkg/packages" "-DBUILDTREES_DIR=C:/Program Files/vcpkg/buildtrees" "-D_VCPKG_INSTALLED_DIR=C:/Program Files/vcpkg/installed" "-DDOWNLOADS=C:/Program Files/vcpkg/downloads" -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\Program Files\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 60358 us
The following packages will be built and installed:
* boost-algorithm[core]:x86-windows -> 1.75.0
* boost-align[core]:x86-windows -> 1.75.0
* boost-any[core]:x86-windows -> 1.75.0
* boost-array[core]:x86-windows -> 1.75.0
* boost-assert[core]:x86-windows -> 1.75.0
* boost-atomic[core]:x86-windows -> 1.75.0#1
* boost-bimap[core]:x86-windows -> 1.75.0
* boost-bind[core]:x86-windows -> 1.75.0
* boost-build[core]:x64-windows -> 1.75.0
* boost-chrono[core]:x86-windows -> 1.75.0#1
* boost-compatibility[core]:x86-windows -> 1.75.0
* boost-concept-check[core]:x86-windows -> 1.75.0#2
* boost-config[core]:x86-windows -> 1.75.0
* boost-container[core]:x86-windows -> 1.75.0#1
* boost-container-hash[core]:x86-windows -> 1.75.0
* boost-conversion[core]:x86-windows -> 1.75.0
* boost-core[core]:x86-windows -> 1.75.0
* boost-date-time[core]:x86-windows -> 1.75.0#1
* boost-detail[core]:x86-windows -> 1.75.0
* boost-dynamic-bitset[core]:x86-windows -> 1.75.0
* boost-endian[core]:x86-windows -> 1.75.0
* boost-exception[core]:x86-windows -> 1.75.0#1
* boost-foreach[core]:x86-windows -> 1.75.0
* boost-format[core]:x86-windows -> 1.75.0
* boost-function[core]:x86-windows -> 1.75.0
* boost-function-types[core]:x86-windows -> 1.75.0
* boost-functional[core]:x86-windows -> 1.75.0
* boost-fusion[core]:x86-windows -> 1.75.0
* boost-geometry[core]:x86-windows -> 1.75.0
* boost-graph[core]:x86-windows -> 1.75.0#1
* boost-integer[core]:x86-windows -> 1.75.0
* boost-intrusive[core]:x86-windows -> 1.75.0
* boost-io[core]:x86-windows -> 1.75.0
* boost-iterator[core]:x86-windows -> 1.75.0
* boost-lambda[core]:x86-windows -> 1.75.0
* boost-lexical-cast[core]:x86-windows -> 1.75.0
* boost-math[core]:x86-windows -> 1.75.0#1
* boost-modular-build-helper[core]:x64-windows -> 1.75.0#9
* boost-move[core]:x86-windows -> 1.75.0
* boost-mp11[core]:x86-windows -> 1.75.0
* boost-mpl[core]:x86-windows -> 1.75.0
* boost-multi-index[core]:x86-windows -> 1.75.0
* boost-multiprecision[core]:x86-windows -> 1.75.0
* boost-numeric-conversion[core]:x86-windows -> 1.75.0
* boost-optional[core]:x86-windows -> 1.75.0
* boost-parameter[core]:x86-windows -> 1.75.0
* boost-phoenix[core]:x86-windows -> 1.75.0
* boost-polygon[core]:x86-windows -> 1.75.0
* boost-pool[core]:x86-windows -> 1.75.0
* boost-predef[core]:x86-windows -> 1.75.0
* boost-preprocessor[core]:x86-windows -> 1.75.0
* boost-property-map[core]:x86-windows -> 1.75.0
* boost-property-tree[core]:x86-windows -> 1.75.0
* boost-proto[core]:x86-windows -> 1.75.0
* boost-qvm[core]:x86-windows -> 1.75.0
* boost-random[core]:x86-windows -> 1.75.0#1
* boost-range[core]:x86-windows -> 1.75.0
* boost-ratio[core]:x86-windows -> 1.75.0
* boost-rational[core]:x86-windows -> 1.75.0
* boost-regex[core]:x86-windows -> 1.75.0#2
* boost-serialization[core]:x86-windows -> 1.75.0#1
* boost-smart-ptr[core]:x86-windows -> 1.75.0
* boost-spirit[core]:x86-windows -> 1.75.0
* boost-static-assert[core]:x86-windows -> 1.75.0
* boost-system[core]:x86-windows -> 1.75.0#1
* boost-test[core]:x86-windows -> 1.75.0#1
* boost-thread[core]:x86-windows -> 1.75.0#1
* boost-throw-exception[core]:x86-windows -> 1.75.0
* boost-tokenizer[core]:x86-windows -> 1.75.0
* boost-tti[core]:x86-windows -> 1.75.0
* boost-tuple[core]:x86-windows -> 1.75.0
* boost-type-index[core]:x86-windows -> 1.75.0
* boost-type-traits[core]:x86-windows -> 1.75.0
* boost-typeof[core]:x86-windows -> 1.75.0
* boost-uninstall[core]:x86-windows -> 1.75.0
* boost-uninstall[core]:x64-windows -> 1.75.0
* boost-unordered[core]:x86-windows -> 1.75.0
* boost-utility[core]:x86-windows -> 1.75.0
* boost-variant[core]:x86-windows -> 1.75.0
* boost-vcpkg-helpers[core]:x86-windows -> 7#2
* boost-winapi[core]:x86-windows -> 1.75.0
* boost-xpressive[core]:x86-windows -> 1.75.0
* icu[core]:x64-windows -> 69.1#9
* icu[core]:x86-windows -> 69.1#9
* libevent[core,thread]:x86-windows -> 2.1.12#1
libmysql[core]:x86-windows -> 8.0.20#2
* lz4[core]:x86-windows -> 1.9.3
* openssl[core]:x86-windows -> 1.1.1k
* xxhash[core]:x86-windows -> 0.8.0#1
* zlib[core]:x86-windows -> 1.2.11#10
Additional packages (*) will be modified to complete this operation.
[DEBUG] CreateProcessW("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -prerelease -legacy -products * -format xml)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 59055 us
Detecting compiler hash for triplet x86-windows...
[DEBUG] Found path: C:\Program Files\Git\cmd\git.exe
[DEBUG] Found path: C:\Program Files\Git\mingw64\bin\git.exe
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\git-2.26.2-1-windows\mingw32\bin\git.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 14092 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\powershell-core-7.1.3-windows\pwsh.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 196720 us
[DEBUG] CreateProcessW(cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" -vcvars_ver=14.2 amd64_x86 2>&1 <NUL & echo cdARN4xjKueKScMy9C6H & set)
[DEBUG] cmd_execute_and_stream_data() returned 255 after 1197027 us
[DEBUG] C:\A\1\70\s\src\vcpkg\base\system.process.cpp(592)
[DEBUG] Exiting after 1668410 us (1667465 us)
@PJBoy ,It seems that libmsql currently does not support x86 triplet, you can try x64triplet
Stored binary cache: C:\Users\vzhli17\AppData\Local\vcpkg\archives\fa\fa4c0f82bdf58a22cd391f0005c3221ba8b3b9c5.zip
Building package libmysql[core]:x64-windows... done
Installing package libmysql[core]:x64-windows...
Installing package libmysql[core]:x64-windows... done
Elapsed time for package libmysql:x64-windows: 4.315 min
Total elapsed time: 16.39 min
The package libmysql provides CMake targets:
find_package(libmysql REQUIRED)
target_link_libraries(main PRIVATE ${MYSQL_LIBRARIES})
I got the same result for the x64-windows triplet:
>vcpkg --debug install libmysql:x64-windows
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using vcpkg-root: C:\Program Files\vcpkg
[DEBUG] Using installed-root: C:\Program Files\vcpkg\installed
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using buildtrees-root: C:\Program Files\vcpkg\buildtrees
[DEBUG] Using downloads-root: C:\Program Files\vcpkg\downloads
[DEBUG] Using packages-root: C:\Program Files\vcpkg\packages
[DEBUG] Using scripts-root: C:\Program Files\vcpkg\scripts
[DEBUG] Using ports-root: C:\Program Files\vcpkg\ports
[DEBUG] Using versions-root: C:\Program Files\vcpkg\versions
[DEBUG] Default binary cache path is: C:\Users\P.JBoy\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 26084 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" "-DVCPKG_ROOT_DIR=C:/Program Files/vcpkg" "-DPACKAGES_DIR=C:/Program Files/vcpkg/packages" "-DBUILDTREES_DIR=C:/Program Files/vcpkg/buildtrees" "-D_VCPKG_INSTALLED_DIR=C:/Program Files/vcpkg/installed" "-DDOWNLOADS=C:/Program Files/vcpkg/downloads" -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\Program Files\vcpkg\buildtrees\0.vcpkg_dep_info.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 19921 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\cmake-3.20.1-windows\cmake-3.20.1-windows-i386\bin\cmake.exe" "-DVCPKG_ROOT_DIR=C:/Program Files/vcpkg" "-DPACKAGES_DIR=C:/Program Files/vcpkg/packages" "-DBUILDTREES_DIR=C:/Program Files/vcpkg/buildtrees" "-D_VCPKG_INSTALLED_DIR=C:/Program Files/vcpkg/installed" "-DDOWNLOADS=C:/Program Files/vcpkg/downloads" -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\Program Files\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 54849 us
The following packages will be built and installed:
* boost-algorithm[core]:x64-windows -> 1.75.0
* boost-align[core]:x64-windows -> 1.75.0
* boost-any[core]:x64-windows -> 1.75.0
* boost-array[core]:x64-windows -> 1.75.0
* boost-assert[core]:x64-windows -> 1.75.0
* boost-atomic[core]:x64-windows -> 1.75.0#1
* boost-bimap[core]:x64-windows -> 1.75.0
* boost-bind[core]:x64-windows -> 1.75.0
* boost-build[core]:x64-windows -> 1.75.0
* boost-chrono[core]:x64-windows -> 1.75.0#1
* boost-compatibility[core]:x64-windows -> 1.75.0
* boost-concept-check[core]:x64-windows -> 1.75.0#2
* boost-config[core]:x64-windows -> 1.75.0
* boost-container[core]:x64-windows -> 1.75.0#1
* boost-container-hash[core]:x64-windows -> 1.75.0
* boost-conversion[core]:x64-windows -> 1.75.0
* boost-core[core]:x64-windows -> 1.75.0
* boost-date-time[core]:x64-windows -> 1.75.0#1
* boost-detail[core]:x64-windows -> 1.75.0
* boost-dynamic-bitset[core]:x64-windows -> 1.75.0
* boost-endian[core]:x64-windows -> 1.75.0
* boost-exception[core]:x64-windows -> 1.75.0#1
* boost-foreach[core]:x64-windows -> 1.75.0
* boost-format[core]:x64-windows -> 1.75.0
* boost-function[core]:x64-windows -> 1.75.0
* boost-function-types[core]:x64-windows -> 1.75.0
* boost-functional[core]:x64-windows -> 1.75.0
* boost-fusion[core]:x64-windows -> 1.75.0
* boost-geometry[core]:x64-windows -> 1.75.0
* boost-graph[core]:x64-windows -> 1.75.0#1
* boost-integer[core]:x64-windows -> 1.75.0
* boost-intrusive[core]:x64-windows -> 1.75.0
* boost-io[core]:x64-windows -> 1.75.0
* boost-iterator[core]:x64-windows -> 1.75.0
* boost-lambda[core]:x64-windows -> 1.75.0
* boost-lexical-cast[core]:x64-windows -> 1.75.0
* boost-math[core]:x64-windows -> 1.75.0#1
* boost-modular-build-helper[core]:x64-windows -> 1.75.0#9
* boost-move[core]:x64-windows -> 1.75.0
* boost-mp11[core]:x64-windows -> 1.75.0
* boost-mpl[core]:x64-windows -> 1.75.0
* boost-multi-index[core]:x64-windows -> 1.75.0
* boost-multiprecision[core]:x64-windows -> 1.75.0
* boost-numeric-conversion[core]:x64-windows -> 1.75.0
* boost-optional[core]:x64-windows -> 1.75.0
* boost-parameter[core]:x64-windows -> 1.75.0
* boost-phoenix[core]:x64-windows -> 1.75.0
* boost-polygon[core]:x64-windows -> 1.75.0
* boost-pool[core]:x64-windows -> 1.75.0
* boost-predef[core]:x64-windows -> 1.75.0
* boost-preprocessor[core]:x64-windows -> 1.75.0
* boost-property-map[core]:x64-windows -> 1.75.0
* boost-property-tree[core]:x64-windows -> 1.75.0
* boost-proto[core]:x64-windows -> 1.75.0
* boost-qvm[core]:x64-windows -> 1.75.0
* boost-random[core]:x64-windows -> 1.75.0#1
* boost-range[core]:x64-windows -> 1.75.0
* boost-ratio[core]:x64-windows -> 1.75.0
* boost-rational[core]:x64-windows -> 1.75.0
* boost-regex[core]:x64-windows -> 1.75.0#2
* boost-serialization[core]:x64-windows -> 1.75.0#1
* boost-smart-ptr[core]:x64-windows -> 1.75.0
* boost-spirit[core]:x64-windows -> 1.75.0
* boost-static-assert[core]:x64-windows -> 1.75.0
* boost-system[core]:x64-windows -> 1.75.0#1
* boost-test[core]:x64-windows -> 1.75.0#1
* boost-thread[core]:x64-windows -> 1.75.0#1
* boost-throw-exception[core]:x64-windows -> 1.75.0
* boost-tokenizer[core]:x64-windows -> 1.75.0
* boost-tti[core]:x64-windows -> 1.75.0
* boost-tuple[core]:x64-windows -> 1.75.0
* boost-type-index[core]:x64-windows -> 1.75.0
* boost-type-traits[core]:x64-windows -> 1.75.0
* boost-typeof[core]:x64-windows -> 1.75.0
* boost-uninstall[core]:x64-windows -> 1.75.0
* boost-unordered[core]:x64-windows -> 1.75.0
* boost-utility[core]:x64-windows -> 1.75.0
* boost-variant[core]:x64-windows -> 1.75.0
* boost-vcpkg-helpers[core]:x64-windows -> 7#2
* boost-winapi[core]:x64-windows -> 1.75.0
* boost-xpressive[core]:x64-windows -> 1.75.0
* icu[core]:x64-windows -> 69.1#9
* libevent[core,thread]:x64-windows -> 2.1.12#1
libmysql[core]:x64-windows -> 8.0.20#2
* lz4[core]:x64-windows -> 1.9.3
* openssl[core]:x64-windows -> 1.1.1k
* xxhash[core]:x64-windows -> 0.8.0#1
* zlib[core]:x64-windows -> 1.2.11#10
Additional packages (*) will be modified to complete this operation.
[DEBUG] CreateProcessW("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -prerelease -legacy -products * -format xml)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 56532 us
Detecting compiler hash for triplet x64-windows...
[DEBUG] Found path: C:\Program Files\Git\cmd\git.exe
[DEBUG] Found path: C:\Program Files\Git\mingw64\bin\git.exe
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\git-2.26.2-1-windows\mingw32\bin\git.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 13215 us
[DEBUG] CreateProcessW("C:\Program Files\vcpkg\downloads\tools\powershell-core-7.1.3-windows\pwsh.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 183257 us
[DEBUG] CreateProcessW(cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" -vcvars_ver=14.2 amd64 2>&1 <NUL & echo cdARN4xjKueKScMy9C6H & set)
[DEBUG] cmd_execute_and_stream_data() returned 255 after 877614 us
[DEBUG] C:\A\1\70\s\src\vcpkg\base\system.process.cpp(592)
[DEBUG] Exiting after 1331518 us (1326439 us)
See #17319, there are some bugs with Visual Studio 2017 / 2019 preview version. And I've output message when this happend.
Host Environment
To Reproduce Steps to reproduce the behavior:
./vcpkg install libmysql
Failure logs
Exits with
%ERRORLEVEL%
= 1