Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[boost_system] Unable to build from source. #1054

Open
Siech0 opened this issue Nov 29, 2019 · 3 comments
Open

[boost_system] Unable to build from source. #1054

Siech0 opened this issue Nov 29, 2019 · 3 comments
Labels

Comments

@Siech0
Copy link

Siech0 commented Nov 29, 2019

It seems that boost_system is looking for a vcvarsall.bat in VC\Tools\MSVC\VERSION\bin\Hostx64\ where the actual file is located in VC\Auxillary\Build. This is a brand-new installation of windows and all software is freshly installed.

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost_system/1.69.0@bincrafters/stable
  • Operating System+version: Windows 10 Professional 64-bit (10.0, Build 18362)
  • Compiler+version: Visual Studio 2019 Community 16.3.10, Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28107 for x64
  • Docker image: N/A
  • Conan version: 1.20.4
  • Python version: Python 3.8.0

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conanfile.txt:

[requires]
boost_system/1.69.0@bincrafters/stable

[generators]
cmake_find_package

project structure:

project\
     conanfile.txt
     CMakeLists.txt
     build\   

install command:
[from build\] conan install .. --build missing

Logs (Include/Attach if Applicable)

D:\dev\c++\rest\build>conan install .. --build missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

boost_system/1.69.0@bincrafters/stable: WARN: Package is corrupted, removing folder: C:\.conan\d8b70d\1
conanfile.txt: Installing package
Requirements
    boost_config/1.69.0@bincrafters/stable from 'bincrafters' - Cache
    boost_predef/1.69.0@bincrafters/stable from 'bincrafters' - Cache
    boost_system/1.69.0@bincrafters/stable from 'bincrafters' - Cache
    boost_winapi/1.69.0@bincrafters/stable from 'bincrafters' - Cache
Python requires
    boost_base/1.69.0@bincrafters/stable
Packages
    boost_config/1.69.0@bincrafters/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    boost_predef/1.69.0@bincrafters/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    boost_system/1.69.0@bincrafters/stable:1cfc588b26e59ddc9e1094237b6c5153e7f2f0bc - Build
    boost_winapi/1.69.0@bincrafters/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
Build requirements
    boost_build/1.69.0@bincrafters/stable from 'bincrafters' - Cache
    boost_generator/1.69.0@bincrafters/stable from 'bincrafters' - Cache
Build requirements packages
    boost_build/1.69.0@bincrafters/stable:456f15897172eef340fcbac8a70811f2beb26a93 - Cache
    boost_generator/1.69.0@bincrafters/stable:6ec6439c54a97da1cfddff786d1ea15988300369 - Cache

