https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105688
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
/usr/bin/ld:
/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version
`GLIBCXX_3.4.30' not found (required by /usr/bin/ld)
The problem is not realted to GCC directly but rather ld being linked against a
newer version of libstdc++ and now you just compiled an older version of
libstdc++ and that is in the LD_LIBRARY_PATH some how ... Which should not
happen ....
If anything this should be reported to binutils and have ld (I suspect gold
here) use -static-libstdc++ -static-libgcc while linking just the same way GCC
does.