This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Beginners troubles
- From: Robert Gosztyla <robert dot gosztyla at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 6 Aug 2010 13:01:23 +0200
- Subject: [ECOS] Beginners troubles
Hi
I'm starting with ecos and LPC2124 ARM7. I've downloaded ecos as
stated on the website for cygwin, choose template "Keil eveluation
board MCB2100" as compatible with my set, package default (but checked
also kernel and minimal), have my own program, trying to build and got
errors:
'rm-elf-gcc: unrecognized option `-nostdlib
/cygdrive/d/apps/gnuarm/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/crt0.o(.text+0x0):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
multiple definition of `start'
first_install/lib/vectors.o(.text+0xc4):/home/xpurogo/ecos/ecos-3.0/packages/hal/arm/arch/v3_0/src/vectors.S:353:
first defined here
/cygdrive/d/apps/gnuarm/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/bin/ld:
address 0xc548 of a.out section .bss is not within region ram
/cygdrive/d/apps/gnuarm/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/bin/ld:
section .bss [00007cb4 -> 0000c547] overlaps section .text [00000040
-> 0000c303]
/cygdrive/d/apps/gnuarm/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/crt0.o(.text+0xf4):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:206:
undefined reference to `__bss_start__'
/cygdrive/d/apps/gnuarm/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/crt0.o(.text+0xf8):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:206:
undefined reference to `__bss_end__'
collect2: ld returned 1 exit status
arm-elf-objcopy: 'a.out': No such file
arm-elf-objdump: 'a.out': No such file
./m: line 4: $'arm-elf-size\r': command not found
./m: line 5: $'\r': command not found
./m: line 6: $'\r': command not found
Using different toolchains from gnuarm i've got few similar errors
from linker. My program i'm trying to build using script:
arm-elf-gcc -g -Os -Ifirst_install/include test1.c -Lfirst_install/lib
-Ttarget.ld -nostdlib
arm-elf-objcopy -O ihex a.out a.hex
arm-elf-objdump -D a.out > a.lst
arm-elf-size
where "first_install" is directory created by ecos config tool,
target.ld linker script is generated as well. Program is very simple.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss