Build problems with source-builder compiling 4.11-arm with ADA
Joel Sherrill
joel.sherrill at oarcorp.com
Sat Feb 7 20:55:38 UTC 2015
On February 7, 2015 2:31:36 PM CST, Jan Sommer <soja-misc at aries.uberspace.de> wrote:
>Hello,
>
>I tried building rtems 4.11 for arm with ADA enabled with the
>source-builder, but the build failed. It runs fine for c/c++ and
>fortran.
>There hasn't been a rsb-report.
>
>source-builder$ uname -a
>Linux kubuntu 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:06:37 UTC
>
>2015 x86_64 x86_64 x86_64 GNU/Linux
>
>source-builder$ ./sb-check
>RTEMS Source Builder - Check, v0.2.0
>Environment is ok
>
>rtems$ ../source-builder/sb-set-builder --log=build-log.txt
>--prefix=/home/jan/workspace/rtems-pi/development/rtems/compiler/4.11
>4.11/rtems-arm --jobs=none --with-ada
>
>RTEMS Source Builder - Set Builder, v0.2.0
>Build Set: 4.11/rtems-arm
>Build Set: 4.11/rtems-autotools.bset
>Build Set: 4.11/rtems-autotools-internal.bset
>config: tools/rtems-autoconf-2.69-1.cfg
>package: autoconf-2.69-x86_64-linux-gnu-1
>building: autoconf-2.69-x86_64-linux-gnu-1
>config: tools/rtems-automake-1.12.6-1.cfg
>package: automake-1.12.6-x86_64-linux-gnu-1
>building: automake-1.12.6-x86_64-linux-gnu-1
>cleaning: autoconf-2.69-x86_64-linux-gnu-1
>cleaning: automake-1.12.6-x86_64-linux-gnu-1
>Build Set: Time 0:00:06.590777
>Build Set: 4.11/rtems-autotools-base.bset
>config: tools/rtems-autoconf-2.69-1.cfg
>package: autoconf-2.69-x86_64-linux-gnu-1
>building: autoconf-2.69-x86_64-linux-gnu-1
>config: tools/rtems-automake-1.12.6-1.cfg
>package: automake-1.12.6-x86_64-linux-gnu-1
>building: automake-1.12.6-x86_64-linux-gnu-1
>installing: autoconf-2.69-x86_64-linux-gnu-1 ->
>/home/jan/workspace/rtems-pi/development/rtems/compiler/4.11
>installing: automake-1.12.6-x86_64-linux-gnu-1 ->
>/home/jan/workspace/rtems-pi/development/rtems/compiler/4.11
>cleaning: autoconf-2.69-x86_64-linux-gnu-1
>cleaning: automake-1.12.6-x86_64-linux-gnu-1
>Build Set: Time 0:00:06.426775
>Build Set: Time 0:00:13.019515
>config: devel/expat-2.1.0-1.cfg
>package: expat-2.1.0-x86_64-linux-gnu-1
>building: expat-2.1.0-x86_64-linux-gnu-1
>config: tools/rtems-binutils-2.24-1.cfg
>package: arm-rtems4.11-binutils-2.24-1
>building: arm-rtems4.11-binutils-2.24-1
>config: tools/rtems-gcc-4.8.2-newlib-cvs-1.cfg
>package: arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1
>cvs: reset: cvs://pserver:anoncvs@sourceware.org/cvs/src
>building: arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1
>Build Set: Time 0:28:16.659902
>error: shell cmd failed: /bin/sh -ex
>/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/doit
>Build FAILED
>
>
>I think the relevant error message from the build log is the following:
>
>[...]
> -iquote . -iquote .. -iquote ../.. -iquote
>/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/gcc-4.8.2/gcc/ada
>
>-iquote
>/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/gcc-4.8.2/gcc
>
>-I/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/gcc-4.8.2/gcc/../include
>
>-I./../.. socket.c -o socket.o
>In file included from socket.c:34:0:
>gsocket.h:194:24: fatal error: sys/socket.h: No such file or directory
> #include <sys/socket.h>
> ^
RTEMS provides this file You have to install RTEMS before building Ada. I don't know how the RSB handles this but the old scripts knew to build C and install it, RTEMS and install it, and then build C/Ada together with passing CFLAGS_FOR_TARGET to point to RTEMS.
I know I posted patches to GCC to get Ada honoring that flag recently. I think I committed that to GCC 4.9 and head. Not sure about 4.8 and know if needed, the RSB doesn't include the patch.
I have some local patches to the scripts in rtems-testing/gcc which predate the RSB and were always primarily used to test GCC. I will try to clean those up and commit them.
>compilation terminated.
>make[4]: *** [socket.o] Error 1
>../gcc-interface/Makefile:306: recipe for target 'socket.o' failed
>make[4]: Leaving directory
>'/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/build/gcc/ada/rts'
>make[3]: *** [gnatlib] Error 2
>gcc-interface/Makefile:2664: recipe for target 'gnatlib' failed
>make[3]: Leaving directory
>'/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/build/gcc/ada'
>make[2]: *** [gnatlib-plain] Error 2
>Makefile:104: recipe for target 'gnatlib-plain' failed
>make[2]: Leaving directory
>'/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/build/arm-rtems4.11/libada'
>make[1]: *** [all-target-libada] Error 2
>Makefile:13337: recipe for target 'all-target-libada' failed
>make[1]: Leaving directory
>'/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/build'
>Makefile:858: recipe for target 'all' failed
>make: *** [all] Error 2
>Build Set: Time 0:25:09.877451
>error: shell cmd failed: /bin/sh -ex
>/home/jan/workspace/rtems-pi/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.2-newlib-11-Dec-2013-1/doit
>
>
>Could it be connected to the problem described here?:
>http://permalink.gmane.org/gmane.os.rtems.user/16431:
>
>" The trick is to build RTEMS with networking multilib'ed and install
>it
>and the BSP you are interested in before building Ada."
>
>If yes, can I accomplish that with the source-builder or do I have to
>build the toolchain manually?
>
>Best regards,
>
> Jan
>_______________________________________________
>users mailing list
>users at rtems.org
>http://lists.rtems.org/mailman/listinfo/users
--joel
More information about the users
mailing list