On July 24, 2015 9:08:57 AM GMT+01:00, Ric Claus <cl...@slac.stanford.edu> wrote: > >On Jul 24, 2015, at 9:50 AM, Sebastian Huber ><sebastian.hu...@embedded-brains.de> wrote: > >> >> >> On 23/07/15 18:57, Ric Claus wrote: >>> Since a fresh git pull of the RTEMS master this morning (CET), I’ve >been having trouble building various components. Building the >xilinx-zynq-zedboard with —enable-smp ends with failing to build >sptls01 (which had no trouble yesterday): >>> >>> cpukit/score/cpu/arm/__tls_get_addr.c:28: undefined reference to >`_Thread_Get_executing’ >> >> I fixed this. Did you modify the compiler options? On ARMv7-A you >shouldn't need this function since there is a dedicated thread >registers. > >Okay. Yes, this is for generating non-thumb code. Here’s the full >output: > >Making all in sptls01 >gmake[6]: Entering directory >`/u1/home/claus/development/rtems/bld/xilinx_zynq/ml1/up/arm-rtems4.11/c/xilinx_zynq_ml1/testsuites/sptests/sptls01' >arm-rtems4.11-gcc -B../../../../../xilinx_zynq_ml1/lib/ -specs >bsp_specs -qrtems -DHAVE_CONFIG_H -I. >-I/home/claus/development/rtems/src/rtems/c/src/../../testsuites/sptests/sptls01 >-I.. >-I/home/claus/development/rtems/src/rtems/c/src/../../testsuites/sptests/../support/include >-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fPIC -O2 >-g -Wall -Wmissing-prototypes -Wimplicit-function-declaration >-Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF >.deps/init.Tpo -c -o init.o >/home/claus/development/rtems/src/rtems/c/src/../../testsuites/sptests/sptls01/init.c >mv -f .deps/init.Tpo .deps/init.Po > >arm-rtems4.11-gcc -B../../../../../xilinx_zynq_ml1/lib/ -specs >bsp_specs -qrtems -march=armv7-a -mfpu=neon -mfloat-abi=softfp >-mtune=cortex-a9 -fPIC -O2 -g -Wall -Wmissing-prototypes >-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs >-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fPIC >-o sptls01.exe init.o >../../../../../xilinx_zynq_ml1/lib/librtemscpu.a(libscorecpu_a-__tls_get_addr.o): >In function `__tls_get_addr': >/home/claus/development/rtems/src/rtems/c/src/../../cpukit/score/cpu/arm/__tls_get_addr.c:28: >undefined reference to `_Thread_Get_executing' >collect2: error: ld returned 1 exit status >gmake[6]: *** [sptls01.exe] Error 1
__tls_get_addr.c needs to include rtems/score/percpu.h I have a similar patch on my laptop for m68k. None of the bsps built for that target. >> >>> >>> Building rtems-libbsd, with either a modified Makefile or waf >(exactly as per rtems-libbsd/README.waf, i.e., for >realview_pbx_a9_qemu), ends with: >>> >>> In file included from ../../rtemsbsd/rtems/rtems-bsd-mutex.c:41:0: >>> .../rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h: In >function 'rtems_bsd_mutex_unlock': >>> >.../rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h:154:34: >error: 'Thread_queue_Control' has no member named ‘Queues' >> >> For me the waf configure fails with: >> >> Checking for RTEMS headers >> ==> >> #include <rtems.h> >> >> int main() { >> return 0; >> } >> >> <== >> [1/2] [32mcxx: >build/.conf_check_43c32d88444a1ba1e9b68cfe1006373a/test.cpp -> >build/.conf_check_43c32d88444a1ba1e9b68cfe1006373a/testbuild/test.cpp.1.o >> [0m >> ['/opt/rtems-4.11/bin/arm-rtems4.11-g++', '-qrtems', >'-B/opt/rtems-4.11/arm-rtems4.11/lib/', >'-B/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/', '--specs', >'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', >'-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', >'-mtune=cortex-a9', '-mtune=cortex-a9', '../test.cpp', '-c', '-o', >'test.cpp.1.o'] >> err: In file included from >/opt/rtems-4.11/lib64/gcc/arm-rtems4.11/4.9.4/include/c++/atomic:38:0, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/score/cpustdatomic.h:32, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/score/cpuatomic.h:12, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/score/atomic.h:20, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/score/thread.h:24, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/score/heap.h:22, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems/rtems/types.h:26, >> from >/opt/rtems-4.11/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/include/rtems.h:31, >> from ../test.cpp:1: >> >/opt/rtems-4.11/lib64/gcc/arm-rtems4.11/4.9.4/include/c++/bits/c++0x_warning.h:32:2: >error: #error This file requires compiler and library support for the >ISO C++ 2011 standard. This support is currently experimental, and must >be enabled with the -std=c++11 or -std=gnu++11 compiler options. >> #error This file requires compiler and library support for the \ > >My tools were built using RSB last Friday. > >$ rtems/4.11/bin/arm-rtems4.11-gcc --version >arm-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB >fba2549d5c06a4a3f6f36ec1672a98371f55a916, Newlib 2.2.0.20150423) > > Ric > >> >> -- >> Sebastian Huber, embedded brains GmbH >> >> Address : Dornierstr. 4, D-82178 Puchheim, Germany >> Phone : +49 89 189 47 41-16 >> Fax : +49 89 189 47 41-09 >> E-Mail : sebastian.hu...@embedded-brains.de >> PGP : Public key available on request. >> >> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. >> > >_______________________________________________ >devel mailing list >devel@rtems.org >http://lists.rtems.org/mailman/listinfo/devel --joel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel