conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
966 stars 1.78k forks source link

[package] boost/1.78.0: can't build with Visual Studio 2022 + v142 #10135

Open Nekto89 opened 2 years ago

Nekto89 commented 2 years ago

Package and Environment Details (include every applicable attribute)

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

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.toolset=v142
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conan install boost/1.78.0@ --build=boost -s compiler.toolset=v142 -s compiler.version=17

Logs (Include/Attach if Applicable)

Click to expand log ``` boost/1.78.0: Forced build from source Installing package: boost/1.78.0 Requirements boost/1.78.0 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache zlib/1.2.11 from 'conancenter' - Cache Packages boost/1.78.0:37050c911e5419517ec6e0761c16c6e262b3e2a3 - Build bzip2/1.0.8:d16a91eadaaf5829b928b12d2f836ff7680d3df5 - Cache zlib/1.2.11:3fb49604f9c2f729b85ba3115852006824e72cab - Cache Build requirements b2/4.8.0 from 'conancenter' - Cache Build requirements packages b2/4.8.0:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache Installing (downloading, building) binaries... b2/4.8.0: Already installed! bzip2/1.0.8: Already installed! bzip2/1.0.8: Appending PATH environment variable: C:\Users\mklymov\.conan\data\bzip2\1.0.8\_\_\package\d16a91eadaaf5829b928b12d2f836ff7680d3df5\bin zlib/1.2.11: Already installed! boost/1.78.0: Applying build-requirement: b2/4.8.0 boost/1.78.0: WARN: Build folder is dirty, removing it: C:\.conan\fe0a61\1 boost/1.78.0: Building your package in C:\.conan\fe0a61\1 boost/1.78.0: Generator txt created conanbuildinfo.txt boost/1.78.0: Aggregating env generators boost/1.78.0: Calling build() WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\.conan\66b2d2\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file. WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\.conan\66b2d2\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file. WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\.conan\66b2d2\1\source_subfolder\tools\build\src\tools\gcc.jam' file. WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\.conan\66b2d2\1\source_subfolder\tools\build\src\tools\gcc.jam' file. WARN: replace_in_file didn't find pattern ' @numa' in 'C:\.conan\66b2d2\1\source_subfolder\libs\fiber\build\Jamfile.v2' file. boost/1.78.0: WARN: Patching user-config.jam boost/1.78.0: WARN: using zlib : 1.2.11 : "C:/Users/mklymov/.conan/data/zlib/1.2.11/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/include" "C:/Users/mklymov/.conan/data/zlib/1.2.11/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib" zlib ; using bzip2 : 1.0.8 : "C:/Users/mklymov/.conan/data/bzip2/1.0.8/_/_/package/d16a91eadaaf5829b928b12d2f836ff7680d3df5/include" "C:/Users/mklymov/.conan/data/bzip2/1.0.8/_/_/package/d16a91eadaaf5829b928b12d2f836ff7680d3df5/lib" bz2 ; using "msvc" : 14.2 : "" : ; boost/1.78.0: WARN: b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\66b2d2\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv runtime-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=msvc pch=on cxxflags="-fPIC" install --prefix=C:\.conan\7a1624\1 -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\fe0a61\1" notice: found boost-build.jam at C:/.conan/66b2d2/1/source_subfolder/boost-build.jam notice: loading B2 from C:/.conan/66b2d2/1/source_subfolder/tools/build/src/bootstrap.jam warning: mismatched versions of B2 engine and core warning: B2 engine (b2.exe) is 4.8.0 warning: B2 core (at C:/.conan/66b2d2/1/source_subfolder/tools/build/src) is 4.7-git notice: Searching 'C:\Users\mklymov' 'C:\Users\mklymov' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/kernel' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/util' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/build' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/tools' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/contrib' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in 'C:\Users\mklymov' 'C:\Users\mklymov' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/kernel' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/util' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/build' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/tools' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/contrib' 'C:/.conan/66b2d2/1/source_subfolder/tools/build/src/.'. notice: Loading explicitly specified user configuration file: C:\.conan\66b2d2\1\source_subfolder\tools\build\user-config.jam notice: Searching 'C:\.conan\66b2d2\1\source_subfolder\tools\build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from 'C:/.conan/66b2d2/1/source_subfolder/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: [msvc-cfg] msvc-14.3 detected, command: 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe' warning: toolset msvc initialization: can not find tool cl.exe warning: initialized from C:\.conan\66b2d2\1\source_subfolder\tools\build\user-config.jam:5 warning: Did not find command for MSVC toolset. If you have Visual Studio 2017 installed you will need to specify the full path to the command, set VS150COMNTOOLS for your installation, or build from the 'Visual Studio Command Prompt for VS 2017'. notice: will use 'cl.exe' for msvc, condition msvc-14.2 notice: [msvc-cfg] condition: 'msvc-14.2/x86/32', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2//32', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/x86/64', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2//64', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/x86/', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2//', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/ia64/64', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/ia64/', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/arm/32', setup: '' notice: [msvc-cfg] condition: 'msvc-14.2/arm/64', setup: '' notice: [zlib] zlib is already configured notice: [bzip2] bzip is already configured notice: iostreams: not using lzma compression notice: iostreams: not using zstd compression notice: [python-cfg] Configuring python... notice: [python-cfg] Checking interpreter command "python"... notice: [python-cfg] running command 'DIR /-C /A:S "C:\Soft\Python310\python.exe" 2>&1' notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "python" notice: [python-cfg] include path: "C:\Soft\Python310\Include" notice: [python-cfg] library path: "C:\Soft\Python310\libs" notice: [python-cfg] DLL search path: "C:\Soft\Python310" notice: [python-cfg] Checking for NumPy... notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"' notice: [python-cfg] NumPy enabled Performing configuration checks - default address-model : none [1] - default architecture : none [1] - compiler supports SSE2 : no [2] - compiler supports SSE4.1 : no [2] - has synchronization.lib : no [2] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [2] - has BCrypt API : no [2] - is Windows CE : no [2] - has init_priority attribute : no [2] - has stat::st_blksize : no [2] - has stat::st_mtim : no [2] - has stat::st_mtimensec : no [2] - has stat::st_mtimespec : no [2] - has stat::st_birthtim : no [2] - has stat::st_birthtimensec : no [2] - has stat::st_birthtimespec : no [2] - cxx11_auto_declarations : no [2] - cxx11_constexpr : no [2] - cxx11_defaulted_functions : no [2] - cxx11_final : no [2] - cxx11_hdr_mutex : no [2] - cxx11_hdr_tuple : no [2] - cxx11_lambdas : no [2] - cxx11_noexcept : no [2] - cxx11_nullptr : no [2] - cxx11_rvalue_references : no [2] - cxx11_template_aliases : no [2] - cxx11_thread_local : no [2] - cxx11_variadic_templates : no [2] - cxx11_auto_declarations : no [3] - cxx11_constexpr : no [3] - cxx11_defaulted_functions : no [3] - cxx11_final : no [3] - cxx11_hdr_mutex : no [3] - cxx11_hdr_tuple : no [3] - cxx11_lambdas : no [3] - cxx11_noexcept : no [3] - cxx11_nullptr : no [3] - cxx11_rvalue_references : no [3] - cxx11_template_aliases : no [3] - cxx11_thread_local : no [3] - cxx11_variadic_templates : no [3] - has_icu builds : no [2] - zlib : no [4] - bzip2 : no [4] warning: Boost.Json was explicitly requested, but will not be built, because it requires C++11. note: To enable C++11 support, use the 'cxxstd=11' command line argument. - cxx11_decltype : no [2] - cxx11_basic_alignas : no [2] - cxx11_decltype : no [3] - cxx11_basic_alignas : no [3] - native atomic int32 supported : no [2] - has message compiler : no [2] - native syslog supported : no [2] - pthread supports robust mutexes : no [2] - compiler supports SSSE3 : no [2] - compiler supports AVX2 : no [2] - gcc visibility : no [2] - sfinae_expr : no [2] - cxx11_unified_initialization_syntax : no [2] - cxx11_hdr_initializer_list : no [2] - cxx11_hdr_chrono : no [2] - cxx11_numeric_limits : no [2] - cxx11_hdr_array : no [2] - cxx11_hdr_atomic : no [2] - cxx11_hdr_type_traits : no [2] - cxx11_allocator : no [2] - cxx11_explicit_conversion_operators : no [2] - gcc visibility : no [3] - sfinae_expr : no [3] - cxx11_unified_initialization_syntax : no [3] - cxx11_hdr_initializer_list : no [3] - cxx11_hdr_chrono : no [3] - cxx11_numeric_limits : no [3] - cxx11_hdr_array : no [3] - cxx11_hdr_atomic : no [3] - cxx11_hdr_type_traits : no [3] - cxx11_allocator : no [3] - cxx11_explicit_conversion_operators : no [3] - cxx11_static_assert : no [2] - std::fstream is moveable and swappable : no [2] - Has Large File Support : no [2] - Has attribute init_priority : no [2] - cxx11_static_assert : no [3] - std::fstream is moveable and swappable : no [3] - Has Large File Support : no [3] - Has attribute init_priority : no [3] - libbacktrace builds : no [2] - libbacktrace builds : no [3] - addr2line builds : no [2] - addr2line builds : no [3] - WinDbg builds : no [2] - WinDbg builds : no [3] - WinDbgCached builds : no [2] - WinDbgCached builds : no [3] - BOOST_COMP_GNUC >= 4.3.0 : no [2] [1] msvc-14.2 [2] msvc-14.2/rls/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn [3] msvc-14.2/rls/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn [4] lnk-sttc Component configuration: - atomic : building - chrono : building - container : building - context : building - contract : building - coroutine : building - date_time : building - exception : building - fiber : building - filesystem : building - graph : building - graph_parallel : not building - headers : not building - iostreams : building - json : building - locale : building - log : building - math : building - mpi : not building - nowide : building - program_options : building - python : not building - random : building - regex : building - serialization : building - stacktrace : building - system : building - test : building - thread : building - timer : building - type_erasure : building - wave : building ...skipped libboost_regex.lib for lack of posix_api.obj... ...failed updating 9 targets... boost/1.78.0: boost/1.78.0: ERROR: Package '37050c911e5419517ec6e0761c16c6e262b3e2a3' build failed boost/1.78.0: WARN: Build folder C:\.conan\fe0a61\1 ERROR: boost/1.78.0: Error in build() method, line 840 self.run(full_command, run_environment=True) ConanException: Error 1 while executing b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\66b2d2\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv runtime-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=msvc pch=on cxxflags="-fPIC" install --prefix=C:\.conan\7a1624\1 -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\fe0a61\1" ```
RickHuyett commented 2 years ago

