No such file or directory GNU ld version 2.16.1

Guest #1174443
Hi everyone, i have been problems trying to compile a simple example. i
configured eclipse using the yagarto page's tutorial, at the beginning
everything worked very good but from 1 week the console shows the next
error:

**** Build of configuration Default for project demo_sam7ex256 ****

make all
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
...linking
  arm-elf-ld -v -omain.out -Tdemo_sam7ex256.cmd -Map main.map --cref
-omain.out crt.o   main.o   lowlevelinit.o   usart0_setup.o
usart0_isr.o   isrsupport.o libgcc.a
/cygdrive/c/gccfd/gnuarm/bin/ARCB2B~1: crt.o: No such file: No such file
or directory
GNU ld version 2.16.1

** error 1 ** deleting main.out
Moderator #1174444
Mauricio Fernandez wrote:
> Hi everyone, i have been problems trying to compile a simple example. i
> configured eclipse using the yagarto page's tutorial, at the beginning
> everything worked very good but from 1 week the console shows the next
> error:
>
> **** Build of configuration Default for project demo_sam7ex256 ****
>
> make all
> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland

You use Borland's make? I suggest to use a GNU make.

> ...linking
>   arm-elf-ld -v -omain.out -Tdemo_sam7ex256.cmd -Map main.map --cref
> -omain.out crt.o   main.o   lowlevelinit.o   usart0_setup.o
> usart0_isr.o   isrsupport.o libgcc.a

If you do not need to, try to avoid linking directly with arm-elf-ld.
Use the frontend (arm-elf-gcc) instead.
Are you sure you have run this build with successfully before?

> /cygdrive/c/gccfd/gnuarm/bin/ARCB2B~1: crt.o: No such file: No such file
> or directory

So you are using gnuarm (package from gnuarm.org)? Since you work on a
Win32-box try to use another package with newer versions of the tools
(i.e. Yagarto, Codesourcery G++ (lite), DevkitARM...).

Did you verify that crt.o is available (compiled from crt.c?). Send the
complete output of the build-process, not just the few lines.

> GNU ld version 2.16.1
>
> ** error 1 ** deleting main.out

Rater old. Binutils 2.18 (which include the linker) are the latest
stable release now.

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.