Home | News | Download | Packages | Forum | Wiki | Github

Compile problems and _GLIBCXX_USE_CXX11_ABI

(The_Fred) #1

I am wondering if this problem (that appeared in gcc5) is one reason why all the Void packages need a recompile?

I found that some code wouldn’t compile until I set _GLIBCXX_USE_CXX11_ABI=0. And then when I compiled that code some other code that needed this crashed so I had to recompile that with the same setting.

The code that first gave me problems had that set _GLIBCXX_USE_CXX11_ABI=1 explicitly.

(The_Fred) #2

Looks like I was correct about this requiring a rebuild. Lots of information about this. To use the code I need to use I will have to do a rebuild of probably many packages. Or wait for a mass rebuild of Void.

I think this post summarizes the impact and details of that ABI change well.

(The_Fred) #3

Got a build completed using the new ABI.

Semi-pseudo steps if you want to try it:

  • git clone void-packages
  • ./xbps-src -N bootstrap
  • ./xbps-src -N -C gcc

Change gcc4-compatible before you start any of the above.

Then build whatever else you want/need. But check in often as lots of things fail. Ranging from broken distfiles links to incorrect checksums and mysterious failures unrelated to ABI change.