[Bug libstdc++/52689] static linking with libstdc++ fails

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Sat Mar 24 20:21:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52689

--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-03-24 20:20:54 UTC ---
It looks like a linker bug.
I was able to reproduce the issue with Fedora17.

 $ ld -v
GNU ld version 2.22.52.0.1-10.fc17 20120131
 $ g++ x.cc -static-libstdc++
/usr/bin/ld: a.out: No symbol version section for versioned symbol
`_ZSt15future_category@@GLIBCXX_3.4.14'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

Gold is fine:

 $ sudo ln -f /bin/ld.gold /bin/ld
 $ g++ x.cc -static-libstdc++
 $



More information about the Gcc-bugs mailing list