https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87018
--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> --- Here is one way that works: (this is on gcc119): Use bash as your shell. export SHELL=/usr/bin/bash export CONFIG_SHELL=/usr/bin/bash export PATH=/opt/freeware/bin:$PATH ~/src/gcc/configure --disable-werror --enable-languages=c,c++ \ --with-gmp=/opt/cfarm --with-libiconv-prefix=/opt/cfarm \ --disable-libstdcxx-pch --disable-nls (not sure if that --disable-werror is needed, or was only temporarily needed, or what; but it works. No idea if that libiconv thing is needed either, there is disable-nls after all. And the pch thing is just to make bootstrap a lot faster). Here is one I use on gcc111: ~/src/gcc/configure --prefix=$HOME/tot --enable-languages=c,c++,fortran \ --with-gmp=/opt/cfarm/gmp-latest --with-mpfr=/opt/cfarm/mpfr-latest \ --with-mpc=/opt/cfarm/mpc-latest --disable-nls --disable-libsanitizer (and same env settings as on gcc119). I don't know what you are doing that causes problems. The AIX systems are annoyingly slow to experiment on, but they aren't harder at all to build on than other less mainstream systems, in my experience. So please just experiment, or ask for help when you get stuck. Good luck!