undefined reference to _fini _init

chenyulongrtems chenyulongrtems at 163.com
Wed Feb 4 07:30:11 UTC 2009


Hi all,
   I attempted to compile the arm-rtems bsp , using the configure
 script, using the command:
 
./rtems-4.6.99.3/configure --target=arm-rtems --disable-posix --disable-networking --disable-cxx --enable-rtemsbsp=csb337 --prefix=/opt/rtems-xjs/tools/rtems-install2

when 'make all install' it shows:
 
gmake[4]: Entering directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337/testsuites/samples'
Making all in hello
gmake[5]: Entering directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337/testsuites/samples/hello'
arm-rtems-gcc -B../../../../../csb337/lib/ -specs bsp_specs -qrtems -mcpu=arm920 -mstructure-size-boundary=8 -O2 -g       -o hello.exe init.o ../../../../../csb337/lib/no-dpmem.rel ../../../../../csb337/lib/no-event.rel ../../../../../csb337/lib/no-msg.rel ../../../../../csb337/lib/no-mp.rel ../../../../../csb337/lib/no-part.rel ../../../../../csb337/lib/no-signal.rel ../../../../../csb337/lib/no-timer.rel ../../../../../csb337/lib/no-rtmon.rel 
./../../../../csb337/lib/librtemsbsp.a(startup.rel): In function `boot_card':
./../../../../../../../rtems-4.6.99.3/c/src/lib/libbsp/arm/csb337/../../shared/bootcard.c:138: undefined reference to `_fini'
./../../../../csb337/lib/librtemscpu.a(libscore_a-threadhandler.o): In function `_Thread_Handler':
./../../../../../rtems-4.6.99.3/c/src/../../cpukit/score/src/threadhandler.c:117: undefined reference to `_init'
collect2: ld returned 1 exit status
gmake[5]: *** [hello.exe] Error 1
gmake[5]: Leaving directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337/testsuites/samples/hello'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337/testsuites/samples'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337/testsuites'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c/csb337'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/rtems-xjs/tools/rtems-build2/arm-rtems/c'
make: *** [all-recursive] Error 1

does anyone have some idea for that?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090204/7ea0e3d1/attachment.html>


More information about the users mailing list