I recently tried rebuilding the realview_pbx_qemu_smp BSP with the latest toolchain. However, it seems like the build is broken.

The compilation breaks when trying to build the sample Hello program. The relevant part of the error given by make is:

Making all in hello
make[6]: Entering directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/testsuites/samples/hello'
arm-rtems4.12-gcc -B../../../../../atsamv/lib/ -specs bsp_specs -qrtems -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -Wl,--gc-sections -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -o hello.exe init.o ../../../../../atsamv/lib/librtemscpu.a(libscore_a-smp.o): In function `_SMP_Handler_initialize':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/smp.c:100:
 undefined reference to `_CPU_SMP_Initialize'
../../../../../atsamv/lib/librtemscpu.a(libscore_a-smp.o): In function 
`_SMP_Start_processors':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/smp.c:50:
 undefined reference to `_CPU_SMP_Start_processor'
../../../../../atsamv/lib/librtemscpu.a(libscore_a-smp.o): In function 
`_SMP_Handler_initialize':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/smp.c:100:
 undefined reference to `_CPU_SMP_Initialize'
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/smp.c:115:
 undefined reference to `_CPU_SMP_Finalize_initialization'
../../../../../atsamv/lib/librtemscpu.a(libscore_a-smp.o): In function 
`_SMP_Send_message':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/smp.c:182:
 undefined reference to `_CPU_SMP_Send_interrupt'
../../../../../atsamv/lib/librtemscpu.a(libscore_a-threadrestart.o): In 
function `_Per_CPU_Send_interrupt':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../cpukit/../../../atsamv/lib/include/rtems/score/percpu.h:628:
 undefined reference to `_CPU_SMP_Send_interrupt'
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../cpukit/../../../atsamv/lib/include/rtems/score/percpu.h:628:
 undefined reference to `_CPU_SMP_Send_interrupt'
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../cpukit/../../../atsamv/lib/include/rtems/score/percpu.h:628:
 undefined reference to `_CPU_SMP_Send_interrupt'
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../cpukit/../../../atsamv/lib/include/rtems/score/percpu.h:628:
 undefined reference to `_CPU_SMP_Send_interrupt'
../../../../../atsamv/lib/librtemscpu.a(libscore_a-threadstartmultitasking.o): 
In function `_Thread_Start_multitasking':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/cpukit/score/../../../../../../../src/rtems/c/src/../../cpukit/score/src/threadstartmultitasking.c:44:
 undefined reference to `_CPU_SMP_Prepare_start_multitasking'
../../../../../atsamv/lib/librtemsbsp.a(libbsp_a-cache_manager.o): In function 
`_CPU_cache_invalidate_instruction_range':
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/lib/libbsp/arm/atsam/../../../../../../../../../src/rtems/c/src/lib/libbsp/arm/atsam/../shared/armv7m/include/cache_.h:66:
 undefined reference to `rtems_interrupt_disable'
/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/lib/libbsp/arm/atsam/../../../../../../../../../src/rtems/c/src/lib/libbsp/arm/atsam/../shared/armv7m/include/cache_.h:68:
 undefined reference to `rtems_interrupt_enable'
collect2: error: ld returned 1 exit status
Makefile:626: recipe for target 'hello.exe' failed
make[6]: *** [hello.exe] Error 1
make[6]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/testsuites/samples/hello'
Makefile:584: recipe for target 'all-local' failed
make[5]: *** [all-local] Error 1
make[5]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/testsuites/samples'
Makefile:246: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/testsuites/samples'
Makefile:314: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv/testsuites'
Makefile:425: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c/atsamv'
Makefile:286: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
'/home/thedoctor/Programming/rtems/builds/realview_pbx_a9_qemu_smp/arm-rtems4.12/c'
Makefile:410: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I have tried adding the rtems/score/cpu.h header to the errant .c file, but that doesn't help. Any ideas on what is causing this issue and how I can fix it?

--
Thanking You,
Darshit Shah

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to