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

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Nach from comment #4)
> The issue isn't that it can't run on a machine with a proper libstdc++
> installed, the issue is that -static-libstdc++ is broken, meaning the binary
> cannot run on a system without libstdc++ installed (or a too old version).

Please don't guess what might be wrong. As strace would show, no libstdc++ is
opened when executing test.

> Trying to run the Debian compiled binary on RHEL5 is giving me:
> 
> ./test: symbol lookup error: ./test: undefined symbol:
> _ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE

Does compiling with: -fuse-ld=gold -Wl,--no-gnu-unique
help? Seems like your old system (ld.so?) gets confused by the new feature.

Reply via email to