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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.149.67 with SMTP id ty3mr1442035pab.27.1390426500837; Wed, 22 Jan 2014 13:35:00 -0800 (PST) X-Received: by 10.50.13.7 with SMTP id d7mr511443igc.16.1390426500552; Wed, 22 Jan 2014 13:35:00 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!ma3no61054pbc.0!news-out.google.com!vg8ni5igb.0!nntp.google.com!c10no1171405igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 22 Jan 2014 13:35:00 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.46.200.231; posting-account=hLd-5woAAADYZwVMVKtPxDsPxCMLkwY- NNTP-Posting-Host: 199.46.200.231 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada on Android and iOS? From: coding.rascal@gmail.com Injection-Date: Wed, 22 Jan 2014 21:35:00 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:18251 Date: 2014-01-22T13:35:00-08:00 List-Id: Hi John, Thanks for all the great info, and a BIG thanks for coming out with GNATDro= id. =3D)=20 Yeah, I figured I was being a bit too naive on this whole cross compiling e= ffort, especially to get Ada going.=20 1) How were you able to figure out that you needed to patch GCC? Was it lik= e the build would fail and you had to dig into the GCC code and figure out = what the offending code was trying to do? Or was it more like the cross com= piler built successfully but the ACATS failed and you dug into the assemble= r to figure out why it failed? I've never patched a compiler before, nor ha= ve I ever taken a compiler course in college. 2) What did you mean when you said "I had to implement the target and some = functionality"? Did you have to implement something in the GNAT run time to= use an Android sub-system? 3) For the target header files, did you use the NDK header files and combin= ed them with newer Linux headers from somewhere else like I did? =20 I'll take a look at the GNATDroid make files as you suggested. BTW, is ther= e a mailing list or something that you and anyone else involved with GNATDr= oid collaborate on? I think it would be interesting to find out what goes behin= d the scene of maintaining GNATDroid. - Coding Rascal On Wednesday, January 22, 2014 8:55:53 AM UTC-8, jrmarino wrote: > > I'm the creator of gnatdroid (Ada crosscompiler from FreeBSD/DragonFly to= Android). At least with gcc 4.6 and 4.7, GNAT doesn't build "out of the b= ox" for the android target. For 4.6 I had to implement the target and some= functionality, and as I found out yesterday, I have to do more for gcc4.7. >=20 >=20 > >=20 > > 1) Will the 6 step process I laid out above only lead me to a dead end?= I know about GNATdroid. The main reason why I am trying to avoid using GNA= Tdroid is because I am hoping I can figure out a common process that allows= me to create toolchains for both Android and iOS (hopefully, with the need= to simply switch between the set of header files between the two platforms= ). >=20 >=20 >=20 > You're at a dead-end because you think a stock gcc can build an ada compi= ler without patches. You have some good news though: >=20 > 1) A couple of days ago I made GNATDroid use binutils 2.24 (nonfactor as = 2.21 is just fine too) >=20 > 2) As we speak, and totally by coincidence, I'm running a testsuite on GN= ATDroid based on gcc 4.7. The port will be updated today most likely. It'= s on C9 right now, passed every test so far, but that was after I implement= ed additional functionality to the gcc 4.7 base on top of my previous patch= set.