linking error in winarm but not Cygwin

Guest #1172410
Rate this post
• ▲ useful
▼ not useful
I have created a project for the STR9 and olimex development board
(STR-E912). I created a make file and test in cygwin and the project
compiles and links properly. when I use the same project in WINARM and
use the same make file I get errors at linking the files. Here is the
output from eclipse:

make -k all
".assembling"
arm-elf-as -m armv4t -gdwarf2 -o crt.o crt.s > crt.lst
".compiling"
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
main.c 91x_lib.h 91x_map.h 91x_conf.h 91x_type.h 91x_gpio.h 91x_scu.h
91x_uart.h -o main.o
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
91x_it.c 91x_it.h 91x_lib.h 91x_map.h 91x_conf.h 91x_type.h 91x_gpio.h
91x_scu.h 91x_uart.h -o 91x_it.o
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
91x_lib.c 91x_map.h 91x_conf.h 91x_type.h -o 91x_lib.o
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
91x_gpio.c 91x_gpio.h 91x_map.h 91x_conf.h 91x_type.h 91x_scu.h -o
91x_gpio.o
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
91x_uart.c 91x_uart.h 91x_map.h 91x_conf.h 91x_type.h 91x_scu.h -o
91x_uart.o
arm-elf-gcc -mcpu=arm9tdmi -c -gdwarf-2 -MD -Wall -O0 -mapcs-frame
91x_scu.c 91x_scu.h 91x_map.h 91x_conf.h 91x_type.h -o 91x_scu.o
"..linking"
arm-elf-gcc -T91x.ld --cref -t -static -lc -lgcc
-Wl,-Map=olidemo_uart.map -lm -nostartfiles -o olidemo_uart.out crt.o
main.o 91x_it.o 91x_lib.o 91x_gpio.o 91x_uart.o 91x_scu.o
main.o: file not recognized: File format not recognized
/cygdrive/c/gccfd/gnuarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-el 
f/bin/ld:
mode armelf
crt.o
collect2: ld returned 1 exit status
"...copying"
arm-elf-objcopy -O binary olidemo_uart.out olidemo_uart.bin
arm-elf-objcopy: 'olidemo_uart.out': No such file
arm-elf-objdump -x --syms olidemo_uart.out > olidemo_uart.dmp
arm-elf-objdump: 'olidemo_uart.out': No such file
make:  Error code 129, while making 'olidemo_uart.out' (Ignored)
make:  Error code 129, while making 'olidemo_uart_flash' (Ignored)

I am not sure why the output files are not being recognized? Any help or
advise would be greatly appreciated...

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.