https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116147
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What you need to do is build a native compiler first and install it somewhere (does not matter where; maybe say using --prefix=${HOME}/native-build). And then set PATH env to include ${HOME}/native-build/bin and then build the cross compiler using that new compiler.