https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110789
--- Comment #9 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #7) > If you compile GMP (MPFR and MPC) as part of GCC build rather than > seperately, the build will do the correct thing and not use the "native" > options by default. > > > You could also configure GMP using --target=none-linux-gnu > --host=none-linux-gnu --build=none-linux-gnu to disable that similar thing > (just as building GMP as part of GCC's build). > > From Makefile.def: > host_modules= { module= gmp; lib_path=.libs; bootstrap=true; > // Work around in-tree gmp configure bug with missing flex. > extra_configure_flags='--disable-shared LEX="touch lex.yy.c" > @host_libs_picflag@'; > extra_make_flags='AM_CFLAGS="-DNO_ASM"'; > no_install= true; > // none-*-* disables asm optimizations, bootstrap-testing > // the compiler more thoroughly. > host="none-${host_vendor}-${host_os}"; > // gmp's configure will complain if given anything > // different from host for target. > target="none-${host_vendor}-${host_os}"; }; FWIW when I try this, configure script says: configure: WARNING: the "none" host is obsolete, use --disable-assembly So I'll change the LFS book to use --disable-assembly instead of these fancy "cp configfsf" things. Not sure if we should use --disable-assembly too for GCC in-tree GMP (I don't know which the first version of GMP supports --disable-assembly).