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 02:55:46

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


Hi,

I installed the binutils, gcc, and avr libc according to this explanationhttp://www.nongnu.org/avr-libc/user-manual/install_tools.htmlon 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: Nosuch file: No such file or directorymake: *** Error 1The crts8515.o file I found in folder /usr/local/avr/lib. So I added the-L /usr/local/avr/lib option to the linker call, but that did not makeany difference.I installed the tools in that order:

- binutils 2.16
- gcc 4.0.2
- avr libc 1.4After having the first trouble I did install everything again, hoping Idid something wrong the first time and a reinstall would solve it.Without success.Here is my avr-gcc -v output:

> avr-gcc -v
Using 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

Does somebody has an idea what I could have done wrong?

Thanks for any help.

Guenter



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

Offline

#2 Nov. 23, 2005 06:05:54

Joerg 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:

> /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.

> The crts8515.o file I found in folder /usr/local/avr/lib. So I added
> the -L /usr/local/avr/lib option to the linker call, but that did
> not 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.

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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

Offline

#3 Nov. 23, 2005 23:04:22

Joerg 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


Uwe Fechner <> wrote:

> What seeams strange to me is, that you get the error-message from ld
> and not from avr-ld.

Internally, the program is named "ld":

% ls /usr/local/avr/bin/
/usr/local/avr/bin:
ar* c++* gcc* nm* ranlib*
as* g++* ld* objdump* strip*

The name avr-ld is only a link to that tool:

% ls -li /usr/local/bin/avr-ld /usr/local/avr/bin/ld
217778 -r-xr-xr-x 2 root wheel 556228 Nov 4 21:10 /usr/local/avr/bin/ld*
217778 -r-xr-xr-x 2 root wheel 556228 Nov 4 21:10 /usr/local/bin/avr-ld*

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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

Offline

#4 Nov. 28, 2005 06:15:53

Joerg 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:

> 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.

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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

Offline

#5 Nov. 29, 2005 05:56:35

Joerg 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:

> 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?

Yes, you need to run it with a consistent --prefix for the entire
toolchain (or no --prefix at all, then it defaults to /usr/local).
For avr-libc < 1.4, this needs to be given to the ./doconf wrapper,
while ave-libc 1.4 (and above) now uses standard ./configure syntax as
any other tools.

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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

Offline

#6 Nov. 29, 2005 11:32:21

Lars N.
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 <> :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.If --program-prefix has the same meaning as in the usual autoconf
configure scripts, program-prefix adds a prefix to each binary name.


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

Offline

#7 Nov. 30, 2005 16:33:44

Joerg 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


Lars Noschinski <> wrote:

>>That option is normally not needed. It defaults to ${prefix}/bin,
>>for whatever prefix you gave with --prefix.

> If --program-prefix has the same meaning as in the usual autoconf
> configure scripts, program-prefix adds a prefix to each binary name.

Ah yes, I confused that with --exec-prefix.

Anyway, --program-prefix isn't needed nevertheless, as GCC and
binutils automatically default to "avr-" for that when they are
configured as a cross-development suite for --target=avr.

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
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