https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70936
--- Comment #11 from Rolf Eike Beer <e...@sf-mail.de> --- I configured with: ../gcc-host/configure --target=i686-unknown-linux-gnu --host=x86_64-pc-linux- gnu --build=x86_64-pc-linux-gnu --program-prefix=i686-unknown-linux-gnu- -- with-sysroot=/opt/emlix/test/sysroot --with-build-sysroot=/opt/emlix/test/ sysroot --with-gxx-include-dir=/opt/emlix/test/sysroot/usr/include/c++/6.2.0 --with-gnu-as --with-gnu-ld --enable-__cxa_atexit --enable-c99 --enable- clocale=gnu --with-system-zlib --enable-long-long --disable-multilib --enable- threads=posix --prefix=/opt/emlix/test --mandir=/opt/emlix/test/share/man -- infodir=/opt/emlix/test/share/info --enable-libssp --enable-libgomp --disable- gcj --disable-sjlj-exceptions --enable-languages=c,c++ --disable-interpreter --disable-libstdcxx-pch --with-gmp=/opt/emlix/test --with-mpfr=/opt/emlix/test --with-mpc=/opt/emlix/test --without-ppl --without-cloog --with-slibdir=/opt/ emlix/test/sysroot/lib --with-build-time-tools=/opt/emlix/test/i686-unknown- linux-gnu/bin '--with-pkgversion=emlix Linux Test-BSP' Please note that the --with-gxx-include-dir is not the culprit, the failure happens also without it.