EmbDev.net

Forum: ARM programming with GCC/GNU tools No such file or directory GNU ld version 2.16.1


von Mauricio Fernandez (Guest)


Rate this post
useful
not useful
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

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.