undefined reference to `rtc_initialize' when build EPICS with RTEMS4.9
Yuke Tian
ytian at bnl.gov
Fri Oct 3 21:33:03 UTC 2008
Hi,
I build EPICS 3.14.10 with RTEMS 4.9 for mvme2100 without errors. But
when I build on mpc8313erdb board, towards the end of the EPICS make, I
got the following errors:
/opt/rtems-4.9/bin/powerpc-rtems4.9-g++
-B/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/ -specs bsp_specs
-qrtems -o rtemsTestHarness -static
-L/home/ytian/EPICS/base-3.14.10-RC1/lib/RTEMS-mpc8313erdb
-mcpu=603e -mstrict-align -fno-strict-aliasing -meabi -msdata
-fno-common -DMPC8313ERDB -DMPC8349 -u Init
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/no-dpmem.rel
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/no-mp.rel
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/no-part.rel
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/no-signal.rel
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/no-rtmon.rel
rtemsTestHarness.o epicsCalcTest.o epicsAlgorithmTest.o epicsMathTest.o
epicsStdioTest.o epicsStringTest.o epicsTimeTest.o epicsThreadTest.o
epicsThreadPriorityTest.o epicsThreadPrivateTest.o epicsExitTest.o
epicsTimerTest.o ringPointerTest.o epicsEventTest.o epicsMutexTest.o
epicsExceptionTest.o epicsMessageQueueTest.o macEnvExpandTest.o
macLibTest.o taskwdTest.o blockingSockTest.o epicsRunLibComTests.o
epicsThreadPerform.o epicsMaxThreads.o buckTest.o -lCom -lm
-lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/librtemsbsp.a(bspstart.o):
In function `_Thread_Idle_body':
/home/ytian/RTEMS/build/powerpc-rtems4.9/c/mpc8313erdb/lib/libbsp/powerpc/gen83xx/../../../../../../../../rtems-4.9.0/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c:192:
multiple definition of `_Thread_Idle_body'
/opt/rtems-4.9/powerpc-rtems4.9/mpc8313erdb/lib/librtemscpu.a(libscore_a-threadidlebody.o):/home/ytian/RTEMS/build/powerpc-rtems4.9/c/mpc8313erdb/cpukit/score/../../../../../../rtems-4.9.0/c/src/../../cpukit/score/src/threadidlebody.c:51:
first defined here
/home/ytian/EPICS/base-3.14.10-RC1/lib/RTEMS-mpc8313erdb/librtemsCom.a(rtems_config.o):(.data+0x4c):
undefined reference to `rtc_initialize'
collect2: ld returned 1 exit status
make[3]: *** [rtemsTestHarness] Error 1
make[3]: Leaving directory
`/home/ytian/EPICS/base-3.14.10-RC1/src/libCom/test/O.RTEMS-mpc8313erdb'
make[2]: *** [install.RTEMS-mpc8313erdb] Error 2
make[2]: Leaving directory
`/home/ytian/EPICS/base-3.14.10-RC1/src/libCom/test'
make[1]: *** [libCom/test.install] Error 2
make[1]: Leaving directory `/home/ytian/EPICS/base-3.14.10-RC1/src'
make: *** [src.install] Error 2
It seems that the rtc_initiliaze is not build into librtemCom.a. Is this
code in the /c/src/lib/libbsp/shard/tod.c ? Did I forget to turn some
switch on to enable the rtc when I build RTEMS ?
Thanks,
Yuke
More information about the users
mailing list