conan-io / conan-center-index

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

[boost] boost/1.82.0: Installation fails #18962

Open Joshua-Schroijen opened 1 year ago

Joshua-Schroijen commented 1 year ago

Description

Hello,

I am trying to set up a Conan project with a very simple conanfile.py, where I attempt to use the latest version of Boost available on Conan Center (1.82.0):

from conan import ConanFile

class Testt(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeToolchain", "CMakeDeps"

    def requirements(self):
        self.requires("boost/1.82.0")

I am using Windows 11 and MinGW toolchain through MSYS2.

The boost build fails without much details running conan commands in the standard command prompt:

...failed updating 2 targets...

boost/1.82.0: ERROR:
Package '40f51b2884a66de2ec433ef0de2c4e0515e12199' build failed
boost/1.82.0: WARN: Build folder C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b\build-release
*********************************************************
Recipe 'boost/1.82.0' cannot build its binary
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: boost/1.82.0: Error in build() method, line 887
        self.run(full_command)
        ConanException: Error 1 while executing

I expect boost to build without much problems

I have installed Conan with the Windows installer package

Package and Environment Details

Conan profile

[settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Windows

Steps to reproduce

Use standard Windows Command Prompt (no Powershell/MSYS2/MinGW shell)

Use following conanfile.py:

from conan import ConanFile

class Testt(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeToolchain", "CMakeDeps"

    def requirements(self):
        self.requires("boost/1.82.0")

Run the following command in the same directory as conanfile.py using plain Command Prompt:

conan install . --build=missing --output_folder=build

Logs

Click to expand log ``` ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Windows Profile build: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Windows ======== Computing dependency graph ======== Graph root conanfile.py: C:\Users\asus\Zandbak\ecosystem\conanfile.py Requirements boost/1.82.0#902463606663219fc8c6d2102f1b8c6a - Cache bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d - Cache zlib/1.2.13#e377bee636333ae348d51ca90874e353 - Cache Build requirements b2/4.9.6#2e02945ad41739b8051247d14fe8297d - Cache ======== Computing necessary packages ======== boost/1.82.0: Checking 9 compatible configurations: boost/1.82.0: '6bb7a97628b4c9ac7fbf7ebc51bcaefc439c3a8d': compiler.cppstd=11 boost/1.82.0: '574263c63e9b298a983037f36ccbfe8f48d3d7d4': compiler.cppstd=gnu11 boost/1.82.0: 'ddd35775da2b8be3e0e0a744561c9a3631a04c27': compiler.cppstd=14 boost/1.82.0: '1fdb09ec25fe86adf95890c11f17e4c102bf941d': compiler.cppstd=gnu14 boost/1.82.0: '859c91634425d1b94e453297c6a283442b818d4e': compiler.cppstd=17 boost/1.82.0: 'fe8c1c45e8c88d5d930b905f306c93db7d4c9faf': compiler.cppstd=20 boost/1.82.0: '615ff3f6e6b8b6df1f3a1cfe7e62abc98c457ad4': compiler.cppstd=gnu20 boost/1.82.0: 'd002433c3bb89f791dfa9d13b1db430709f673c2': compiler.cppstd=23 boost/1.82.0: '0047af2eb0c3f02218794535015da76269f89ec7': compiler.cppstd=gnu23 Requirements boost/1.82.0#902463606663219fc8c6d2102f1b8c6a:40f51b2884a66de2ec433ef0de2c4e0515e12199 - Build bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d:d31b3789cbf264d09a68e5caf368943df6500b22#fa2c1d2b3b28e073a99bc4421b86ab35 - Cache zlib/1.2.13#e377bee636333ae348d51ca90874e353:74fce2c720f804facc619f996bab77ff99796c4d#0cf252814efa9efeafbc6730e03e9215 - Cache Build requirements b2/4.9.6#2e02945ad41739b8051247d14fe8297d:522dcea5982a3f8a5b624c16477e47195da2f84f#f2c682f418e1554cee1d9ee58af93136 - Cache ======== Installing packages ======== b2/4.9.6: Already installed! (1 of 4) bzip2/1.0.8: Already installed! (2 of 4) zlib/1.2.13: Already installed! (3 of 4) -------- Installing package boost/1.82.0 (4 of 4) -------- boost/1.82.0: Building from source boost/1.82.0: Package boost/1.82.0:40f51b2884a66de2ec433ef0de2c4e0515e12199 boost/1.82.0: Building your package in C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b boost/1.82.0: Calling generate() boost/1.82.0: Generators folder: C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b\build-release\conan boost/1.82.0: Generating aggregated env files boost/1.82.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] boost/1.82.0: Calling build() boost/1.82.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.82.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.82.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\tools\build\src\tools\gcc.jam' file. boost/1.82.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\tools\build\src\tools\gcc.jam' file. boost/1.82.0: WARN: replace_in_file didn't find pattern ' @numa' in 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\libs\fiber\build\Jamfile.v2' file. boost/1.82.0: WARN: Patching user-config.jam boost/1.82.0: WARN: using zlib : 1.2.13 : "C:/Users/asus/.conan2/p/b/zlibf432be4a23e02/p/include" "C:/Users/asus/.conan2/p/b/zlibf432be4a23e02/p/lib" z ; using bzip2 : 1.0.8 : "C:/Users/asus/.conan2/p/b/bzip2a13c8ee3fbcd4/p/include" "C:/Users/asus/.conan2/p/b/bzip2a13c8ee3fbcd4/p/lib" bz2 ; using "gcc" : : "C:/msys64/mingw64/bin/g++.EXE" : ; boost/1.82.0: WARN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\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 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-url --with-wave toolset=gcc cxxflags=-std=gnu++17 define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\p -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b\build-release" boost/1.82.0: RUN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\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 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-url --with-wave toolset=gcc cxxflags=-std=gnu++17 define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\p -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b\build-release" notice: found boost-build.jam at C:/Users/asus/.conan2/p/boost0eafd9621eb61/s/src/boost-build.jam notice: loading B2 from C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/kernel/bootstrap.jam notice: Searching 'C:\Users\asus' 'C:\Users\asus' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/kernel' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/util' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/build' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/tools' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/contrib' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in 'C:\Users\asus' 'C:\Users\asus' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/kernel' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/util' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/build' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/tools' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/contrib' 'C:/Users/asus/.conan2/p/b27f66a5214f378/p/bin/.b2/.'. notice: Loading explicitly specified user configuration file: C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\tools\build\user-config.jam notice: Searching 'C:\Users\asus\.conan2\p\boost0eafd9621eb61\s\src\tools\build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/asus/.conan2/p/boost0eafd9621eb61/s/src/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: will use 'C:/msys64/mingw64/bin/g++.EXE' for gcc, condition gcc-13 notice: using gcc libraries :: gcc-13 :: C:/msys64/mingw64/bin C:/msys64/mingw64/lib C:/msys64/mingw64/lib32 C:/msys64/mingw64/lib64 notice: using gcc archiver :: gcc-13 :: C:/msys64/mingw64/x86_64-w64-mingw32/bin/ar.exe notice: using rc compiler :: gcc-13 :: C:\msys64\mingw64\bin\windres.exe 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:\msys64\mingw64\bin\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:\msys64\mingw64\Include" notice: [python-cfg] library path: "C:\msys64\mingw64\libs" notice: [python-cfg] DLL search path: "C:\msys64\mingw64" 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 disabled. Reason: notice: [python-cfg] python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" aborted with notice: [python-cfg] Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'numpy' Performing configuration checks - default address-model : 64-bit [1] - default architecture : x86 [1] - compiler supports SSE2 : yes [2] - compiler supports SSE4.1 : yes [2] - has synchronization.lib : yes [2] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [2] - has BCrypt API : yes [2] - has init_priority attribute : yes [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] - has fdopendir(O_NOFOLLOW) : no [2] - has POSIX *at APIs : no [2] - cxx11_auto_declarations : yes [2] - cxx11_constexpr : yes [2] - cxx11_defaulted_functions : yes [2] - cxx11_final : yes [2] - cxx11_hdr_mutex : yes [2] - cxx11_hdr_tuple : yes [2] - cxx11_lambdas : yes [2] - cxx11_noexcept : yes [2] - cxx11_nullptr : yes [2] - cxx11_rvalue_references : yes [2] - cxx11_template_aliases : yes [2] - cxx11_thread_local : yes [2] - cxx11_variadic_templates : yes [2] - has_icu builds : no [2] - zlib : yes [3] - bzip2 : yes [3] - cxx11_decltype : yes [2] - cxx11_basic_alignas : yes [2] - cxx11_defaulted_moves : yes [2] - cxx11_hdr_functional : yes [2] - cxx11_hdr_type_traits : yes [2] - cxx11_override : yes [2] - cxx11_range_based_for : yes [2] - cxx11_scoped_enums : yes [2] - cxx11_smart_ptr : yes [2] - cxx11_static_assert : yes [2] - native atomic int32 supported : yes [2] - has message compiler : no [2] - native syslog supported : no [2] - pthread supports robust mutexes : no [2] - compiler supports SSSE3 : yes [2] - compiler supports AVX2 : yes [2] - gcc visibility : yes [2] - sfinae_expr : yes [2] - cxx11_unified_initialization_syntax : yes [2] - cxx11_hdr_initializer_list : yes [2] - cxx11_hdr_chrono : yes [2] - cxx11_numeric_limits : yes [2] - cxx11_hdr_array : yes [2] - cxx11_hdr_atomic : yes [2] - cxx11_allocator : yes [2] - cxx11_explicit_conversion_operators : yes [2] - gcc visibility : yes [4] - cxx11_noexcept : yes [4] - cxx11_rvalue_references : yes [4] - sfinae_expr : yes [4] - cxx11_auto_declarations : yes [4] - cxx11_lambdas : yes [4] - cxx11_unified_initialization_syntax : yes [4] - cxx11_hdr_tuple : yes [4] - cxx11_hdr_initializer_list : yes [4] - cxx11_hdr_chrono : yes [4] - cxx11_thread_local : yes [4] - cxx11_constexpr : yes [4] - cxx11_nullptr : yes [4] - cxx11_numeric_limits : yes [4] - cxx11_decltype : yes [4] - cxx11_hdr_array : yes [4] - cxx11_hdr_atomic : yes [4] - cxx11_hdr_type_traits : yes [4] - cxx11_allocator : yes [4] - cxx11_explicit_conversion_operators : yes [4] - long double support : yes [4] - std::fstream is moveable and swappable : yes [2] - Has Large File Support : yes [2] - Has attribute init_priority : yes [2] - libbacktrace builds : no [2] - libbacktrace builds : no [5] - addr2line builds : no [2] - addr2line builds : no [5] - WinDbg builds : yes [2] - WinDbg builds : yes [5] - WinDbgCached builds : yes [2] - BOOST_COMP_GNUC >= 4.3.0 : yes [2] - cxx11_hdr_thread : yes [2] - cxx11_hdr_regex : yes [2] [1] gcc-13 [2] gcc-13/rls/bst.l-off/bst.l-off/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn [3] lnk-sttc [4] gcc-13/rls/bst.l-off/bst.l-off/lnk-sttc/nm-on/pch-off/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn [5] gcc-13/rls/bst.l-off/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn 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 - url : building - wave : building ...failed updating 2 targets... boost/1.82.0: ERROR: Package '40f51b2884a66de2ec433ef0de2c4e0515e12199' build failed boost/1.82.0: WARN: Build folder C:\Users\asus\.conan2\p\b\boostd6d93a81252fd\b\build-release ********************************************************* Recipe 'boost/1.82.0' cannot build its binary It is possible that this recipe is not Conan 2.0 ready If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html If it is your recipe, check if it is updated to 2.0 ********************************************************* ERROR: boost/1.82.0: Error in build() method, line 887 self.run(full_command) ConanException: Error 1 while executing ```
SpaceIm commented 1 year ago

Try to disable stacktrace & url, see https://github.com/conan-io/conan-center-index/issues/20883#issuecomment-1789791275