• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling vcpkg fails to install libraries

Sajgon

Advanced OT User
Joined
Mar 10, 2017
Messages
282
Solutions
3
Reaction score
237
Location
Sweden
Hello there, I am on my WINDOWS 10 PC trying to install all required packages for TFS.
I am using "Node.js command prompt - powershell", running command "Get-Host | Select-Object Version" gives me this:

Code:
Version
-------
5.1.17763.1007

I run these steps:
Code:
git clone https://github.com/Microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install

and then from vcpkg folder I run this:

Code:
vcpkg install boost-iostreams:x86-windows boost-asio:x86-windows boost-system:x86-windows boost-filesystem:x86-windows boost-variant:x86-windows boost-lockfree:x86-windows luajit:x86-windows libmariadb:x86-windows pugixml:x86-windows mpir:x86-windows cryptopp:x86-windows

it installs for few minutes and then this error appears:

Code:
Building package boost-math[core]:x64-windows...
-- Using cached C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/downloads/boostorg-math-boost-1.72.0.tar.gz
-- Extracting source C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/downloads/boostorg-math-boost-1.72.0.tar.gz
CMake Error at scripts/cmake/vcpkg_extract_source_archive_ex.cmake:140 (file):
  file RENAME failed to rename

    C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/TEMP/math-boost-1.72.0

  to

    C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/ost-1.72.0-2786b6df16

  because: No such file or directory

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:139 (vcpkg_extract_source_archive_ex)
  ports/boost-math/portfile.cmake:5 (vcpkg_from_github)
  scripts/ports.cmake:90 (include)


Error: Building package boost-math:x64-windows 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-math:x64-windows
  Vcpkg version: 2020.02.04-nohash

Additionally, attach any relevant sections from the log files above.

running .\vcpkg update tells me no packages need updating.

Any ideas?

Thx ⭐
 
Did you try to do like the error says? Renaming
Code:
    C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/TEMP/math-boost-1.72.0

  to

    C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/ost-1.72.0-2786b6df16
 
I created folder \src\ost-1.72.0-2786b6df16 and put the files from TEMP in there, and running this command again gives new errors:
Code:
.\vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-filesystem:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows


Code:
Package boost-system:x64-windows is already installed
Starting package 1/23: boost-math:x64-windows
Building package boost-math[core]:x64-windows...
-- Using cached C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/downloads/boostorg-math-boost-1.72.0.tar.gz
-- Using source at C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/ost-1.72.0-2786b6df16
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/tools/boost-build/b2.exe --stagedir=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/x64-windows-rel/stage --build-dir=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/x64-windows-rel --user-config=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/x64-windows-rel/user-config.jam -j12 --debug-configuration --debug-building --debug-generators --disable-icu --ignore-site-config --hash -q -sZLIB_INCLUDE=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/include -sBZIP2_INCLUDE=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/include -sLZMA_INCLUDE=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/include -sZSTD_INCLUDE=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/include threading=multi threadapi=win32 runtime-link=shared link=shared address-model=64 architecture=x86 toolset=msvc -sZLIB_BINARY=zlib -sZLIB_LIBPATH=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/lib -sBZIP2_BINARY=bz2 -sBZIP2_LIBPATH=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/lib -sLZMA_BINARY=lzma -sLZMA_LIBPATH=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/lib -sZSTD_BINARY=zstd -sZSTD_LIBPATH=C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/lib variant=release debug-symbols=on
    Working Directory: C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/src/ost-1.72.0-2786b6df16/build
    Error code: 1
    See logs for more information:
      C:\Users\saj\Desktop\Midhem\PACKAGES\vcpkg\buildtrees\boost-math\build-x64-windows-rel-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/boost-build/boost-modular-build.cmake:296 (vcpkg_execute_required_process)
  ports/boost-math/portfile.cmake:14 (boost_modular_build)
  scripts/ports.cmake:90 (include)


Error: Building package boost-math:x64-windows 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-math:x64-windows
  Vcpkg version: 2020.02.04-nohash

Additionally, attach any relevant sections from the log files above.


And from the log "build-x64-windows-rel-out.txt":

Code:
notice: found boost-build.jam at C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/tools/boost-build/boost-build.jam
notice: loading Boost.Build from C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/tools/boost-build/src/kernel
notice: Site configuration files will be ignored due to the
notice: --ignore-site-config command-line option.
notice: Loading explicitly specified user configuration file:
    C:\Users\saj\Desktop\Midhem\PACKAGES\vcpkg\buildtrees\boost-math\x64-windows-rel\user-config.jam
notice: Searching 'C:\Users\saj\Desktop\Midhem\PACKAGES\vcpkg\buildtrees\boost-math\x64-windows-rel' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/buildtrees/boost-math/x64-windows-rel'.
notice: [msvc-cfg] msvc-14.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-14.2 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe'
notice: [msvc-cfg] msvc-14.1 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe'
notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe' for msvc, condition <toolset>msvc-14.2
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>/<address-model>', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>/<address-model>32', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>x86/<address-model>', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>x86/<address-model>32', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>/<address-model>64', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>x86/<address-model>64', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>ia64/<address-model>', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>ia64/<address-model>64', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>arm/<address-model>', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_arm'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>arm/<address-model>32', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_arm'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>arm/<address-model>', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_arm64'
notice: [msvc-cfg] condition: '<toolset>msvc-14.2/<architecture>arm/<address-model>64', setup: 'C:/Users/saj/Desktop/Midhem/PACKAGES/vcpkg/installed/x64-windows/share/boost-build/nothing.bat x86_arm64'
error: no Jamfile in current directory found, and no target references specified.
 
