http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57501

            Bug ID: 57501
           Summary: [avr] generated collect2 crttn24a.o missing path with
                    -mmcu=attiny24a
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cmtptr at gmail dot com

While compiling with "gcc -mmcu=attiny24 ..." works fine, "gcc -mmcu=attiny24a
..." produces the following output:

$ avr-gcc -mmcu=attiny24a test.c
/usr/bin/avr-ld: cannot find crttn24a.o: No such file or directory
collect2: error: ld returned 1 exit status

With the "-v" flag I noticed that -mmcu=attiny24 generates a full path to its
crt to pass to collect2, but -mmcu=attiny24a does not:

COLLECT_GCC_OPTIONS='-v' '-mmcu=attiny24' '-msp8'
 /usr/lib/gcc/avr/4.8.0/collect2 -m avr25
/usr/lib/gcc/avr/4.8.0/../../../../avr/lib/crttn24.o
-L/usr/lib/gcc/avr/4.8.0/avr25/tiny-stack -L/usr/lib/gcc/avr/4.8.0
-L/usr/lib/gcc/avr/4.8.0/../../../../avr/lib /tmp/cclAPzGk.o --start-group
-lgcc -lm -lc --end-group

COLLECT_GCC_OPTIONS='-v' '-mmcu=attiny24a' '-msp8'
 /usr/lib/gcc/avr/4.8.0/collect2 -m avr25 crttn24a.o
-L/usr/lib/gcc/avr/4.8.0/avr25/tiny-stack -L/usr/lib/gcc/avr/4.8.0
-L/usr/lib/gcc/avr/4.8.0/../../../../avr/lib /tmp/cczhqhaD.o --start-group
-lgcc -lm -lc --end-group

Reply via email to