https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462
--- Comment #1 from dhowells at redhat dot com <dhowells at redhat dot com> --- Here's the configuration command for hosting on ppc64le: CFLAGS='-O2 -g -Wall -Wformat-security -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mcpu=power8 -mtune=power8' \ CXXFLAGS=' -O2 -g -Wformat-security -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mcpu=power8 -mtune=power8 ' \ CFLAGS_FOR_TARGET='-g -O2 -Wall -fexceptions' \ AR_FOR_TARGET=/usr/bin/sh-linux-gnu-ar \ AS_FOR_TARGET=/usr/bin/sh-linux-gnu-as \ DLLTOOL_FOR_TARGET=/usr/bin/sh-linux-gnu-dlltool \ LD_FOR_TARGET=/usr/bin/sh-linux-gnu-ld \ NM_FOR_TARGET=/usr/bin/sh-linux-gnu-nm \ OBJDUMP_FOR_TARGET=/usr/bin/sh-linux-gnu-objdump \ RANLIB_FOR_TARGET=/usr/bin/sh-linux-gnu-ranlib \ READELF_FOR_TARGET=/usr/bin/sh-linux-gnu-readelf \ STRIP_FOR_TARGET=/usr/bin/sh-linux-gnu-strip \ WINDRES_FOR_TARGET=/usr/bin/sh-linux-gnu-windres \ WINDMC_FOR_TARGET=/usr/bin/sh-linux-gnu-windmc \ LDFLAGS='-Wl,-z,relro ' \ configure --bindir=/usr/bin --build=ppc64le-redhat-linux-gnu --datadir=/usr/share --disable-decimal-float --disable-dependency-tracking --disable-gold --disable-libgcj --disable-libgomp --disable-libmpx --disable-libquadmath --disable-libssp --disable-libunwind-exceptions --disable-shared --disable-silent-rules --disable-sjlj-exceptions --disable-threads --with-ld=/usr/bin/sh-linux-gnu-ld --enable-__cxa_atexit --enable-checking=release --enable-gnu-unique-object --enable-initfini-array --enable-languages=c,c++ --enable-linker-build-id --enable-lto --enable-nls --enable-obsolete --enable-plugin --enable-secureplt --enable-targets=all --exec-prefix=/usr --host=ppc64le-redhat-linux-gnu --includedir=/usr/include --infodir=/usr/share/info --libexecdir=/usr/libexec --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --program-prefix=sh-linux-gnu- --sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc --target=sh-linux-gnu --with-bugurl=http://bugzilla.redhat.com/bugzilla/ --with-gcc-major-version-only --with-isl --with-newlib --with-plugin-ld=/usr/bin/sh-linux-gnu-ld --with-sysroot=/usr/sh-linux-gnu/sys-root --with-system-libunwind --with-system-zlib --without-headers --with-multilib-list=m1,m2,m2e,m2a,m2a-single,m4,m4-single,m4-single-only,m4-nofpu --with-linker-hash-style=gnu Other arches would be similar. The gcc-7 version in question would be: %global DATE 20170209 %global SVNREV 245310 The binutils in 2.27 cross-compiled for sh.