While compiling an aarch64-none-linux-gnu toolchain using crossdev, gcc 4.8.0 failed to emerge (I assume it would with other triples, too). The issue appears to lie with a Gentoo patch which adds a call to "warning" in gcc/incpath.c. This appears to be #ifdefed out on a native build, but triggers an error because "warning" hasn't been declared on a cross-build. If the patch is still relevant (looks likely), this issue can be solved by #includeing "diagnostic-core.h". Reproducible: Always
http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch?r1=1.1&r2=1.2