https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616
--- Comment #3 from Mikael Pettersson <mikpelinux at gmail dot com> --- > cat mips64el-unknown-linux-gnu/libgcc/config.log ... configure:3778: checking for suffix of object files configure:3800: /var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/ -B/usr/mips64el-unknown-linux-gnu/bin/ -B/usr/mips64el-unknown-linux-gnu/lib/ -isystem /usr/mips64el-unknown-linux-gnu/include -isystem /usr/mips64el-unknown-linux-gnu/sys-include -fno-checking -c -g -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC -O2 -minterlink-mips16 conftest.c >&5 /usr/mips64el-unknown-linux-gnu/bin/as: unrecognized option '-mloongson-mmi' configure:3804: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3818: error: in `/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc': configure:3820: error: cannot compute suffix of object files: cannot compile You have a clear discrepancy between gcc and binutils. As you're using Gentoo sources and build procedure I suggest you report the bug to them.