Joerg Wunsch wrote:
Günter Dannoritzer <[EMAIL PROTECTED]> 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
_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list