-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintaining boost cxx11abi packages #319
Comments
@springmeyer what if we make CXX11ABI the default and we install a newer libc when running tests on the bots so Travis can execute code with CXX11ABI like if it had a newer Linux distro? |
I'd love it if we could make that the case.
Did you mean to say "newer libstdc++"? Also, isn't it not just CI bots but anywhere we deploy a binary that links against libstdc++, that needs to have a version of that library that includes the cxx11abi symbols? Is this going to be an issue? This topic isn't covered by https://github.com/mapbox/cpp#should-i-install-libstdc6-instead-of-libstdc-5-dev. |
I would also like to push for this being the default. The challenge however is that it would force CI bots running on precise to change from being
Other alternatives could be:
|
@tmpsantos (in #268) has figured out how to build cxx11abi packages for boost libraries on travis 🎉 .
The key is that we need to edit the headers of the libstdc++ installed to enable the "duel API":
sudo perl -i -p -e "s/# define _GLIBCXX_USE_DUAL_ABI 0/# define _GLIBCXX_USE_DUAL_ABI 1/g;" /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h
per #157 (comment)
Then one can set
-D_GLIBCXX_USE_CXX11_ABI=1
and it is respected and will no longer default to0
.Now we need to think through how to keep these maintained.
TODO:
https://github.com/mapbox/mason/blob/master/utils/new_boost.sh
The text was updated successfully, but these errors were encountered: