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: unassig...@gcc.gnu.org
        ReportedBy: g...@gcc.gnu.org
                CC: eric.wedding...@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.

Reply via email to