https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88535
--- Comment #12 from john henning <mailboxnotfound at yahoo dot com> --- Summary: Eric's advice worked as prescribed. Detail: On a SPARC Solaris 11.4 system, with a /usr/bin/gcc that by default produces 64-bit objects, this worked for an 8.2.0 bootstrap build: export CC="gcc -m64" export CXX="g++ -m64" /export/home/johnh/gcc/build/gcc-8.2.0/configure \ --enable-languages=c,c++,fortran --enable-lto \ --without-system-zlib --with-included-gettext \ \ --build=sparcv9-sun-solaris2.11 \ \ --disable-libvtv \ --with-gnu-as --with-as=/usr/gnu/bin/as \ --without-gnu-ld --with-ld=/usr/bin/ld \ --with-pkgversion=johnh-18-Dec-2018 \ --prefix=/export/GCC/gcc-8.2.0 \ --with-local-prefix=/export/GCC gmake -j200 bootstrap && gmake install and in particular, dwarf2out.o matches exactly for stage 2 and 3: $ file */dwarf2out.o gcc/dwarf2out.o: ELF 64-bit MSB relocatable SPARCV9 Version 1 prev-gcc/dwarf2out.o: ELF 64-bit MSB relocatable SPARCV9 Version 1 stage1-gcc/dwarf2out.o: ELF 64-bit MSB relocatable SPARCV9 Version 1 $ md5sum */dwarf2out.o 9648da8ac96c68bc929b5a23f9174889 gcc/dwarf2out.o 9648da8ac96c68bc929b5a23f9174889 prev-gcc/dwarf2out.o e482bf6aeef8753c6f5eac01bfb5f061 stage1-gcc/dwarf2out.o $