Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux [RSS Feed]

#1 Nov. 23, 2005 06:04:22

Uwe F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Günter Dannoritzer schrieb:on my Linux computer. Everything with the installation seemed to workfine and I can compile my project fine as well, however, I am gettingthe following linker error:avr-gcc -Wl,-Map,camera.map -L/usr/local/avr/lib -o app.elf err.ointr.o ll.o print.o putchar.o quad.o tl.o uart.o wdog.o mmap.o tmr.oapp.o main.o/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o:No such file: No such file or directorymake: *** Error 1The crts8515.o file I found in folder /usr/local/avr/lib. So I addedthe -L /usr/local/avr/lib option to the linker call, but that did notmake any difference.What seeams strange to me is, that you get the error-message from ld andnot from avr-ld.Perhaps you get an idea what you have been doing wrong, if you look atmy howto:http://www.kieltech.de/uweswiki/Compiling_5fAVR_2dGCCRegards:

Uwe




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Nov. 23, 2005 16:31:30

Günter D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Joerg Wunsch wrote:Günter Dannoritzer <> wrote:/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o: No such
file: No such file or directoryPlease 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.oputchar.o quad.o tl.o uart.o wdog.o mmap.o tmr.o app.o main.oUsing built-in specs.
Target: avrConfigured 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-dwarf2Thread model: single
gcc version 4.0.2/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld -m avr2 -oapp.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.maperr.o intr.o ll.o print.o putchar.o quad.o tl.o uart.o wdog.o mmap.otmr.o app.o main.o -lgcc -lc -lgcc/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o: Nosuch file: No such file or directorymake: *** Error 1Is there a problem that I configured it several times? When you look, inthe 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 folderthere are the folders avr3, avr4, avr5, but no avr2. Does that make anydifference?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 theabove linker run with the -v option.Guenter


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Nov. 23, 2005 16:33:10

Günter D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Uwe Fechner wrote:Günter Dannoritzer schrieb:What seeams strange to me is, that you get the error-message from ld andnot from avr-ld.Perhaps you get an idea what you have been doing wrong, if you look atmy howto:http://www.kieltech.de/uweswiki/Compiling_5fAVR_2dGCCThanks for the link. One difference I noticed in the configuration asshown on the avr libc page and your explanation is the use of the--program-prefix option when building binutils and gcc.I did not use that option when building my tools, that my explain why Ihave a ld call and not a avr-ld call.I will clean my installation and do it again according yourexplanations. Maybe that makes a difference.Guenter


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#4 Nov. 23, 2005 17:07:47

Eric W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Günter Dannoritzer wrote:Joerg Wunsch wrote:Günter Dannoritzer <> wrote:/usr/local/avr/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: crts8515.o:No such file: No such file or directoryPlease 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.oputchar.o quad.o tl.o uart.o wdog.o mmap.o tmr.o app.o main.oYou need to use the -mmcu= option for the link stage too, and specifyyour microcontroller type.Eric Weddington


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#5 Nov. 28, 2005 03:12:55

Günter D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Thanks everybody for the help.I deleted my installation and the content of all obj-avr folders andreinstalled everything based on Uwe's wiki page.It works now.Not sure whether it was the additional switch --program-prefix that wasnot shown in the installation instructions on the avr libc page or mynumerous installations without cleaning up properly in between.Cheers,

Guenter



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#6 Nov. 28, 2005 23:55:15

Günter D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Joerg Wunsch wrote:Günter Dannoritzer <> wrote:Not sure whether it was the additional switch --program-prefix that
was not shown in the installation instructions ...That option is normally not needed. It defaults to ${prefix}/bin,
for whatever prefix you gave with --prefix.Well, I cleaned up everything again and installed again from scratchfollowing the instructions on the avr libc page and I ran in the sameerror message from the linker.Cleaning up again and following Uwe's wiki instructions worked again. Idid though vary them this time, just added the --width-dwarf2 option tothe gcc configuration.I should have also tried without the -program-prefix option. Anyhow,another difference I noticed is that for the libc configuration no--prefix is given on the avr libc page. Is that a possible difference?Cheers,

Guenter





_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#7 Nov. 29, 2005 02:39:48

Günter D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Eric Weddington wrote:You need to use the -mmcu= option for the link stage too, and specifyyour microcontroller type.I actually used that Makefile with WinAVR before and it always worked. Itried it with the broken installation and it did not make any difference.Now I am always a bit confused with the linker options. Do I need to addthat to the -Wl switch or just pass it to avr-gcc?So is this the right way:

avr-gcc -mmcu=at90s8515 -Wl...

or does it need to be:

avr-gcc -Wl,mmcu=at90s8515

Thanks for the help again.

Guenter


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#8 Nov. 29, 2005 16:33:32

Eric W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Günter Dannoritzer wrote:Eric Weddington wrote:You need to use the -mmcu= option for the link stage too, and specifyyour microcontroller type.I actually used that Makefile with WinAVR before and it always worked. Itried it with the broken installation and it did not make any difference.Hmpf.Now I am always a bit confused with the linker options. Do I need to addthat to the -Wl switch or just pass it to avr-gcc?So is this the right way:

avr-gcc -mmcu=at90s8515 -Wl...Yes, this is the correct way. And you can see this in the WinAVRMakefile Template too.--
Eric Weddington


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support