Fwd: 5/rtems-arm realview_pbx_a9_qemu build error

Kent Dorfman kent.dorfman766 at gmail.com
Sat Sep 21 14:38:00 UTC 2019


---------- Forwarded message ----------
From: Kent Dorfman <kent.dorfman766 at gmail.com>
Date: Sat, 21 Sep 2019 00:18:27 -0400
Subject: Re: 5/rtems-arm realview_pbx_a9_qemu build error
To: Chris Johns <chrisj at rtems.org>

ubuntu 16.x LTS

arm-rtems5-gcc 7.4.1

all tools and rtems were remote/master pulls from the git repos.

by building for a different bsp (xilinx_zynq_a9) first, I then built
the realview board and it succeeded...thus telling me that the
realview setup is missing a required component in the build, that it
was only able to find AFTER creating for the xilinx board.



On 9/20/19, Chris Johns <chrisj at rtems.org> wrote:
> On 20/9/19 2:53 am, Kent Dorfman wrote:
>> 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?
>
> What host?
>
> What is the version of the tools (arm-rtems5-gcc -v)?
>
> Chrs
>



More information about the users mailing list