EmbDev.net

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


Author: Mauricio Fernandez (Guest)
Posted on:

Rate this post
0 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

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.