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
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):
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:
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:
Run the following command in the same directory as conanfile.py using plain Command Prompt:
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 '