Closed apdams closed 2 years ago
Having the same issue.
@y43d, could you execute './vcpkg remove boost-uninstall:x64-windows --recurse', and try again? I can't repro this issue with latest clean source.
@PhoebeHui Ran that command, it didn't seem to actually remove anything. Tried again and getting the same error.
Keep in mind we are trying to build the x86 and static versions
vcpkg install boost:x86-windows-static
Yes, since it use the build tools from x64-windows, since the boost has been upgrade to 1.77, so the build tool should be updated, how about execute './vcpkg remove boost-build:x64-windows" and ./vcpkg install boost-regex:x86-windows-static?
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/src/vcpkg/scripts/buildsystems/vcpkg.cmake"
PS E:\vcpkg\src\vcpkg> ls E:\vcpkg\src\vcpkg\packages\boost-regex_x86-windows-static\lib
Directory: E:\vcpkg\src\vcpkg\packages\boost-regex_x86-windows-static\lib
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/17/2021 11:21 PM 3451446 boost_regex-vc140-mt.lib
Starting package 21/21: boost-regex:x86-windows-static
Building package boost-regex[core]:x86-windows-static...
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: E:\vcpkg\src\vcpkg\triplets\community\x86-windows-static.cmake
-- Downloading https://github.com/boostorg/regex/archive/boost-1.77.0.tar.gz -> boostorg-regex-boost-1.77.0.tar.gz...
-- Cleaning sources at E:/vcpkg/src/vcpkg/buildtrees/boost-regex/src/ost-1.77.0-3dc3b8cc79.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/vcpkg/src/vcpkg/downloads/boostorg-regex-boost-1.77.0.tar.gz
-- Using source at E:/vcpkg/src/vcpkg/buildtrees/boost-regex/src/ost-1.77.0-3dc3b8cc79.clean
-- Including E:/vcpkg/src/vcpkg/ports/boost-regex/b2-options.cmake
-- Found external ninja('1.10.2').
-- Configuring x86-windows-static
-- Building x86-windows-static-dbg
-- Building x86-windows-static-rel
-- Packaging headers
-- Packaging headers done
-- Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.77.0/LICENSE_1_0.txt -> boost_LICENSE_1_0.txt...
-- Installing: E:/vcpkg/src/vcpkg/packages/boost-regex_x86-windows-static/share/boost-regex/usage
-- Installing: E:/vcpkg/src/vcpkg/packages/boost-regex_x86-windows-static/share/boost-regex/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\phoebe\AppData\Local\vcpkg\archives\9a\9adae055cac585cfbec0b6595651507f187c556219874e62ee4dd75994888f24.zip
Installing package boost-regex[core]:x86-windows-static...
Elapsed time for package boost-regex:x86-windows-static: 20.67 s
Total elapsed time: 1.542 min
The package boost is compatible with built-in CMake targets:
find_package(Boost REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)
I've tried all the suggestions made above but unfortunately they have not solved my problem. I get this error:
CMake Error at installed/x64-windows/share/boost-build/boost-modular-build.cmake:157 (message): No libraries were produced. This indicates a failure while building the boost library. Call Stack (most recent call first): ports/boost-regex/portfile.cmake:15 (boost_modular_build) scripts/ports.cmake:141 (include)
@apdams, do you try to install it with cloning latest clean source? could you install it with '--debug' option and provide us the output?
Yes, since it use the build tools from x64-windows, since the boost has been upgrade to 1.77, so the build tool should be updated, how about execute './vcpkg remove boost-build:x64-windows" and ./vcpkg install boost-regex:x86-windows-static?
I tried this, still received the same error.
could you install it with '--debug' option and provide us the output?
@PhoebeHui I will do this now, here is my output:
(it's too long to post here, I made a paste) https://pastebin.com/B5Aeegu7
@y43d, thanks for providing the full logs! it's lack of the dependency, I will submit a PR to fix this issue soon!
CMake Error at installed/x64-windows/share/boost-build/boost-modular-build.cmake:89 (vcpkg_cmake_configure):
Unknown CMake command "vcpkg_cmake_configure".
Call Stack (most recent call first):
ports/boost-regex/portfile.cmake:15 (boost_modular_build)
scripts/ports.cmake:141 (include)
Please see my comment https://github.com/microsoft/vcpkg/pull/20842#pullrequestreview-783764366
I have vcpkg-cmake
in the dependencies:
D:\libs\vcpkg>vcpkg install boost:x86-windows-static
Computing installation plan...
A suitable version of cmake was not found (required v3.21.1). Downloading portable cmake v3.21.1...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1-windows-i386.zip -> D:\libs\vcpkg\downloads\cmake-3.21.1-windows-i386.zip
Extracting cmake...
A suitable version of 7zip was not found (required v19.0.0). Downloading portable 7zip v19.0.0...
Downloading 7zip...
https://www.7-zip.org/a/7z1900-x64.msi -> D:\libs\vcpkg\downloads\7z1900-x64.msi
Extracting 7zip...
The following packages will be built and installed:
boost[core]:x86-windows-static -> 1.77.0#2
* boost-accumulators[core]:x86-windows-static -> 1.77.0
* boost-algorithm[core]:x86-windows-static -> 1.77.0
* boost-align[core]:x86-windows-static -> 1.77.0
* boost-any[core]:x86-windows-static -> 1.77.0
* boost-array[core]:x86-windows-static -> 1.77.0
* boost-asio[core]:x86-windows-static -> 1.77.0
* boost-assert[core]:x86-windows-static -> 1.77.0
* boost-assign[core]:x86-windows-static -> 1.77.0
* boost-atomic[core]:x86-windows-static -> 1.77.0
* boost-beast[core]:x86-windows-static -> 1.77.0
* boost-bimap[core]:x86-windows-static -> 1.77.0
* boost-bind[core]:x86-windows-static -> 1.77.0
* boost-build[core]:x64-windows -> 1.77.0
* boost-callable-traits[core]:x86-windows-static -> 1.77.0
* boost-chrono[core]:x86-windows-static -> 1.77.0
* boost-circular-buffer[core]:x86-windows-static -> 1.77.0
* boost-compatibility[core]:x86-windows-static -> 1.77.0
* boost-compute[core]:x86-windows-static -> 1.77.0
* boost-concept-check[core]:x86-windows-static -> 1.77.0
* boost-config[core]:x86-windows-static -> 1.77.0#2
* boost-container[core]:x86-windows-static -> 1.77.0
* boost-container-hash[core]:x86-windows-static -> 1.77.0
* boost-context[core]:x86-windows-static -> 1.77.0
* boost-contract[core]:x86-windows-static -> 1.77.0
* boost-conversion[core]:x86-windows-static -> 1.77.0
* boost-convert[core]:x86-windows-static -> 1.77.0
* boost-core[core]:x86-windows-static -> 1.77.0
* boost-coroutine[core]:x86-windows-static -> 1.77.0
* boost-coroutine2[core]:x86-windows-static -> 1.77.0
* boost-crc[core]:x86-windows-static -> 1.77.0
* boost-date-time[core]:x86-windows-static -> 1.77.0
* boost-describe[core]:x86-windows-static -> 1.77.0
* boost-detail[core]:x86-windows-static -> 1.77.0
* boost-dll[core]:x86-windows-static -> 1.77.0
* boost-dynamic-bitset[core]:x86-windows-static -> 1.77.0
* boost-endian[core]:x86-windows-static -> 1.77.0
* boost-exception[core]:x86-windows-static -> 1.77.0
* boost-fiber[core]:x86-windows-static -> 1.77.0
* boost-filesystem[core]:x86-windows-static -> 1.77.0
* boost-flyweight[core]:x86-windows-static -> 1.77.0
* boost-foreach[core]:x86-windows-static -> 1.77.0
* boost-format[core]:x86-windows-static -> 1.77.0
* boost-function[core]:x86-windows-static -> 1.77.0
* boost-function-types[core]:x86-windows-static -> 1.77.0
* boost-functional[core]:x86-windows-static -> 1.77.0
* boost-fusion[core]:x86-windows-static -> 1.77.0
* boost-geometry[core]:x86-windows-static -> 1.77.0
* boost-gil[core]:x86-windows-static -> 1.77.0#1
* boost-graph[core]:x86-windows-static -> 1.77.0
* boost-hana[core]:x86-windows-static -> 1.77.0
* boost-heap[core]:x86-windows-static -> 1.77.0
* boost-histogram[core]:x86-windows-static -> 1.77.0
* boost-hof[core]:x86-windows-static -> 1.77.0
* boost-icl[core]:x86-windows-static -> 1.77.0
* boost-integer[core]:x86-windows-static -> 1.77.0
* boost-interprocess[core]:x86-windows-static -> 1.77.0
* boost-interval[core]:x86-windows-static -> 1.77.0
* boost-intrusive[core]:x86-windows-static -> 1.77.0
* boost-io[core]:x86-windows-static -> 1.77.0
* boost-iostreams[bzip2,core,lzma,zlib,zstd]:x86-windows-static -> 1.77.0#1
* boost-iterator[core]:x86-windows-static -> 1.77.0
* boost-json[core]:x86-windows-static -> 1.77.0
* boost-lambda[core]:x86-windows-static -> 1.77.0
* boost-lambda2[core]:x86-windows-static -> 1.77.0
* boost-leaf[core]:x86-windows-static -> 1.77.0
* boost-lexical-cast[core]:x86-windows-static -> 1.77.0
* boost-local-function[core]:x86-windows-static -> 1.77.0
* boost-locale[core]:x86-windows-static -> 1.77.0
* boost-lockfree[core]:x86-windows-static -> 1.77.0
* boost-log[core]:x86-windows-static -> 1.77.0
* boost-logic[core]:x86-windows-static -> 1.77.0
* boost-math[core]:x86-windows-static -> 1.77.0
* boost-metaparse[core]:x86-windows-static -> 1.77.0
* boost-modular-build-helper[core]:x64-windows -> 1.77.0#2
* boost-move[core]:x86-windows-static -> 1.77.0
* boost-mp11[core]:x86-windows-static -> 1.77.0
* boost-mpl[core]:x86-windows-static -> 1.77.0
* boost-msm[core]:x86-windows-static -> 1.77.0
* boost-multi-array[core]:x86-windows-static -> 1.77.0
* boost-multi-index[core]:x86-windows-static -> 1.77.0
* boost-multiprecision[core]:x86-windows-static -> 1.77.0
* boost-nowide[core]:x86-windows-static -> 1.77.0
* boost-numeric-conversion[core]:x86-windows-static -> 1.77.0
* boost-odeint[core]:x86-windows-static -> 1.77.0#1
* boost-optional[core]:x86-windows-static -> 1.77.0
* boost-outcome[core]:x86-windows-static -> 1.77.0
* boost-parameter[core]:x86-windows-static -> 1.77.0
* boost-parameter-python[core]:x86-windows-static -> 1.77.0
* boost-pfr[core]:x86-windows-static -> 1.77.0
* boost-phoenix[core]:x86-windows-static -> 1.77.0
* boost-poly-collection[core]:x86-windows-static -> 1.77.0
* boost-polygon[core]:x86-windows-static -> 1.77.0
* boost-pool[core]:x86-windows-static -> 1.77.0
* boost-predef[core]:x86-windows-static -> 1.77.0
* boost-preprocessor[core]:x86-windows-static -> 1.77.0
* boost-process[core]:x86-windows-static -> 1.77.0#2
* boost-program-options[core]:x86-windows-static -> 1.77.0
* boost-property-map[core]:x86-windows-static -> 1.77.0
* boost-property-tree[core]:x86-windows-static -> 1.77.0
* boost-proto[core]:x86-windows-static -> 1.77.0
* boost-ptr-container[core]:x86-windows-static -> 1.77.0
* boost-python[core,python3]:x86-windows-static -> 1.77.0#1
* boost-qvm[core]:x86-windows-static -> 1.77.0
* boost-random[core]:x86-windows-static -> 1.77.0
* boost-range[core]:x86-windows-static -> 1.77.0
* boost-ratio[core]:x86-windows-static -> 1.77.0
* boost-rational[core]:x86-windows-static -> 1.77.0
* boost-regex[core]:x86-windows-static -> 1.77.0
* boost-safe-numerics[core]:x86-windows-static -> 1.77.0
* boost-scope-exit[core]:x86-windows-static -> 1.77.0
* boost-serialization[core]:x86-windows-static -> 1.77.0
* boost-signals2[core]:x86-windows-static -> 1.77.0
* boost-smart-ptr[core]:x86-windows-static -> 1.77.0
* boost-sort[core]:x86-windows-static -> 1.77.0
* boost-spirit[core]:x86-windows-static -> 1.77.0
* boost-stacktrace[core]:x86-windows-static -> 1.77.0
* boost-statechart[core]:x86-windows-static -> 1.77.0
* boost-static-assert[core]:x86-windows-static -> 1.77.0
* boost-static-string[core]:x86-windows-static -> 1.77.0
* boost-stl-interfaces[core]:x86-windows-static -> 1.77.0
* boost-system[core]:x86-windows-static -> 1.77.0
* boost-test[core]:x86-windows-static -> 1.77.0
* boost-thread[core]:x86-windows-static -> 1.77.0
* boost-throw-exception[core]:x86-windows-static -> 1.77.0
* boost-timer[core]:x86-windows-static -> 1.77.0
* boost-tokenizer[core]:x86-windows-static -> 1.77.0
* boost-tti[core]:x86-windows-static -> 1.77.0
* boost-tuple[core]:x86-windows-static -> 1.77.0
* boost-type-erasure[core]:x86-windows-static -> 1.77.0
* boost-type-index[core]:x86-windows-static -> 1.77.0
* boost-type-traits[core]:x86-windows-static -> 1.77.0
* boost-typeof[core]:x86-windows-static -> 1.77.0
* boost-ublas[core]:x86-windows-static -> 1.77.0
* boost-uninstall[core]:x86-windows-static -> 1.77.0
* boost-uninstall[core]:x64-windows -> 1.77.0
* boost-units[core]:x86-windows-static -> 1.77.0
* boost-unordered[core]:x86-windows-static -> 1.77.0
* boost-utility[core]:x86-windows-static -> 1.77.0
* boost-uuid[core]:x86-windows-static -> 1.77.0
* boost-variant[core]:x86-windows-static -> 1.77.0
* boost-variant2[core]:x86-windows-static -> 1.77.0
* boost-vcpkg-helpers[core]:x86-windows-static -> 1.77.0
* boost-vmd[core]:x86-windows-static -> 1.77.0
* boost-wave[core]:x86-windows-static -> 1.77.0
* boost-winapi[core]:x86-windows-static -> 1.77.0
* boost-xpressive[core]:x86-windows-static -> 1.77.0
* boost-yap[core]:x86-windows-static -> 1.77.0
* bzip2[core]:x86-windows-static -> 1.0.8#2
* expat[core]:x86-windows-static -> 2.4.1
* liblzma[core]:x86-windows-static -> 5.2.5#3
* openssl[core]:x86-windows-static -> 1.1.1l#2
* python3[core]:x86-windows-static -> 3.10.0
* vcpkg-cmake[core]:x64-windows -> 2021-09-13
* vcpkg-cmake-config[core]:x64-windows -> 2021-09-27
* zlib[core]:x86-windows-static -> 1.2.11#13
* zstd[core]:x86-windows-static -> 1.5.0
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows-static...
@apdams I think you simply missed the latest commit which added the vcpkg-cmake dependency to boost-regex.
PS: the next release of vcpkg tool will also print the port version so this becomes more obvious from the initial report.
@dg0yt Dependency on vcpkg-cmake
and the new Boost version 1.77.0 were added by the same commit https://github.com/microsoft/vcpkg/commit/cc471dc0f59b7b2066d6172c2893419412327a7a
@y43d, could you please execute './vcpkg remove boost-modular-build-helper:x64-windows --recurse', and get latest source via 'git pull' and try again, it should solve the problems.
@PhoebeHui I did that... looks like i'm still getting the error. Here are debug logs again (you can see me run git pull in there also.)
It's strang, I checked it the latest source already added the vcpkg-cmake dependency to boost-regex. so it should install vcpkg-cmake firstly, however, from your failure logs, it looks not install the port.
Could you manually check your if https://github.com/microsoft/vcpkg/blob/master/ports/boost-regex/vcpkg.json#L28-L31 in your local file ./ports/boost-regex/vcpkg.json?
Weird, but yes, it's there.
Could you try to execute './vcpkg remove vcpkg-cmake:x64-windows --recurse' and try again?
Same error -
Detecting compiler hash for triplet x64-windows...
Detecting compiler hash for triplet x86-windows-static...
Restored 1 packages from C:\Users\phila\AppData\Local\vcpkg\archives in 47.24 ms. Use --debug to see more details.
Starting package 1/116: vcpkg-cmake:x64-windows
Installing package vcpkg-cmake[core]:x64-windows...
Elapsed time for package vcpkg-cmake:x64-windows: 304.2 ms
Starting package 2/116: boost-regex:x86-windows-static
Building package boost-regex[core]:x86-windows-static...
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Program Files\vcpkg\triplets\community\x86-windows-static.cmake
-- Downloading https://github.com/boostorg/regex/archive/boost-1.77.0.tar.gz -> boostorg-regex-boost-1.77.0.tar.gz...
-- Cleaning sources at C:/Program Files/vcpkg/buildtrees/boost-regex/src/ost-1.77.0-3dc3b8cc79.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Program Files/vcpkg/downloads/boostorg-regex-boost-1.77.0.tar.gz
-- Using source at C:/Program Files/vcpkg/buildtrees/boost-regex/src/ost-1.77.0-3dc3b8cc79.clean
-- Including C:/Program Files/vcpkg/ports/boost-regex/b2-options.cmake
-- Found external ninja('1.10.2').
-- Configuring x86-windows-static
-- Building x86-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message):
Command failed: "C:/Program Files/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" --build . --config Debug --target install -- -v -j17
Working Directory: C:/Program Files/vcpkg/buildtrees/boost-regex/x86-windows-static-dbg
See logs for more information:
C:\Program Files\vcpkg\buildtrees\boost-regex\install-x86-windows-static-dbg-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
ports/boost-regex/portfile.cmake:15 (boost_modular_build)
scripts/ports.cmake:141 (include)
Error: Building package boost-regex:x86-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: boost-regex:x86-windows-static
Vcpkg version: 2021-09-10-2059ef11aa6067e6f59b0d939c5d17e3c5c47d3e
Additionally, attach any relevant sections from the log files above.
It's a different issue. could you attach C:\Program Files\vcpkg\buildtrees\boost-regex\install-x86-windows-static-dbg-out.log?
Failures:
wide_posix_api.cpp
..\build\..\src\wide_posix_api.cpp(100): error C2039: 'uint_fast32_t': is not a member of 'boost'
Could you execute './vcpkg remove boost-config:x86-windows-static' and try again?
When boost upgraded, the similar issue may occur, the better way is removing old version via './vcpkg remove boost-uninstall:[triplets] --recurse' and install new version again.
@PhoebeHui I ran that, i'm still getting the error.
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message):
Command failed: "C:/Program Files/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" --build . --config Debug --target install -- -v -j17
Working Directory: C:/Program Files/vcpkg/buildtrees/boost-regex/x86-windows-static-dbg
See logs for more information:
C:\Program Files\vcpkg\buildtrees\boost-regex\install-x86-windows-static-dbg-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
ports/boost-regex/portfile.cmake:15 (boost_modular_build)
scripts/ports.cmake:141 (include)
Error: Building package boost-regex:x86-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: boost-regex:x86-windows-static
Vcpkg version: 2021-09-10-2059ef11aa6067e6f59b0d939c5d17e3c5c47d3e
Additionally, attach any relevant sections from the log files above.
Here is the log file again: https://pastebin.com/sfx1bGtr
@y43d Please upload console output too to check installation plan. Like this:
D:\libs\vcpkg>vcpkg install boost:x86-windows-static
Computing installation plan...
The following packages will be built and installed:
boost[core]:x86-windows-static -> 1.77.0#2
* boost-accumulators[core]:x86-windows-static -> 1.77.0
* boost-algorithm[core]:x86-windows-static -> 1.77.0
* boost-align[core]:x86-windows-static -> 1.77.0
* boost-any[core]:x86-windows-static -> 1.77.0
* boost-asio[core]:x86-windows-static -> 1.77.0
* boost-assign[core]:x86-windows-static -> 1.77.0
* boost-atomic[core]:x86-windows-static -> 1.77.0
* boost-beast[core]:x86-windows-static -> 1.77.0
* boost-bimap[core]:x86-windows-static -> 1.77.0
* boost-callable-traits[core]:x86-windows-static -> 1.77.0
* boost-chrono[core]:x86-windows-static -> 1.77.0
* boost-compatibility[core]:x86-windows-static -> 1.77.0
* boost-compute[core]:x86-windows-static -> 1.77.0
* boost-container[core]:x86-windows-static -> 1.77.0
* boost-context[core]:x86-windows-static -> 1.77.0
* boost-contract[core]:x86-windows-static -> 1.77.0
* boost-convert[core]:x86-windows-static -> 1.77.0
* boost-coroutine[core]:x86-windows-static -> 1.77.0
* boost-coroutine2[core]:x86-windows-static -> 1.77.0
* boost-crc[core]:x86-windows-static -> 1.77.0
* boost-date-time[core]:x86-windows-static -> 1.77.0
* boost-describe[core]:x86-windows-static -> 1.77.0
* boost-dll[core]:x86-windows-static -> 1.77.0
* boost-dynamic-bitset[core]:x86-windows-static -> 1.77.0
* boost-endian[core]:x86-windows-static -> 1.77.0
* boost-exception[core]:x86-windows-static -> 1.77.0
* boost-fiber[core]:x86-windows-static -> 1.77.0
* boost-filesystem[core]:x86-windows-static -> 1.77.0
* boost-flyweight[core]:x86-windows-static -> 1.77.0
* boost-foreach[core]:x86-windows-static -> 1.77.0
* boost-format[core]:x86-windows-static -> 1.77.0
* boost-functional[core]:x86-windows-static -> 1.77.0
* boost-geometry[core]:x86-windows-static -> 1.77.0
* boost-gil[core]:x86-windows-static -> 1.77.0#1
* boost-graph[core]:x86-windows-static -> 1.77.0
* boost-hana[core]:x86-windows-static -> 1.77.0
* boost-heap[core]:x86-windows-static -> 1.77.0
* boost-histogram[core]:x86-windows-static -> 1.77.0
* boost-hof[core]:x86-windows-static -> 1.77.0
* boost-icl[core]:x86-windows-static -> 1.77.0
* boost-interprocess[core]:x86-windows-static -> 1.77.0
* boost-interval[core]:x86-windows-static -> 1.77.0
* boost-intrusive[core]:x86-windows-static -> 1.77.0
* boost-iostreams[bzip2,core,lzma,zlib,zstd]:x86-windows-static -> 1.77.0#1
* boost-json[core]:x86-windows-static -> 1.77.0
* boost-lambda[core]:x86-windows-static -> 1.77.0
* boost-lambda2[core]:x86-windows-static -> 1.77.0
* boost-leaf[core]:x86-windows-static -> 1.77.0
* boost-lexical-cast[core]:x86-windows-static -> 1.77.0
* boost-local-function[core]:x86-windows-static -> 1.77.0
* boost-locale[core]:x86-windows-static -> 1.77.0
* boost-lockfree[core]:x86-windows-static -> 1.77.0
* boost-log[core]:x86-windows-static -> 1.77.0
* boost-logic[core]:x86-windows-static -> 1.77.0
* boost-math[core]:x86-windows-static -> 1.77.0
* boost-metaparse[core]:x86-windows-static -> 1.77.0
* boost-msm[core]:x86-windows-static -> 1.77.0
* boost-multi-array[core]:x86-windows-static -> 1.77.0
* boost-multi-index[core]:x86-windows-static -> 1.77.0
* boost-multiprecision[core]:x86-windows-static -> 1.77.0
* boost-nowide[core]:x86-windows-static -> 1.77.0
* boost-odeint[core]:x86-windows-static -> 1.77.0#1
* boost-outcome[core]:x86-windows-static -> 1.77.0
* boost-parameter-python[core]:x86-windows-static -> 1.77.0
* boost-pfr[core]:x86-windows-static -> 1.77.0
* boost-phoenix[core]:x86-windows-static -> 1.77.0
* boost-poly-collection[core]:x86-windows-static -> 1.77.0
* boost-polygon[core]:x86-windows-static -> 1.77.0
* boost-pool[core]:x86-windows-static -> 1.77.0
* boost-process[core]:x86-windows-static -> 1.77.0#2
* boost-program-options[core]:x86-windows-static -> 1.77.0
* boost-property-map[core]:x86-windows-static -> 1.77.0
* boost-property-tree[core]:x86-windows-static -> 1.77.0
* boost-proto[core]:x86-windows-static -> 1.77.0
* boost-ptr-container[core]:x86-windows-static -> 1.77.0
* boost-python[core,python3]:x86-windows-static -> 1.77.0#1
* boost-qvm[core]:x86-windows-static -> 1.77.0
* boost-random[core]:x86-windows-static -> 1.77.0
* boost-range[core]:x86-windows-static -> 1.77.0
* boost-ratio[core]:x86-windows-static -> 1.77.0
* boost-rational[core]:x86-windows-static -> 1.77.0
* boost-safe-numerics[core]:x86-windows-static -> 1.77.0
* boost-scope-exit[core]:x86-windows-static -> 1.77.0
* boost-serialization[core]:x86-windows-static -> 1.77.0
* boost-signals2[core]:x86-windows-static -> 1.77.0
* boost-sort[core]:x86-windows-static -> 1.77.0
* boost-spirit[core]:x86-windows-static -> 1.77.0
* boost-stacktrace[core]:x86-windows-static -> 1.77.0
* boost-statechart[core]:x86-windows-static -> 1.77.0
* boost-static-string[core]:x86-windows-static -> 1.77.0
* boost-stl-interfaces[core]:x86-windows-static -> 1.77.0
* boost-system[core]:x86-windows-static -> 1.77.0
* boost-test[core]:x86-windows-static -> 1.77.0
* boost-thread[core]:x86-windows-static -> 1.77.0
* boost-timer[core]:x86-windows-static -> 1.77.0
* boost-tokenizer[core]:x86-windows-static -> 1.77.0
* boost-tti[core]:x86-windows-static -> 1.77.0
* boost-type-erasure[core]:x86-windows-static -> 1.77.0
* boost-ublas[core]:x86-windows-static -> 1.77.0
* boost-units[core]:x86-windows-static -> 1.77.0
* boost-unordered[core]:x86-windows-static -> 1.77.0
* boost-uuid[core]:x86-windows-static -> 1.77.0
* boost-variant[core]:x86-windows-static -> 1.77.0
* boost-variant2[core]:x86-windows-static -> 1.77.0
* boost-vmd[core]:x86-windows-static -> 1.77.0
* boost-wave[core]:x86-windows-static -> 1.77.0
* boost-xpressive[core]:x86-windows-static -> 1.77.0
* boost-yap[core]:x86-windows-static -> 1.77.0
* bzip2[core]:x86-windows-static -> 1.0.8#2
* expat[core]:x86-windows-static -> 2.4.1
* liblzma[core]:x86-windows-static -> 5.2.5#3
* openssl[core]:x86-windows-static -> 1.1.1l#2
* python3[core]:x86-windows-static -> 3.10.0
* vcpkg-cmake-config[core]:x64-windows -> 2021-09-27
* zlib[core]:x86-windows-static -> 1.2.11#13
* zstd[core]:x86-windows-static -> 1.5.0
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows-static...
When boost upgraded, the similar issue may occur, the better way is removing old version via './vcpkg remove boost-uninstall:[triplets] --recurse' and install new version again.
Please be informed that ./vcpkg remove boost-uninstall:[triplets] --recurse
command should be run for the host triplet too.
For host triplet x64-windows
:
D:\libs\vcpkg>vcpkg remove boost-uninstall:x64-windows --recurse
The following packages will be removed:
* boost-build:x64-windows
* boost-modular-build-helper:x64-windows
* boost-regex:x86-windows-static
boost-uninstall:x64-windows
Additional packages (*) need to be removed to complete this operation.
Removing package boost-regex:x86-windows-static...
Removing package boost-build:x64-windows...
Removing package boost-modular-build-helper:x64-windows...
Removing package boost-uninstall:x64-windows...
For target triplet x86-windows-static
:
D:\libs\vcpkg>vcpkg remove boost-uninstall:x86-windows-static --recurse
The following packages will be removed:
* boost-array:x86-windows-static
* boost-assert:x86-windows-static
* boost-bind:x86-windows-static
* boost-circular-buffer:x86-windows-static
* boost-concept-check:x86-windows-static
* boost-config:x86-windows-static
* boost-container-hash:x86-windows-static
* boost-conversion:x86-windows-static
* boost-core:x86-windows-static
* boost-detail:x86-windows-static
* boost-function:x86-windows-static
* boost-function-types:x86-windows-static
* boost-fusion:x86-windows-static
* boost-integer:x86-windows-static
* boost-io:x86-windows-static
* boost-iterator:x86-windows-static
* boost-move:x86-windows-static
* boost-mp11:x86-windows-static
* boost-mpl:x86-windows-static
* boost-numeric-conversion:x86-windows-static
* boost-optional:x86-windows-static
* boost-parameter:x86-windows-static
* boost-predef:x86-windows-static
* boost-preprocessor:x86-windows-static
* boost-smart-ptr:x86-windows-static
* boost-static-assert:x86-windows-static
* boost-throw-exception:x86-windows-static
* boost-tuple:x86-windows-static
* boost-type-index:x86-windows-static
* boost-type-traits:x86-windows-static
* boost-typeof:x86-windows-static
boost-uninstall:x86-windows-static
* boost-utility:x86-windows-static
* boost-vcpkg-helpers:x86-windows-static
* boost-winapi:x86-windows-static
Additional packages (*) need to be removed to complete this operation.
Removing package boost-array:x86-windows-static...
Removing package boost-circular-buffer:x86-windows-static...
Removing package boost-iterator:x86-windows-static...
Removing package boost-parameter:x86-windows-static...
Removing package boost-fusion:x86-windows-static...
Removing package boost-function:x86-windows-static...
Removing package boost-type-index:x86-windows-static...
Removing package boost-container-hash:x86-windows-static...
Removing package boost-numeric-conversion:x86-windows-static...
Removing package boost-conversion:x86-windows-static...
Removing package boost-bind:x86-windows-static...
Removing package boost-function-types:x86-windows-static...
Removing package boost-optional:x86-windows-static...
Removing package boost-detail:x86-windows-static...
Removing package boost-integer:x86-windows-static...
Removing package boost-smart-ptr:x86-windows-static...
Removing package boost-move:x86-windows-static...
Removing package boost-mpl:x86-windows-static...
Removing package boost-tuple:x86-windows-static...
Removing package boost-utility:x86-windows-static...
Removing package boost-core:x86-windows-static...
Removing package boost-throw-exception:x86-windows-static...
Removing package boost-assert:x86-windows-static...
Removing package boost-concept-check:x86-windows-static...
Removing package boost-io:x86-windows-static...
Removing package boost-typeof:x86-windows-static...
Removing package boost-type-traits:x86-windows-static...
Removing package boost-static-assert:x86-windows-static...
Removing package boost-winapi:x86-windows-static...
Removing package boost-config:x86-windows-static...
Removing package boost-mp11:x86-windows-static...
Removing package boost-predef:x86-windows-static...
Removing package boost-preprocessor:x86-windows-static...
Removing package boost-vcpkg-helpers:x86-windows-static...
Removing package boost-uninstall:x86-windows-static...
@PhoebeHui @yurybura Hi there, just ran both of those uninstall commands and then tried reinstalling again.
Here is my full console output: https://pastebin.com/hAKHxFSi
Restored 39 packages from C:\Users\phila\AppData\Local\vcpkg\archives in 3.132 s. Use --debug to see more details.
It looks restore the packages from binary cache, so even these ports has been uninstalled. It's still use cache file. Could you clone a clean source and see if the issue repro?
If you don't want to clone a new source, you can try below steps:
There is also the parameter --no-binarycaching
.
@PhoebeHui I deleted the vcpkg folder, cloned a clean source and also deleted AppData\Local\vcpkg\archives. Still seems to fail... Here's my console output again.
@y43d, It's due to the space in the directory, I can repro the issue locally, could you put vcpkg source to c:\vcpkg which without any space and try again?
I have submitted a PR #20896 to fix this issue.
@PhoebeHui Works now! Crazy that was the issue... Thanks for all your help.
Host Environment
To Reproduce Steps to reproduce the behavior: Run the following command:
./vcpkg install boost:x86-windows-static
This is with a recently pulled version from github and I have run .\vcpkg update
Failure logs This is the output from the command prompt:
-- Extracting source C:/_gitdev/Cognite POC/vcpkg/downloads/boostorg-regex-boost-1.77.0.tar.gz -- Using source at C:/_gitdev/Cognite POC/vcpkg/buildtrees/boost-regex/src/ost-1.77.0-3dc3b8cc79.clean -- Including C:/_gitdev/Cognite POC/vcpkg/ports/boost-regex/b2-options.cmake -- Configuring x86-windows-static -- Building x86-windows-static-dbg -- Building x86-windows-static-rel CMake Error at installed/x64-windows/share/boost-build/boost-modular-build.cmake:157 (message): No libraries were produced. This indicates a failure while building the boost library. Call Stack (most recent call first): ports/boost-regex/portfile.cmake:15 (boost_modular_build) scripts/ports.cmake:141 (include)
Error: Building package boost-regex:x86-windows-static failed with: BUILD_FAILED Please ensure you're using the latest portfiles with
.\vcpkg update
, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: boost-regex:x86-windows-static Vcpkg version: 2021-09-10-2059ef11aa6067e6f59b0d939c5d17e3c5c47d3e Additional context Add any other context about the problem here, such as what you have already tried to resolve the issue.