<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Hesham,<div><br></div><div>Now i am working on the new atomic implementation, later i will submit the patch and if you have any problem please let me know, Thank you!</div><div><br></div><div>WeiY</div><div>Best Regards<br><div><div>ÔÚ 2013-7-6£¬ÏÂÎç11:46£¬Hesham Moustafa <<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>> Ð´µÀ£º</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">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 :<div><br></div><div>
<div>/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'</div>
<div>/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'</div>
<div>tasks.o: In function `_Atomic_Load_long':</div><div>/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'</div>
<div>/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'</div>
<div>tasks.o: In function `_Atomic_Load_ptr':</div><div>/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'</div>
<div>/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'</div>
<div>tasks.o: In function `_Atomic_Load_32':</div><div>/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'</div>
<div>/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'</div>
<div>collect2: error: ld returned 1 exit status</div><div>gmake[6]: *** [spatomic01.exe] Error 1</div><div>gmake[6]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests/spatomic01'</div>
<div>gmake[5]: *** [all-recursive] Error 1</div><div>gmake[5]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests'</div><div>gmake[4]: *** [all] Error 2</div>
<div>gmake[4]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites/sptests'</div><div>gmake[3]: *** [all-recursive] Error 1</div><div>gmake[3]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu/testsuites'</div>
<div>gmake[2]: *** [all-recursive] Error 1</div><div>gmake[2]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c/realview_pbx_a9_qemu'</div><div>gmake[1]: *** [all-recursive] Error 1</div>
<div>gmake[1]: Leaving directory `/home/hesham/rtems-dev/build_bsps/smprealview/arm-rtems4.11/c'</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 6, 2013 at 5:25 PM, Deng Hengyi <span dir="ltr"><<a href="mailto:wei.a.yang@gmail.com" target="_blank">wei.a.yang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
When i used the latest repo from git there is a error in the build for realview_pbx_a9_qemu_smp.<br>
My configure command is :<br>
 ../../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<br>
toolchains are built from RSB (newlib is 15-June-2013) with the last commit is Jun 6.<br>
<br>
By the way whether there is a command to build only smptests test case?<br>
<br>
the error is like hollow:<br>
<br>
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<br>

mv -f .deps/init.Tpo .deps/init.Po<br>
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<br>

mv -f .deps/serial_mouse_config.Tpo .deps/serial_mouse_config.Po<br>
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<br>

mv -f .deps/msmouse.Tpo .deps/msmouse.Po<br>
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<br>

mv -f .deps/termios_testdriver_intr.Tpo .deps/termios_testdriver_intr.Po<br>
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<br>

../../../../../realview_pbx_a9_qemu_smp/lib/librtemsbsp.a(libbsp_a-console-config.o): In function `bsp_get_serial_mouse_device':<br>
/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'<br>

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<br>

collect2: error: ld returned 1 exit status<br>
make[6]: *** [mouse01.exe] Error 1<br>
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'<br>
make[5]: *** [all-recursive] Error 1<br>
make[5]: Leaving directory `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests'<br>
make[4]: *** [all] Error 2<br>
make[4]: Leaving directory `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites/libtests'<br>
make[3]: *** [all-recursive] Error 1<br>
make[3]: Leaving directory `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp/testsuites'<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory `/home/weiy/project/gsoc/gsoc2013/rtems-build/arm-build/arm-rtems4.11/c/realview_pbx_a9_qemu_smp'<br>
make[1]: *** [all-recursive] Error 1<br>
<br>
<br>
_______________________________________________<br>
rtems-devel mailing list<br>
<a href="mailto:rtems-devel@rtems.org">rtems-devel@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-devel" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-devel</a><br>
</blockquote></div><br></div>
_______________________________________________<br>rtems-devel mailing list<br><a href="mailto:rtems-devel@rtems.org">rtems-devel@rtems.org</a><br>http://www.rtems.org/mailman/listinfo/rtems-devel<br></blockquote></div><br></div></body></html>