undefined reference to _fini _init

Joel Sherrill joel.sherrill at OARcorp.com
Wed Feb 4 14:18:13 UTC 2009


You are reporting against a pre-4.7 snapshot with what appears to be a
locally
built toolset.

Please use either CVS with prebuilt 4.10 tools or 4.9.1 and prebuilt 4.9
tools.

This is a very old and unsupported snapshot RTEMS version.

--joel


chenyulongrtems wrote:
> 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?
>
>
>
> ------------------------------------------------------------------------
> 网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list