[coldfire-gnu-discuss] GNU link error with code sourcery

vika vika vika238 at yahoo.com
Mon Jan 22 20:03:08 UTC 2007


I am sorry it was a typing mistake  It should be m68k-elf-gcc
  My problem is with m68k-elf-gcc only
  Hi ,
  I have done fo;owing steps to install codesourcery elf version 
  1) Installed in D:\CS 
  2) Path for D:\CS\bin got set automaticaly 
  3) My target processor is coldfire 5275
  Tried to compile some source code with following options but got these linking errors
   
   
  CF2_CC := m68k-elf-gcc -m5200 -gstabs -I$(All my source code include path) 
  $(All OBJS): %.o: ./path/%.c
  $(CF2_CC) -c $(my header inclede paths) -Wa,-adhls=$*.ls -o $@ $<
   
  gnutest.obj: $(All OBJS) linkfile.ld 
  $(CF2_CC) -m5200 -Tlinkfile.ld -nostartfiles -o $@ $(All OBJS) 
   
   
   
  makebuf.c:(.text+0xba): undefined reference to `isatty'
  d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(sbrkr.o): In function `_sbrk_r':
  sbrkr.c:(.text+0x10): undefined reference to `sbrk'
  d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(writer.o): In function `_write_r
  ':
  writer.c:(.text+0x18): undefined reference to `write'
  d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(fstatr.o): In function `_fstat_r
  ':
  fstatr.c:(.text+0x14): undefined reference to `fstat'
  d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(lseekr.o): In function `_lseek_r
  ':
  lseekr.c:(.text+0x18): undefined reference to `lseek'
  d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(readr.o): In function `_read_r':
  readr.c:(.text+0x18): undefined reference to `read'
  collect2: ld returned 1 exit status
  cs-make: *** [gnutest.obj] Error 1
  Please help me 
  Regards,
  Vika 


   
  
Carlos O'Donell <carlos at codesourcery.com> wrote:
  On Mon, Jan 22, 2007 at 08:27:07AM -0800, vika vika wrote:
> CF2_CC := m68k-coff-gcc -m5200 -gstabs -I$(All my source code include
> path)

CodeSourcery does not provide "m68k-coff-gcc", if you would would like a
Coldfire COFF target please contact sales at codesourcery.com.

CodeSourcery provides Coldfire ELF, Coldfire GNU/Linux, and Coldfire
uCLibc targets.

The missing symbols you are seeing are normally provided by the C
library.

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716


 
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20070122/f791a394/attachment.html>


More information about the coldfire-gnu-discuss mailing list