https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472
--- Comment #3 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- It can reproduced by simply cloning the gmp repo, building it and running the testsuite: $ hg clone https://gmplib.org/repo/gmp $ cd gmp $ ./.bootstrap && ./configure --enable-cxx --enable-fat --build sparc64-linux-gnu && make -j32 && make check Switching gcc versions can be achieved by just setting the CC variable, e.g.: $ export CC=gcc-8