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!news.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Re: Cross-toolchain for DS [was: Newcomers to comp.lang.ada: welcome and how did you end up here ?] Date: Sun, 19 Oct 2014 14:34:18 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <87h9zdpi84.fsf@ixod.org> <87fvex5bwy.fsf@ixod.org> <2064812074434669488.767131laguest-archeia.com@nntp.aioe.org> <1196941186434813066.828500laguest-archeia.com@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 19 Oct 2014 14:34:18 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="76a49b86bc3e16725b7cfca3d85cb4c8"; logging-data="12086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+q2Josogzz53T447p86Alu" User-Agent: slrn/1.0.1 (FreeBSD) Cancel-Lock: sha1:3+0HdMtluHRQXhIOj6ybeW/67e0= Xref: news.eternal-september.org comp.lang.ada:22588 Date: 2014-10-19T14:34:18+00:00 List-Id: On 2014-10-12, Natasha Kerensikova wrote: > On 2014-10-12, Natasha Kerensikova wrote: >> FWIW, I have already started with devkitARM build scripts (after some >> tweaking to make it work on a FreeBSD host), added Ada to the list in >> --enable-languages. >> >> I'm currently stumbling on the gnat* not being installed (there are a >> lot of messages like "install: gnatchop: No such file or directory" >> and even a "You must first build the GNAT library: make gnatlib"). > > Just in case anyone is interested in following up that particular issue, > I have just solved it. It turns out that all devkitARM patches for > gcc-4.8.2 apply flawlessly on gcc-4.9.0. So I bumped up gcc version and > apply avr-gnat patches on top of devkitARM patches, and the build > succeeded. > > I will try playing with it in a few days (at least to test whether it > actually manages to build stuff), but I can provide the current patch if > anyone is interested. Still following up, I managed to compile a sort of « C in Ada » program on the DS, where a package exports a "main" procedure with C convention, and imports a lot of libnds C primitives to setup a console and read the keypad scan. All of this without a RTS and without Interfaces.C (C types are declared in the test body instead). As before, I can make patches and build instructions available, if anyone is interested. I had to stop because of hardware issue in my microSD card and/or microSD-on-USB reader, I have to replace them before continuing tests on real hardware. However in the meantime I guess I can try moving the linking from C-like command line to a gpr, or try to get some RTS features, or at least a system-wide Interfaces.C. Natasha