5/rtems-arm realview_pbx_a9_qemu build error

Kent Dorfman kent.dorfman766 at gmail.com
Thu Sep 19 16:53:53 UTC 2019


Did this a few weeks ago and it seemed to work, but now getting an
undefined symbol when trying to compile the testsuite as follows:

/storage/work/rtems/configure \
--prefix=/storage/work/bsp-host \
--target=arm-rtems5 \
--enable-rtemsbsp=realview_pbx_a9_qemu \
--enable-tests \
--enable-posix \
--enable-cxx \
--enable-network \
--enable-smp

make bombs out!

gmake[4]: Entering directory
'/storage/work/arm-realview-rtems/arm-rtems5/c/realview_pbx_a9_qemu/testsuites'
Making all-am in samples
gmake[5]: Entering directory
'/storage/work/arm-realview-rtems/arm-rtems5/c/realview_pbx_a9_qemu/testsuites/samples'
arm-rtems5-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
-mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections -Wall
-Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs
-B./../../lib/libbsp/arm/realview-pbx-a9
-B/storage/work/rtems/bsps/arm/realview-pbx-a9/start -specs bsp_specs
-qrtems -L./../../cpukit -L/storage/work/rtems/bsps/arm/shared/start
-Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar -Wl,--gc-sections
-o base_sp.exe base_sp/base_sp-init.o base_sp/base_sp-apptask.o
./../../lib/libbsp/arm/realview-pbx-a9/librtemsbsp.a
./../../cpukit/librtemscpu.a ./../../cpukit/librtemstest.a
/storage/work/bsp-host/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
base_sp/base_sp-init.o: in function `_Thread_Get_executing':
/storage/work/rtems/cpukit/include/rtems/score/percpu.h:873: undefined
reference to `arm_interrupt_disable'
/storage/work/bsp-host/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/storage/work/rtems/cpukit/include/rtems/score/percpu.h:879: undefined
reference to `arm_interrupt_enable'
/storage/work/bsp-host/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
base_sp/base_sp-init.o: in function `_Thread_Dispatch_is_enabled':
/storage/work/rtems/cpukit/include/rtems/score/threaddispatch.h:62:
undefined reference to `arm_interrupt_disable'
/storage/work/bsp-host/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/storage/work/rtems/cpukit/include/rtems/score/threaddispatch.h:68:
undefined reference to `arm_interrupt_enable'
/storage/work/bsp-host/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
base_sp/base_sp-apptask.o: in function `_Thread_Dispatch_is_enabled':
/storage/work/rtems/cpukit/include/rtems/score/threaddispatch.h:62:
undefined reference to `arm_interrupt_disable'
.
.
.

seems that cpu.h is the only place where arm_interrupt_disable is
defined but for some reason it's not being included in the
./arm-rtems5/c/realview_pbx_a9_qemu/cpukit/librtemscpu.a library, so
rtems will not build the tests correctly.

The git log doesn't show any obvious recent changes that I'd suspect
break it...what gives?



More information about the users mailing list