Build error on the latest repo

Hesham Moustafa heshamelmatary at gmail.com
Sat Jul 6 15:46:13 UTC 2013


I have some errors related too the same BSP when --enable-smp too. But it's
only for some Atomic/sptests test cases, other sample and libtests   built
successfully. Here is the error :

/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:40:
undefined reference to `_CPU_Atomic_Load_acq_int'
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:41:
undefined reference to `_CPU_Atomic_Load_int'
tasks.o: In function `_Atomic_Load_long':
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:50:
undefined reference to `_CPU_Atomic_Load_acq_long'
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:51:
undefined reference to `_CPU_Atomic_Load_long'
tasks.o: In function `_Atomic_Load_ptr':
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:60:
undefined reference to `_CPU_Atomic_Load_acq_ptr'
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:61:
undefined reference to `_CPU_Atomic_Load_ptr'
tasks.o: In function `_Atomic_Load_32':
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:70:
undefined reference to `_CPU_Atomic_Load_acq_32'
/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01/../../../../../realview_pbx_a9_qemu/lib/include/rtems/score/atomic.inl:71:
undefined reference to `_CPU_Atomic_Load_32'
collect2: error: ld returned 1 exit status
gmake[6]: *** [spatomic01.exe] Error 1
gmake[6]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c'


On Sat, Jul 6, 2013 at 5:25 PM, Deng Hengyi <wei.a.yang at gmail.com> wrote:

> Hi all,
>
> When i used the latest repo from git there is a error in the build for
> realview_pbx_a9_qemu_smp.
> My configure command is :
>  ../../rtems-git/configure --target=arm-rtems4.11
> --prefix=/home/weiy/project/gsoc/gsoc2013/rtems-install --enable-smp
> --enable-tests=yes --enable-rtemsbsp=realview_pbx_a9_qemu_smp
> toolchains are built from RSB (newlib is 15-June-2013) with the last
> commit is Jun 6.
>
> By the way whether there is a command to build only smptests test case?
>
> the error is like hollow:
>
> arm-rtems4.11-gcc -B../../../../../realview_pbx_a9_qemu_smp/lib/ -specs
> bsp_specs -qrtems -DHAVE_CONFIG_H -I.
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01
> -I..
>  -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/../support/include
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/termios04
>   -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0
> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo
> -c -o init.o
> ../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01/init.c
> mv -f .deps/init.Tpo .deps/init.Po
> arm-rtems4.11-gcc -B../../../../../realview_pbx_a9_qemu_smp/lib/ -specs
> bsp_specs -qrtems -DHAVE_CONFIG_H -I.
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01
> -I..
>  -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/../support/include
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/termios04
>   -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0
> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT serial_mouse_config.o -MD -MP -MF
> .deps/serial_mouse_config.Tpo -c -o serial_mouse_config.o
> ../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01/serial_mouse_config.c
> mv -f .deps/serial_mouse_config.Tpo .deps/serial_mouse_config.Po
> arm-rtems4.11-gcc -B../../../../../realview_pbx_a9_qemu_smp/lib/ -specs
> bsp_specs -qrtems -DHAVE_CONFIG_H -I.
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01
> -I..
>  -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/../support/include
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/termios04
>   -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0
> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT msmouse.o -MD -MP -MF
> .deps/msmouse.Tpo -c -o msmouse.o
> ../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01/msmouse.c
> mv -f .deps/msmouse.Tpo .deps/msmouse.Po
> arm-rtems4.11-gcc -B../../../../../realview_pbx_a9_qemu_smp/lib/ -specs
> bsp_specs -qrtems -DHAVE_CONFIG_H -I.
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01
> -I..
>  -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/../support/include
> -I../../../../../../../../rtems-git/c/src/../../testsuites/libtests/termios04
>   -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0
> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT termios_testdriver_intr.o -MD -MP
> -MF .deps/termios_testdriver_intr.Tpo -c -o termios_testdriver_intr.o `test
> -f '../termios04/termios_testdriver_intr.c' || echo
> '../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01/'`../termios04/termios_testdriver_intr.c
> mv -f .deps/termios_testdriver_intr.Tpo .deps/termios_testdriver_intr.Po
> arm-rtems4.11-gcc -B../../../../../realview_pbx_a9_qemu_smp/lib/ -specs
> bsp_specs -qrtems -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
> -mtune=cortex-a9 -O0 -g -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
>  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9   -o
> mouse01.exe init.o serial_mouse_config.o msmouse.o termios_testdriver_intr.o
> ../../../../../realview_pbx_a9_qemu_smp/lib/librtemsbsp.a(libbsp_a-console-config.o):
> In function `bsp_get_serial_mouse_device':
> /home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/lib/libbsp/arm/realview-pbx-a9/../../../../../../../../../rtems-git/c/src/lib/libbsp/arm/realview-pbx-a9/console/console-config.c:104:
> multiple definition of `bsp_get_serial_mouse_device'
> serial_mouse_config.o:/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests/mouse01/../../../../../../../../rtems-git/c/src/../../testsuites/libtests/mouse01/serial_mouse_config.c:28:
> first defined here
> collect2: error: ld returned 1 exit status
> make[6]: *** [mouse01.exe] Error 1
> make[6]: Leaving directory
> `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests/mouse01'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests'
> make[4]: *** [all] Error 2
> make[4]: Leaving directory
> `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp'
> make[1]: *** [all-recursive] Error 1
>
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130706/f9f23d9a/attachment-0001.html>


More information about the devel mailing list