Can't get m68k-elf-gcc to link

janders2 at digipen.edu janders2 at digipen.edu
Wed Nov 28 22:49:16 UTC 2007


Hello,
                I am using the g++ lite for coldfire m68k and I can?t  
seem to get the files to link when compiling. It will compile fine,  
but if I try and Link or Compile/Link I get this error log:

C:\Documents and Settings\BluePolarBear\Desktop>m68k-elf-gcc Hello.c
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/bin/ld.exe: warning: cannot find entry symbol _start; defau
ing to 80000080
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-makebuf.o): In function `__smakebuf':
makebuf.c:(.text+0xde): undefined reference to `isatty'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x10): undefined reference to `sbrk'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text+0x18): undefined reference to `write'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text+0x10): undefined reference to `close'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text+0x14): undefined reference to `fstat'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text+0x18): undefined reference to `lseek'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/m68k-elf/4.2.1/
/../../../m68k-elf/lib\libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text+0x18): undefined reference to `read'
collect2: ld returned 1 exit status

Any info as to why this is happening would be a big help.

Jeremy Anderson





More information about the coldfire-gnu-discuss mailing list