I am using latest Conan 1.* version to handle dependencies on an old CentOS distro. Everything works fine, except Boost, which apparently is using something called B2:
b2: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by b2)
b2: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by b2)
The actual correct version of libstdc++.so can be found in /opt/rh/devtoolset-12/root/lib/gcc/x86_64-redhat-linux/12
, but B2 is not able to see this.
I think I set everything correctly on my Conan Profile though:
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=12.2
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
PATH=/opt/rh/devtoolset-12/root/bin:/opt/rh/devtoolset-12/root/lib/gcc/x86_64-redhat-linux/12:/opt/rh/devtoolset-12/root/lib64
I am executing the usual command:
conan install ../../conanfile.txt --build missing
Everything used to work before Conan 2.0
I am not even sure what does Boost need to do, since afaik it is a header only library and my expectations were that it would have been the easiest to handle
My Conanfile.txt is the following:
[requires]
benchmark/1.7.0
boost/1.83.0
gtest/1.10.0
[generators]
cmake
[layout]
cmake_layout
I tried also to downgrade Boost but the same error always shows up