Building RTEMS tools using Source Builder fails
Steen Ulrik Palm
sup at terma.com
Thu Oct 5 10:13:33 UTC 2017
Hi,
I'm new to building RTEMS. I have previously used pre-built RTEMS from Gaisler.
I'm trying to build the RTEMS tools using the Source Builder for the SPARC architecture (to be replaced by ARM later on) on a Debian 8 platform. I have downloaded the Source Builder using the command:
git clone git://git.rtems.org/rtems-source-builder.git
and have verified my environment using the command:
../source-builder/sb-check
I try to build the tools using the command:
../source-builder/sb-set-builder --prefix=$HOME/dev/rtems/erc32 4.12/rtems-sparc
Many tools and patches are correctly installed, but installation of gdb fails:
...
reporting: tools/rtems-gcc-7.2.0-newlib-2.5.0.20170818-1.cfg -> sparc-rtems4.12-gcc-7.2.0-newlib-2.5.0.20170818-x86_64-linux-gnu-1.xml
config: tools/rtems-gdb-8.0.1-1.cfg
package: sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1
download: http://ftp.gnu.org/gnu/gdb/gdb-8.0.1.tar.xz -> sources/gdb-8.0.1.tar.xz
downloading: sources/gdb-8.0.1.tar.xz - 18.7MB of 18.7MB (100%)
download: https://gaisler.org/gdb/gdb-8.0.1-sis-leon2-leon3.diff -> patches/gdb-8.0.1-sis-leon2-leon3.diff
downloading: patches/gdb-8.0.1-sis-leon2-leon3.diff - 224.5kB of 224.5kB (100%)
building: sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1
error: building sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1
Build FAILED
See error report: rsb-report-sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1.txt
error: building sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1
Build Set: Time 1:50:22.393887
Build FAILED
Looking in the file rsb-report-sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1.txt shows that the configure command complains about python2.7:
...
checking for XML_StopParser... yes
checking whether to use python... yes
checking for python... /usr/bin/python
configure: error: python is missing or unusable
checking for python2.7... no
Makefile:9095: recipe for target 'configure-gdb' failed
make[1]: Leaving directory '/home/smile/dev/rtems/rsb/rtems-source-builder/rtems/build/sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1/build'
make[1]: *** [configure-gdb] Error 1
make: *** [all] Error 2
Makefile:848: recipe for target 'all' failed
shell cmd failed: /bin/sh -ex /home/smile/dev/rtems/rsb/rtems-source-builder/rtems/build/sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1/doit
error: building sparc-rtems4.12-gdb-8.0.1-x86_64-linux-gnu-1
But python2.7 works fine:
$ python -version
Python 2.7.9
$ python2.7 -version
Python 2.7.9
Two questions:
1. Is this a known issue?
2. Is it possible to proceed without having to rebuild already installed tools (like newlib, which takes very long time to build)?
I have also tried to use released versions of the Source Builder (4.11.1 and 4.11.2). When using these versions, the building of newlib fails because gcc cannot find zlib.h included by one of the source files.
Is this a known issue?
As mentioned above, I have never built RTEMS before, so I'm a newbie in this area.
Best regards,
Steen
Steen Ulrik Palm
Senior Engineer, Software, Space Projects (DK), Space
Terma A/S
Vasekær 12, 2730 Herlev, Denmark
T +45 4594 9665 (direct) * T +45 8743 6000
www.terma.com<http://www.terma.com> * Newsletter<http://www.terma.com/press/newsletter> * Social media<http://www.terma.com/press/social-media/>
________________________________
Attention:
This e-mail (and attachment(s), if any) - intended for the addressee(s) only - may contain confidential, copyright, or legally privileged information or material, and no one else is authorized to read, print, store, copy, forward, or otherwise use or disclose any part of its contents or attachment(s) in any form. If you have received this e-mail in error, please notify me by telephone or return e-mail, and delete this e-mail and attachment(s). Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20171005/43127f1e/attachment.html>
More information about the users
mailing list