On Thu, Jun 05, 2008 at 11:19:30AM +0200, Robert Brusa wrote:
Hi
I am using the arm-elf gnutools that come with ecos. To be precise: I
would like to use it, because there is an error message I were I am
stuck.
I am running a Makefile from within Eclipse (3.3.2), the arm-elf-gcc is
3.2.1. The program I want to compile is a simple Hello World exercise.
It
is - together with its Makefile - downloaded from ATMELs web site. I had
this same example on a windows XP PC using yagartos toolchain. It
worked.
Now on my debian etch PC I get the following error message:
arm-elf-gcc -g -nostartfiles -Wl,--gc-sections
-T"../at91lib/boards/at91sam7x-ek/at91sam7x256/flash.lds" -o
bin/My5-at91sam7x256-flash.elf obj/board_cstartup.o obj/main.o
obj/stdio.o obj/dbgu.o obj/pio.o obj/board_memories.o
obj/board_lowlevel.o
Run the command with -v. You will then get to see all the flags passed
to the linker.
/home/rwb/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld:
cannot find -lg
It is probably looking for a library called libg.a which does not
exist. You don't appear to be passing -lg, but maybe it is in your
linker script, flash.lds?
Andrew