1 |
On Fri, Oct 02, 2015 at 10:13:09PM -0400, Mike Frysinger wrote: |
2 |
> Title: GCC 5 Defaults to the New C++11 ABI |
3 |
> Author: Mike Frysinger <vapier@g.o> |
4 |
> Content-Type: text/plain |
5 |
> Posted: 2015-10-02 |
6 |
> Revision: 1 |
7 |
> News-Item-Format: 1.0 |
8 |
> Display-If-Installed: >=sys-devel/gcc-5 |
9 |
> |
10 |
> GCC 5 uses the new C++ ABI by default. When building new code, you might run |
11 |
> into link time errors like: |
12 |
> ...: undefined reference to '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17' |
13 |
|
14 |
Exactly what part of this line is the important part? I take it its the |
15 |
@GLIBCXX_3.4.17? or is it the lack of the __cxx11::? I have a feeling |
16 |
that posted like this and users will think anytime it says undefined |
17 |
reference then its a C++ issue which is likely not the case. |
18 |
|
19 |
> Or you might see linkage failures with "std::__cxx11::string" in the output. |
20 |
> |
21 |
> These are signs that you need to rebuild packages using the new C++ ABI. |
22 |
> You can quickly do so by using revdep-rebuild like so: |
23 |
> # revdep-rebuild --library 'libstdc\+\+\.so\.6' |
24 |
> |
25 |
> For more details, feel free to peruse: |
26 |
> https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/ |
27 |
> https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/ |
28 |
|
29 |
|
30 |
-- Jason |