[Fwd: BARE BSP]

russ russ at powerstech.com
Thu May 18 23:58:28 UTC 2000


Hi,
 
I'm trying to use the bare bsp for m68k. I used the do-bare-bsp-build script and everthing built and
installed. Then I used a makefile from one of the sample programs to build my app. It compiles and
finds the libraries it's looking for but during linking I get these errors.
 
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(stdio.o): In function `__sread':
stdio.c:40: undefined reference to `_read_r'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(stdio.o): In function `__swrite':
stdio.c:60: undefined reference to `_lseek_r'
stdio.c:62: undefined reference to `_write_r'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(stdio.o): In function `__sseek':
stdio.c:74: undefined reference to `_lseek_r'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(stdio.o): In function `__sclose':
stdio.c:91: undefined reference to `_close_r'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(mallocr.o): In function `_malloc_r':
mallocr.c:51: undefined reference to `malloc'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(mallocr.o): In function `_free_r':
mallocr.c:59: undefined reference to `free'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(mallocr.o): In function `_realloc_r':
mallocr.c:68: undefined reference to `realloc'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(makebuf.o): In function `__smakebuf':
makebuf.c:50: undefined reference to `_fstat_r'
/linux2/rtems/m68k-rtems/lib/msoft-float/libc.a(isatty.o): In function `isatty':
isatty.c:12: undefined reference to `fstat'
make: *** [o-bare-m68000/app.exe] Error 1
 
I assume there is a library not being linked? How do I know which libraries to link in?
 
RTEMS-4.0.0
binutils-2.9.1
egcs-1.1.2
newlib-1.8.0

Thanks for the help.
russ



More information about the users mailing list