Closed mbeach closed 5 years ago
seems like the same issue as #298
@mbeach changes applied to boost generator, could you possibly give an another try?
Thanks @SSE4 I'll give it a try.
@SSE4 the changes look fine to me, as I now seem to be able to build folly for libstdc++.
Thanks for this fix. I was just about to report it myself.
This is fixing a problem for us when using devtoolset-7 on CentOS 6.10 as well. The binaries in Bintray for boost 1.66.0 still look like they're compiled for libstdc++11, but forcing a build with --build boost_test --build boost_filesystem
is working for us.
Are there plans to rebuild the binaries?
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++
build_type=Release
@datalogics-kam we're currently building boost 1.67, which occupies CI heavily. it will definitely take several days. after that, we may rebuild required 1.66 binaries as well.
I am closing this one, as fix was applied. if certain boost libraries weren't rebuilt, please open new issue(s).
Description of Problem, Request, or Question
Currently, when conan package for a non-header only boost library is built, the build is always done using the compiler's default ABI. This means that even when we attempt to build for libstdc++, if the compiler defaults to libstdc++11 (say gcc 5.4 on Ubuntu 16.04) we build libraries that purport to be using the pre-C++11 ABI but are in fact using the C++11 ABI. Builds that attempt to use these libraries will fail.
This can be confirmed by looking at boost_program_options from bintray...
The package clearly claims to be the pre-C++11 ABI, but the tell-tale __cxx11 namespace is present when we look at the symbols with nm.
To fix this I think we need to fix up the
b2_libcxx()
function in https://github.com/bincrafters/conan-boost_generator/blob/stable/1.66.0/conanfile.py so that the correct flags are set.Please see pull request bincrafters/conan-boost_generator#5 for my suggested fix.
I believe this is the root cause for issue #298, and I think pull request bincrafters/conan-boost_generator#1 also attempts to address the same underlying issue.
For examples of the boost libraries built using this fix, please see the CI builds of https://github.com/mbeach/conan-boost_program_options and https://github.com/mbeach/conan-boost_regex.
Package Details (Include if Applicable)