boost_build/1.69.0@bincrafters/stable: Already installed!
boost_config/1.69.0@bincrafters/stable: Already installed!
boost_predef/1.69.0@bincrafters/stable: Already installed!
boost_generator/1.69.0@bincrafters/stable: Already installed!
boost_winapi/1.69.0@bincrafters/stable: Already installed!
boost_system/1.69.0@bincrafters/stable: Applying build-requirement: boost_generator/1.69.0@bincrafters/stable
boost_system/1.69.0@bincrafters/stable: Applying build-requirement: boost_build/1.69.0@bincrafters/stable
boost_system/1.69.0@bincrafters/stable: WARN: Build folder is dirty, removing it: C:\.conan\0d1287\1
boost_system/1.69.0@bincrafters/stable: Copying sources to build folder
boost_system/1.69.0@bincrafters/stable: Building your package in C:\.conan\0d1287\1
boost_system/1.69.0@bincrafters/stable: Generator boost created jamroot
boost_system/1.69.0@bincrafters/stable: Generator boost created boostcpp.jam
boost_system/1.69.0@bincrafters/stable: Generator boost created project-config.jam
boost_system/1.69.0@bincrafters/stable: Generator boost created short_path.cmd
boost_system/1.69.0@bincrafters/stable: Calling build()
boost_system/1.69.0@bincrafters/stable: C:\.conan\0d1287\1: b2 -j8 -d+1 -a --hash=yes --debug-configuration --layout=system    system-build
notice: found boost-build.jam at C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/boost-build.jam
notice: loading Boost.Build from C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/kernel
C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util\os.jam:50: Unescaped special character in argument ([^.]*)$
C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util\os.jam:204: Unescaped special character in argument os:
C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util\os.jam:205: Unescaped special character in argument os:
notice: Searching 'C:\Users\gamer' 'C:\Users\gamer' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src/kernel' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src\kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/build' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/tools' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/contrib' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Users\gamer' 'C:\Users\gamer' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src/kernel' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src\kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/build' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/tools' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/contrib' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/.'.
notice: Searching 'C:\Users\gamer' 'C:\Users\gamer' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src/kernel' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src\kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/build' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/tools' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/contrib' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/.' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in 'C:\Users\gamer' 'C:\Users\gamer' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src/kernel' 'C:\Users\gamer\.conan\data\boost_build\1.69.0\bincrafters\stable\package\456f15897172eef340fcbac8a70811f2beb26a93\share\boost-build\src\kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/kernel' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/util' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/build' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/tools' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/contrib' 'C:/Users/gamer/.conan/data/boost_build/1.69.0/bincrafters/stable/package/456f15897172eef340fcbac8a70811f2beb26a93/share/boost-build/src/.'.
notice: Searching '.' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '.'.
notice: will use 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe' for msvc, condition <toolset>msvc-16.0
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>/<address-model>', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>/<address-model>32', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>x86/<address-model>', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>x86/<address-model>32', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>/<address-model>64', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>x86/<address-model>64', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>ia64/<address-model>', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>ia64/<address-model>64', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>arm/<address-model>', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
notice: [msvc-cfg] condition: '<toolset>msvc-16.0/<architecture>arm/<address-model>32', setup: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/vcvarsall.bat'
===============MPI Auto-configuration===============
Found Microsoft MPI: C:\Program Files\Microsoft MPI
Found Microsoft MPI SDK: C:\Program Files (x86)\Microsoft SDKs\MPI
MPI build features:
<include>/C:/Program Files (x86)/Microsoft SDKs/MPI/Include <address-model>64:<library-path>/C:/Program Files (x86)/Microsoft SDKs/MPI/Lib/x64 <library-path>/C:/Program Files (x86)/Microsoft SDKs/MPI/Lib/x86 <find-static-library>msmpi <toolset>msvc:<define>_SECURE_SCL=0
MPI launcher: "C:\Program Files\Microsoft MPI\Bin\mpiexec.exe" -n
====================================================
don't know how to make <p/C:/.conan/0d1287/1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\vcvarsall.bat
...found 120 targets...
...updating 15 targets...
...can't find 1 target...
...can't make 2 targets...
...skipped <pbin\standalone\msvc\ab605d3a191801849fe1e1e55b908353>msvc-setup.read for lack of <p/C:/.conan/0d1287/1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\vcvarsall.bat...
...skipped <pbin\standalone\msvc\ab605d3a191801849fe1e1e55b908353>msvc-setup.bat for lack of <p/C:/.conan/0d1287/1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\vcvarsall.bat...
...skipped <pbin\system\build\aca5cb0fcccc3d2990e4e006ef019df6>error_code.obj for lack of <pbin\standalone\msvc\ab605d3a191801849fe1e1e55b908353>msvc-setup.nup...
...skipped <pbin\system\build\aca5cb0fcccc3d2990e4e006ef019df6>libboost_system.lib for lack of <pbin\system\build\aca5cb0fcccc3d2990e4e006ef019df6>error_code.obj...
...skipped <psystem\lib>libboost_system.lib for lack of <pbin\system\build\aca5cb0fcccc3d2990e4e006ef019df6>libboost_system.lib...
common.copy system\lib\jamroot.jam
bin\d41d8cd98f00b204e9800998ecf8427e\system-lib\jamroot.jam
        1 file(s) copied.
...skipped 5 targets...
...updated 12 targets...
boost_system/1.69.0@bincrafters/stable:
boost_system/1.69.0@bincrafters/stable: ERROR: Package '1cfc588b26e59ddc9e1094237b6c5153e7f2f0bc' build failed
boost_system/1.69.0@bincrafters/stable: WARN: Build folder C:\.conan\0d1287\1
ERROR: boost_system/1.69.0@bincrafters/stable: Error in build() method, line 147
        self._build_common()
while calling '_build_common', line 170
        self.run(" ".join(b2_command))
        ConanException: Error 1 while executing b2 -j8 -d+1 -a --hash=yes --debug-configuration --layout=system    system-build
@Siech0 Siech0 added the bug label Nov 29, 2019
@ltjax
Copy link

ltjax commented Dec 4, 2019

I have this problem as well. I used to work around it by using the conan dependencies from VS2017, but the new conan version does not seem to like misinx compiler versions so now my build is busted.
an confirm it has nothing to do with a fresh install, because mine is anything but.

@antoniovazquezblanco
Copy link

See #781

@xahon
Copy link

xahon commented Mar 15, 2021

the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants