public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57501] New: [avr] generated collect2 crttn24a.o missing path with -mmcu=attiny24a
@ 2013-06-02  0:02 cmtptr at gmail dot com
  2013-06-10 10:27 ` [Bug target/57501] " gjl at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: cmtptr at gmail dot com @ 2013-06-02  0:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/57501] [avr] generated collect2 crttn24a.o missing path with -mmcu=attiny24a
  2013-06-02  0:02 [Bug c/57501] New: [avr] generated collect2 crttn24a.o missing path with -mmcu=attiny24a cmtptr at gmail dot com
@ 2013-06-10 10:27 ` gjl at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-06-10 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|attiny24a                   |avr
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |gjl at gcc dot gnu.org
               Host|Linux 3.9.2-1-ARCH x86_64   |x86_64-linux-gnu
         Resolution|---                         |INVALID

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
This looks like an artifact of missing feature AVR-LibC #35407, cf.
http://savannah.nongnu.org/bugs/?35407

In your installation there must be a directory avr/lib/avr25/tiny-stack and
therein -- amongst others -- the object file crttn24a.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-10 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-02  0:02 [Bug c/57501] New: [avr] generated collect2 crttn24a.o missing path with -mmcu=attiny24a cmtptr at gmail dot com
2013-06-10 10:27 ` [Bug target/57501] " gjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).