https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120905
--- Comment #13 from TCH <tch at protonmail dot com> --- @Eric Botcazou: You were right: using the GNU assembler, but not using the GNU linker did the trick. (I tried to compile GCC6 without using neither of the GNU assembler nor the linker before, but then the assembler errored during compilation.) Thank you very much, finally i've managed to compile GCC6. I had to fix some errors i've encountered in the meantime (along with the 'rlim_t' bug from ticket #86615 [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86615]), but in the end, it did work. I attached a patch which fixes these problems. So, by doing: tar -xzf gcc-6.5.0.tar.gz cd gcc-6.5.0 patch -p0 < ../gcc6_solaris10.patch cd .. mkdir gcc6 cd gcc6 ../gcc-6.5.0/configure --prefix=/opt/gcc6 --build=sparc-sun-solaris2.10 --with-gnu-as --enable-shared --disable-nls --enable-languages=c,c++,objc --with-gmp=/opt/csw --with-mpfr=/opt/csw --with-mpc=/opt/csw export LD_LIBRARY_PATH="$LD_LIBRARY_PATH"':/opt/csw/lib/' make make install GCC 6.5 compiles with GCC 5.5 roughly in 31 hours on a Sun Blade 100. Thank you again.