I have also run into this same issue. I tried with Visual Studio 2017 and 2022.

This is the error output:

boost/1.78.0: WARN: b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:.conan\b49b74\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv runtime-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesyst em --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=msvc pch=on cxxflags="-fPIC" install --prefix=C:.conan\14b5cd\1 -j6 --abbreviate-paths -d0 --debug-configuration --build-dir="C:.conan\7e7bb2\1" boost/1.78.0: ERROR: Package '2489da2840db565d124f17880bba24433617a3be' build failed boost/1.78.0: WARN: Build folder C:.conan\7e7bb2\1 ERROR: boost/1.78.0: Error in build() method, line 875 self.run(full_command, run_environment=True) ConanException: Error 1 while executing b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:.conan\b49b74\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv run time-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=msvc pch=on cxxflags="-fPIC" install --prefix=C:.conan\14b5cd\1 -j6 --abbreviate-paths -d0 --debug-configuration --build-dir="C:.conan\7e7bb2\1"

CMake Error at E:/Dev/nmos-cpp/x64/conan.cmake:540 (message): Conan install failed='1' Call Stack (most recent call first): E:/Dev/nmos-cpp/x64/conan.cmake:877 (old_conan_cmake_install) cmake/NmosCppConan.cmake:30 (conan_cmake_run) cmake/NmosCppCommon.cmake:5 (include) CMakeLists.txt:18 (include)