https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90440
--- Comment #6 from eligis at orange dot fr --- You gave me probably the root of this issue with "dir containing a symlink to the chosen file". In March, I switched from coreutils 8.30 to 8.31. Since then, trying to compile emacs failed because of a ln error as did recent gawk 5.0. I checked the coreutil ChangeLog which mentions some changes with ln command. After reinstalling 8.30 instead of 8.31, now both emacs and gawk compile smoothly. I'm currently recompiling gcc 9.1... I have a slow machine and it takes around 2 days to complete. It is very likely that ln failed but didn't stop the gcc build process. I'll let you informed of the result. Thanks for your first class support guys. -----Original Message----- From: redi at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] Sent: Monday, May 13, 2019 11:41 To: jull...@eligis.com Subject: [Bug libstdc++/90440] [8/9/10 regression] Solaris/SPARC 10 fails to find <ext/opt_random.h> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90440 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The libstdc++ config should select one of these headers to use: ./config/cpu/i486/opt/ext/opt_random.h ./config/cpu/aarch64/opt/ext/opt_random.h ./config/cpu/generic/opt/ext/opt_random.h There should be an "ext" dir containing a symlink to the chosen file, which will be found by -I/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/include/sparc-sun-solaris2.10 It's possible that for --enable-obsolete this isn't set up correctly (although I think solaris2.10 is only obsolete for gcc-9 not gcc-8).