https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104731
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- This should be fixed on trunk, but I'm unable to test on Solaris right now: ld.so.1: g++: fatal: relocation error: file /export/home/jwakely/gcc/12/bin/g++: symbol stpcpy: referenced symbol not found If it works for your testers I'll backport it to gcc-12 as well.