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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75412f14b0c43a2d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!news.germany.com!feed.xsnews.nl!border-1.ams.xsnews.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!news.highwinds-media.com!feeder3.cambrium.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!proxad.net!feeder2-2.proxad.net!cleanfeed4-a.proxad.net!nnrp8-2.free.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Ada ARM Linux Compiler References: Date: Tue, 01 Jul 2008 09:39:00 +0200 Message-ID: <87abh2hx4b.fsf@willow.rfc1149.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:vcPkqEBLKS92rziZbGy6Ds4zx84= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2a01:e35:1382:f950::3 Organization: Guest of ProXad - France NNTP-Posting-Date: 01 Jul 2008 09:40:02 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1214898002 news-1.free.fr 10788 88.191.14.223:55370 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:973 Date: 2008-07-01T09:40:02+02:00 List-Id: >>>>> "Gene" == Gene writes: Bryan> Does anyone know if it is possible to generate a cross build of gcc Bryan> with ada support that targets an ARM processor, specifically a Bryan> gumstix embedded board with Marvell Xscale PXA270? The host is an Bryan> x86 machine running ubuntu. If it is possible does anyone have a Bryan> quick step by step what do i need to build and where are the Bryan> possible traps? I have tried using the build environment for the Bryan> gumstix with no success, gcc always fails with a rather cryptic Bryan> error message usually involving some kind of source code error. Any Bryan> help would be greatly appreciated. Gene> Thanks! I'm very interested in this as well. Some of my folks Gene> tried pretty hard and could not get it to work, but that was 2 Gene> versions of gcc ago. We could build a cross-compiler, but never Gene> a usable runtime, so we gave up. I wrote AdaCore asking what it Gene> would cost for them to do the work and received no reply. Bryan, Gene, if you want to give it a try, I produced a quick patch for the latest GCC SVN trunk which may work or may not work. You must: - fetch the latest GCC sources from the FSF, SVN trunk, see http://gcc.gnu.org/svn.html to retrieve the sources - apply the patch found at http://www.rfc1149.net/tmp/arm-linux-gnat-port.patch - build and install a native Ada+C compiler from those patched sources - build and install a cross compiler from those patched sources using the compiler built previously (it is important to have the cross-compiler built from a native compiler using the same version) I do not have any ARM board to test it. Please keep me informed privately (maybe keeping each other in Cc:) of how it went, so that I can add this patch to the GCC sources if it is working for you. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/