leon1 Re: undefined reference to `_CPU_Context_restore_fp'

Joel Sherrill joel.sherrill at OARcorp.com
Thu Nov 15 15:56:28 UTC 2001


What version of RTEMS is this with?  Is it a standard OAR distribution
or Jiri Gaisler's 4.5.0+?  This sounds like a simple mistake in
thread.inl where restart is not honoring soft float. We just need to
know the version.

--joel

Matthias Dyer wrote:
> 
> 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

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel 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