Home arrow Support arrow Forums

Luminary Micro Forums

usfee

Fresh Boarder
Click here to see the profile of this user

2007/02/02 20:34

Porting RealView to GCC

I am tyring to port my entry code into the GCC toolchain as the RealView license turns to a pumpkin on the 7th. This is my first experience with the GCC tools and I have run into an issue with compiling my code. I believe there is an problem with the standard C library during the linking stage??? My output is below, any help would be greatly appreciated.



-------- begin (mode: ROM_RUN) --------
arm-none-eabi-gcc (CodeSourcery Sourcery G++ 2006q3-27) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Linking: main.elf
arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -mthumb-interwork -I. -gdwarf-2 -DROM_
RUN -Dgcc -DGCC_ARMCM3_LM3S102 -D__WinARM__ -D__WINARMSUBMDL_lm3s811__ -O2 -ffu
nction-sections -fdata-sections -Wall -Wcast-align -Wimplicit -Wpointer-arith -
Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=arp.lst -
I./ -Wcast-qual -MD -MP -MF .dep/main.elf.d arp.o iax.o icmp.o enc28j60.o dis
play.o ipmain.o dhcp.o uvision.o md5.o startup_gcc.o --output main.elf -
nostartfiles -Wl,-Map=main.map,--cref,--gc-sections -lc -lm -lc -lgcc -L../..
/ -lluminary -T../lm3s811-ROM.ld
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(makebuf.o): In function `__smake
buf':
makebuf.c:(.text+0x6e): undefined reference to `isatty'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(sbrkr.o): In function `_sbrk_r':

sbrkr.c:(.text+0xe): undefined reference to `_sbrk'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(writer.o): In function `_write_r
':
writer.c:(.text+0x12): undefined reference to `_write'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(closer.o): In function `_close_r
':
closer.c:(.text+0xe): undefined reference to `_close'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(fstatr.o): In function `_fstat_r
':
fstatr.c:(.text+0x10): undefined reference to `_fstat'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(lseekr.o): In function `_lseek_r
':
lseekr.c:(.text+0x12): undefined reference to `_lseek'
c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.1.1/..
/../../../arm-none-eabi/lib/thumb/thumb2libc.a(readr.o): In function `_read_r':

readr.c:(.text+0x12): undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [main.elf] Error 1

login or register to reply

      Topics Author Date
    thread link
Porting RealView to GCC
usfee 2007/02/02 20:34
    thread link
thread linkthread link Re:Porting RealView to GCC
orinem 2007/02/03 01:18
    thread link
thread linkthread linkthread link Re:Porting RealView to GCC
fordp 2007/11/22 17:36
    thread link
thread linkthread linkthread linkthread link Re:Porting RealView to GCC
englere 2007/11/26 15:37