Clean your buildtrees folder and then retry, If it didn't work remove vcpkg folder and retry.
Also why are you using Node.js command prompt? Use Git bash, Powershell or CMD
Run them as administrator
Maybe try following this
 
I've deleted vcpkg folder multiple times, gett stuck on boost-asio.
Code:
vcpkg install boost-asio:x64-windows

I've tried Administrator: Windows PowerShell, Nodejs CMD and Git Bash but they all gives me that error ->

Code:
Your feedback is important to improve Vcpkg! Please take 3 minutes to complete our survey by running: vcpkg contact --survey
The following packages will be built and installed:
    boost-asio[core]:x64-windows
  * boost-context[core]:x64-windows
  * boost-coroutine[core]:x64-windows
  * boost-date-time[core]:x64-windows
  * boost-io[core]:x64-windows
  * boost-math[core]:x64-windows
  * boost-pool[core]:x64-windows
  * boost-thread[core]:x64-windows
  * boost-tokenizer[core]:x64-windows
  * openssl[core]:x64-windows
  * openssl-windows[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/11: boost-math:x64-windows
Building package boost-math[core]:x64-windows...
-- Using cached C:/midhem/vcpkg/downloads/boostorg-math-boost-1.72.0.tar.gz
-- Extracting source C:/midhem/vcpkg/downloads/boostorg-math-boost-1.72.0.tar.gz
CMake Error at scripts/cmake/vcpkg_extract_source_archive_ex.cmake:140 (file):
  file RENAME failed to rename

    C:/midhem/vcpkg/buildtrees/boost-math/src/TEMP/math-boost-1.72.0

  to

    C:/midhem/vcpkg/buildtrees/boost-math/src/ost-1.72.0-2786b6df16

  because: No such file or directory

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:139 (vcpkg_extract_source_archive_ex)
  ports/boost-math/portfile.cmake:5 (vcpkg_from_github)
  scripts/ports.cmake:94 (include)


Error: Building package boost-math:x64-windows 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-math:x64-windows
  Vcpkg version: 2020.01.17-nohash

Additionally, attach any relevant sections from the log files above.

I don't find anything related to Google : /
 
i have something similar but is different. also can't find nothing in google
Lua:
Elapsed time for package boost-concept-check:x64-windows: 2.307 s
Starting package 15/77: boost-build:x64-windows
Building package boost-build[core]:x64-windows...
-- Downloading https://github.com/boostorg/build/archive/boost-1.75.0.tar.gz -> boostorg-build-boost-1.75.0.tar.gz...
-- Extracting source C:/vcpkg/downloads/boostorg-build-boost-1.75.0.tar.gz
-- Applying patch fix_options.patch
-- Using source at C:/vcpkg/buildtrees/boost-build/src/ost-1.75.0-a06f9834b9.clean
-- Using cached C:/vcpkg/downloads/boost_LICENSE_1_0.txt
-- Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.75.0/boostcpp.jam -> boost-1.75.0-boostcpp.jam...
-- Installing: C:/vcpkg/packages/boost-build_x64-windows/share/boost-build/copyright
-- Bootstrapping...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: C:/vcpkg/packages/boost-build_x64-windows/tools/boost-build/bootstrap.bat msvc
    Working Directory: C:/vcpkg/packages/boost-build_x64-windows/tools/boost-build
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\boost-build\bootstrap-x64-windows-out.log
      C:\vcpkg\buildtrees\boost-build\bootstrap-x64-windows-err.log

Call Stack (most recent call first):
  ports/boost-build/portfile.cmake:63 (vcpkg_execute_required_process)
  scripts/ports.cmake:142 (include)


Error: Building package boost-build:x64-windows 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-build:x64-windows
  Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9

Additionally, attach any relevant sections from the log files above.
 
I found I needed the Microsoft SDK libraries in order to install and build packages with vcpkg.
Also ensure you are running vcpkg install from within a Microsoft Visual Studio Command prompt (x64 Native Tools Command Prompt). The x64 Native Tools Command Prompt ensures all the enviroment variables are setup for compiling the code being installed.
 
i have vcpkg from commit 761c81d43335a5d5ccc2ec8ad90bd7e2cbba734e
im trying to install boost, but i get error
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
installed/x64-linux/share/boost-build/boost-modular-build.cmake:100 (vcpkg_install_cmake)
installed/x64-linux/share/boost-build/boost-modular-build.cmake:111 (unix_build)
ports/boost-math/portfile.cmake:21 (boost_modular_build)
scripts/ports.cmake:139 (include)


Error: Building package boost-math:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with ./vcpkg update, then
submit an issue at Issues · microsoft/vcpkg (https://github.com/Microsoft/vcpkg/issues) including:
Package: boost-math:x64-linux
Vcpkg version: 2021-05-05-unknownhash
i tried @Addams solution but won't work.

debian 12
Any hint ?
 
Back
Top