Building RTEMS tools using Source Builder fails
Steen Ulrik Palm
sup at terma.com
Wed Oct 11 07:54:40 UTC 2017
Hi Sebastian,
I have successfully built both a released version (4.11.2) and a development version of RTEMS for ERC32, and they can both be used to run the hello example.
I'm now trying to build RTEMS for ARM using RSB 4.11.2, but it fails after having built the kernel, while making a hello example test. The strange thing is that RSB is attempting to use a file that is part of the RTEMS built for ERC32 - a file that does not exist. The prefix for the ERC32 RTEMS is /home/smile/dev/rtems/4.11/erc32 and /home/smile/dev/rtems/4.11/arm for the ARM RTEMS.
Used build command: ../source-builder/sb-set-builder --prefix=$HOME/dev/rtems/4.11/arm 4.11/rtems-arm
Extract from the file rsb-report-arm-rtems4.11-kernel-4.11.2-1.txt:
...
make all-am
make[5]: Entering directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites/samples'
BSP Testsuite Data: all tests
Making all in hello
make[6]: Entering directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites/samples/hello'
arm-rtems4.11-gcc -B../../../../../nds/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../rtems-4.11.2/c/src/../../testsuites/samples/hello -I.. -mcpu=arm9tdmi -O2 -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o ../../../../../../../rtems-4.11.2/c/src/../../testsuites/samples/hello/init.c
mv -f .deps/init.Tpo .deps/init.Po
arm-rtems4.11-gcc -B../../../../../nds/lib/ -specs bsp_specs -qrtems -mcpu=arm9tdmi -O2 -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -mcpu=arm9tdmi -o hello.exe init.o
arm-rtems4.11-nm -g -n hello.exe > hello.num
arm-rtems4.11-size hello.exe
text data bss dec hex filename
145504 2384 4043392 4191280 3ff430 hello.exe
arm-rtems4.11-objcopy -O binary hello.exe hello.bin
../../../../../nds/build-tools/ndstool -c hello.nds -9 hello.bin -7 /home/smile/dev/rtems/4.11/erc32/sparc-rtems4.11/erc32/lib/coproc.bin
Cannot open file '/home/smile/dev/rtems/4.11/erc32/sparc-rtems4.11/erc32/lib/coproc.bin'.
Nintendo DS rom tool compiled for rtems - Oct 10 2017
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
Makefile:626: recipe for target 'hello.exe' failed
make[6]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites/samples/hello'
make[6]: *** [hello.exe] Error 1
make[5]: *** [all-local] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
Makefile:583: recipe for target 'all-local' failed
make[5]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites/samples'
Makefile:245: recipe for target 'all' failed
make[4]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites/samples'
Makefile:313: recipe for target 'all-recursive' failed
make[3]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds/testsuites'
Makefile:424: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c/nds'
make[1]: *** [all-recursive] Error 1
Makefile:286: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/arm-rtems4.11-kernel-4.11.2-1-4.11.2/build/arm-rtems4.11/c'
make: *** [all-recursive] Error 1
Makefile:410: recipe for target 'all-recursive' failed
shell cmd failed: /bin/sh -ex /home/smile/dev/rtems/4.11/rtems-source-builder-4.11.2/rtems/build/arm-rtems4.11-kernel-4.11.2-1/doit
error: building arm-rtems4.11-kernel-4.11.2-1
Best regards,
Steen
-----Original Message-----
From: Sebastian Huber [mailto:sebastian.huber at embedded-brains.de]
Sent: 5. oktober 2017 15:36
To: Steen Ulrik Palm; users at rtems.org
Subject: Re: Building RTEMS tools using Source Builder fails
On 05/10/17 15:29, Steen Ulrik Palm wrote:
> Thanks a lot for spotting the problem:-)
I just created a new one for you...
>
> After having installed python2.7-dev, I have now successfully built the RTEMS tools.
... if you use RTEMS 4.12, then you should immediately update the RSB and RTEMS and build it again.
https://lists.rtems.org/pipermail/devel/2017-October/019121.html
--
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.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list