Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 464640

Summary: sys-devel/gcc-4.8.0: cross-compiling patch (67_all_gcc-poison-system-directories.patch) missing diagnostic-core.h include
Product: Gentoo Linux Reporter: Tim Northover <t.p.northover>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: embedded, pchrist, t.p.northover
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tim Northover 2013-04-04 19:46:47 UTC
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