https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106429
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also almost all of the GCC build scripts depend on just POSIX sh rather than bash. It might be the case you need to set CONFIG_SHELL instead as defined as part of the autoconf .