comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Petition ARM to not hinder Ada
Date: Thu, 21 Jan 2016 23:11:27 +0000
Date: 2016-01-21T23:11:27+00:00	[thread overview]
Message-ID: <lyk2n2frz4.fsf@pushface.org> (raw)
In-Reply-To: alpine.DEB.2.11.1510011606340.1702@Lydia.insomnia247.nl

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Paul Colin de Gloucester <Gloster@nicht.at> writes:

> ARM provides a copy of GCC with a customized configuration script
> which is incompatible with the standard switch --enable-languages=ada
> for configure

ARM have released GCC 5.2 (.1), which is not very incompatible with
building GNAT.

The diff I made is at the end (I hope).

I'm building on OS X El Capitan, so there are various other issues with
the script: re-running it starts again at the beginning; it builds with
-static-libgcc, so for example arm-none-eabi-gnatchop -h ends with a
segv; the last section uses GNU tar with options incompatible with Apple
tar; it may not relocate too well. Still, it just built my Arduino Due
testbed OK (I haven't run it yet!).


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch to build Ada --]
[-- Type: text/x-patch, Size: 1282 bytes --]

--- build-toolchain.sh	2015-12-19 15:52:31.000000000 +0000
+++ build-toolchain-ada.sh	2016-01-21 22:24:44.000000000 +0000
@@ -404,9 +404,10 @@
     --mandir=$INSTALLDIR_NATIVE_DOC/man \
     --htmldir=$INSTALLDIR_NATIVE_DOC/html \
     --pdfdir=$INSTALLDIR_NATIVE_DOC/pdf \
-    --enable-languages=c,c++ \
+    --enable-languages=c,c++,ada \
     --enable-plugins \
     --disable-decimal-float \
+    --disable-libada \
     --disable-libffi \
     --disable-libgomp \
     --disable-libmudflap \
@@ -439,6 +440,8 @@
   make -j$JOBS INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
 fi
 
+make -w -C gcc cross-gnattools ada.all.cross
+
 make install
 
 if [ "x$skip_manual" != "xyes" ]; then
@@ -481,8 +484,9 @@
 
 $SRCDIR/$GCC/configure --target=$TARGET \
     --prefix=$BUILDDIR_NATIVE/target-libs \
-    --enable-languages=c,c++ \
+    --enable-languages=c,c++,ada \
     --disable-decimal-float \
+    --disable-libada \
     --disable-libffi \
     --disable-libgomp \
     --disable-libmudflap \
@@ -505,6 +509,7 @@
     ${MULTILIB_LIST}
 
 make -j$JOBS CXXFLAGS_FOR_TARGET="-g -Os -ffunction-sections -fdata-sections -fno-exceptions"
+make -w -C gcc cross-gnattools ada.all.cross
 make install
 
 copy_multi_libs src_prefix="$BUILDDIR_NATIVE/target-libs/arm-none-eabi/lib" \

  parent reply	other threads:[~2016-01-21 23:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 14:08 Petition ARM to not hinder Ada Paul Colin de Gloucester
2015-10-14 14:02 ` Simon Wright
2015-11-06 15:16   ` Paul Colin Gloster
2016-01-26 11:10     ` Lucretia
2016-01-21 23:11 ` Simon Wright [this message]
2016-01-22 12:19   ` Brian Drummond
2016-01-25 18:22   ` Simon Wright
2016-01-26 17:42     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox