[Bug target/51409] New: [avr] Build fails if configured for other languages than from c-family
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 4 15:08:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51409
Bug #: 51409
Summary: [avr] Build fails if configured for other languages
than from c-family
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: build
Severity: blocker
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
CC: eric.weddington@atmel.com
Target: avr
There is no generic function to get the name of an address space.
As avr.c needs the name for diagnostics, it uses c_addr_space_name which is
only available if C frontend is linked and thus building the compiler for any
language not in c-family will abort with a linker complaint for missing
c_addr_space_name.
Fix is to use C-only languages, e.g. configure with --disable-lto or apply the
patch below.
More information about the Gcc-bugs
mailing list