[ECOS] Problem with loader call using arm-elf-gcc

Robert Brusa bob.brusa@gmail.com
Thu Jun 5 13:03:00 GMT 2008


On Thu, 05 Jun 2008 11:27:31 +0200, Andrew Lunn <andrew@lunn.ch> wrote:

> 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

Hi Andrew and all out there
Thanks, the -v option helped several steps further:
a) The loader has indeed -lgcc -lc -lc options set (-lgcc even twice?) -  
and they are needed, the yagarto-version uses them as well.
b) The gnutool from ecos do not include libg.a nor libc.a, but libgcc.a is  
there (many of them!)
c) The arm-elf-gcc provided by ecos is built using a rather old gcc  
version 3.2.1 (yagarto uses 4.2.2)

I think I need a more recent version of the arm-elf-gnutools - including  
libraries. Does anyone know were one can get it? Linux-version!
Thanks and best regards
Robert


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list