From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Petition ARM to not hinder Ada Date: Thu, 21 Jan 2016 23:11:27 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: mx02.eternal-september.org; posting-host="378129f99c3c32c8ce464f7428f5f75e"; logging-data="13581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KeHHT1rgZNCE/g9A2lTY2CA6TS6J1Uew=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:dk/QcuJDwsn6NtKEYzMZfhLNzfs= sha1:Zh9YBi6f7uIYPag5YZCgf6Iwn5g= Xref: news.eternal-september.org comp.lang.ada:29191 Date: 2016-01-21T23:11:27+00:00 List-Id: --=-=-= Content-Type: text/plain Paul Colin de Gloucester 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!). --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=build-toolchain.diff Content-Description: patch to build Ada --- 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" \ --=-=-=--