https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89494
--- Comment #2 from Piotr Kubaj <pkubaj at anongoth dot pl> --- I compile from FreeBSD ports tree (just change the port's Makefile not to use external (newer) GCC, but the in-base 4.2.1), so it adds some environment variables. /usr/bin/env CC="g cc6" CPP="cpp6" CXX="g++6" CFLAGS="-O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing " CPPFLAGS="-DLIBICONV_PLUG" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -DLIBICONV_PLUG " LDFLAGS=" " LIBS="" INSTALL="/usr/bin/install -c" INSTALL_DATA="install -m 0644" INSTALL_LIB="install -s -m 0644" INSTALL_PROGRAM="install -s -m 555" INSTALL_SCRIPT="install -m 555" MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 UNAME_m="powerpc64" XDG_DATA_HOME=/usr/local/poudriere/ports/default/lang/gcc9-devel/work XDG_CONFIG_HOME=/usr/local/poudriere/ports/default/lang/gcc9-devel/work HOME=/usr/local/poudriere/ports/default/lang/gcc9-devel/work PATH=/usr/local/poudriere/ports/default/lang/gcc9-devel/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar" AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt" GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm" OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump" RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf" SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" CONFIG_SITE=/usr/local/poudriere/ports/default/Templates/config.site lt_cv_sys_max_cmd_len=262144 /usr/local/poudriere/ports/default/lang/gcc9-devel/work/gcc-9-20190217/configure --enable-multilib --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc9 --libexecdir=/usr/local/libexec/gcc9 --program-suffix=9 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc9/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion="FreeBSD Ports Collection" --with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local