undefined reference to `_CPU_Context_restore_fp'

Matthias Dyer mdyer at ee.ethz.ch
Thu Nov 15 10:12:33 UTC 2001


I'm running rtems on a leon sparc cpu - BSP: leon1 (without fpu). BSP
configuration seems ok (compilation with -msoft-float)

But if I build an application which uses the "rtems_task_restart"
function like sp06 in sptests, i get the following error:

/opt/rtems/bin/sparc-rtems-gcc --pipe -B../../../../../../leon1/lib/
-specs bsp_specs -qrtems -g -Wall -ansi -fasm    -mcpu=cypress
-msoft-float      -L ../../../../../../leon1/lib  -O4  -o
o-optimize/sp06.exe  o-optimize/init.o o-optimize/task1.o
o-optimize/task2.o o-optimize/task3.o
../../../../../../leon1/lib/no-dpmem.rel
../../../../../../leon1/lib/no-event.rel
../../../../../../leon1/lib/no-msg.rel
../../../../../../leon1/lib/no-mp.rel
../../../../../../leon1/lib/no-part.rel
../../../../../../leon1/lib/no-signal.rel
../../../../../../leon1/lib/no-timer.rel
../../../../../../leon1/lib/no-rtmon.rel
../../../../../../leon1/lib/librtemsall.a(threadrestart.o): In function
`_Thread_Restart':
/home/mdyer/dl/rtemsbuild/sparc-rtems/c/leon1/exec/score/src/../../../../../../leon1/lib/include/rtems/score/thread.inl:115:
undefined reference to `_CPU_Context_restore_fp'
collect2: ld returned 1 exit status
make[5]: *** [o-optimize/sp06.exe] Fehler 1

Can anyone help?

--
Matthias Dyer (mdyer at ee.ethz.ch)
Computer Engineering and Networks Laboratory
ETH Zuerich, Switzerland




More information about the users mailing list