psim fails to link with --enable-smp
Joel Sherrill
joel.sherrill at OARcorp.com
Wed May 14 18:38:21 UTC 2014
Hi
All of the SPARC BSPs are OK with --enable-smp but at least
psim doesn't link when it is enabled. I haven't checked ARM
but I suspect that some default magic needs to be in place
in the Makefile.am's.
powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs
-qrtems -DHAVE_CONFIG_H -I.
-I../../../../../../../rtems/c/src/../../testsuites/samples/hello
-I.. -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g
-fno-keep-inline-functions -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
init.o -MD -MP -MF .deps/init.Tpo -c -o init.o
../../../../../../../rtems/c/src/../../testsuites/samples/hello/init.c
mv -f .deps/init.Tpo .deps/init.Po
powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs
-qrtems -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g
-fno-keep-inline-functions -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
-meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -o hello.exe init.o
../../../../../psim/lib/librtemscpu.a(libscore_a-smp.o): In function
`_SMP_Handler_initialize':
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:86:
undefined reference to `_CPU_SMP_Initialize'
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:86:
undefined reference to `_CPU_SMP_Initialize'
../../../../../psim/lib/librtemscpu.a(libscore_a-smp.o): In function
`_SMP_Start_processors':
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:42:
undefined reference to `_CPU_SMP_Start_processor'
../../../../../psim/lib/librtemscpu.a(libscore_a-smp.o): In function
`_SMP_Handler_initialize':
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:101:
undefined reference to `_CPU_SMP_Finalize_initialization'
../../../../../psim/lib/librtemscpu.a(libscore_a-smp.o): In function
`_SMP_Send_message':
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:155:
undefined reference to `_CPU_SMP_Send_interrupt'
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/smp.c:155:
undefined reference to `_CPU_SMP_Send_interrupt'
../../../../../psim/lib/librtemscpu.a(libscore_a-threadrestart.o): In
function `_Per_CPU_Send_interrupt':
/users/joel/rtems-4.11-work/b-psim/powerpc-rtems4.11/c/psim/cpukit/score/../../cpukit/../../../psim/lib/include/rtems/score/percpu.h:534:
undefined reference to `_CPU_SMP_Send_interrupt'
collect2: error: ld returned 1 exit status
--
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 devel
mailing list