avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linu


From: Günter Dannoritzer
Subject: Re: [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux
Date: Wed, 23 Nov 2005 16:20:46 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

Joerg Wunsch wrote:
Günter Dannoritzer <address@hidden> wrote:

/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o: No such 
file: No such file or directory

Please run your command to link the job with the -v added.  That
should show you the ld command that is being run.

Here is the linker call with the -v option:

avr-gcc -v -Wl,-Map,camera.map -o app.elf err.o intr.o ll.o print.o putchar.o quad.o tl.o uart.o wdog.o mmap.o tmr.o app.o main.o
Using built-in specs.
Target: avr
Configured with: ../configure --target=avr --prefix=/usr/local/avr --disable-nls --enable-language=c : (reconfigured) ../configure --prefix=/usr/local/avr --target=avr --enable-languages=c --disable-nls --with-dwarf2 : (reconfigured) ../configure --prefix=/usr/local/avr --target=avr --enable-languages=c --disable-nls --with-dwarf2
Thread model: single
gcc version 4.0.2
/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld -m avr2 -o app.elf crts8515.o -L/usr/local/avr/lib/gcc/avr/4.0.2 -L/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/lib -Map app.map err.o intr.o ll.o print.o putchar.o quad.o tl.o uart.o wdog.o mmap.o tmr.o app.o main.o -lgcc -lc -lgcc /usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o: No such file: No such file or directory
make: *** [app.elf] Error 1


Is there a problem that I configured it several times? When you look, in the first configuration I accidentally wrote --enable-language=c instead --enable-languages=c.

Another issue I recognized, the ld call is done with the -m avr2 option. The crts8515.o file is in the /usr/local/avr/lib folder. In that folder there are the folders avr3, avr4, avr5, but no avr2. Does that make any difference?


Sure, it's a .o file, not a .a one.  -L is only useful for any -l
libraries.  The crtXXX.o file is explicitly named to the linker by the
compiler.


Thanks for pointing that out with the -L option. I took it out in the above linker run with the -v option.

Guenter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]