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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e085b6e4ce0fef39 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!q33g2000vbt.googlegroups.com!not-for-mail From: Alexis Newsgroups: comp.lang.ada Subject: Re: Gnat cross compiler Date: Mon, 24 May 2010 08:44:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5464dc3e-3f0b-403c-9d1d-894a235d9453@q33g2000vbt.googlegroups.com> References: <4166ab6d-ff7f-4c7c-b8c2-fdf4e371b414@l6g2000vbo.googlegroups.com> <677f7ffd-cb4f-44c4-8ead-f30137bbdfe2@r9g2000vbk.googlegroups.com> NNTP-Posting-Host: 87.216.17.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1274715899 15021 127.0.0.1 (24 May 2010 15:44:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 24 May 2010 15:44:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q33g2000vbt.googlegroups.com; posting-host=87.216.17.11; posting-account=fqT3AgoAAACuynC33fo8vJMqk6Lnw_it User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11926 Date: 2010-05-24T08:44:59-07:00 List-Id: > > Note: I could not really help you with building a cross-compiler with =A0 > Cygwin, as I suspect the related issues to be not the same as with MinGW.= =A0 > The only thing I'm pretty sure about, reading your initial post, is that = =A0 > your sysroot is not properly setup. > > -- > There is even better than a pragma Assert: a SPARK --# check. Hi again, and thanks again for your help. Going back to the possibility of compiling libada for i686-elf target, please bear with me just in case you might be able to help me with the sysroot, this is what I have done so far: >From a standard Cygwin installation and with the src files in /usr/srx export PREFIX=3D/usr/cross export TARGET=3Di686-elf cd /usr/src mkdir build-binutils build-gcc After successfully building the binutils then: cd /usr/src/build-gcc export PATH=3D$PATH:$PREFIX/bin ../gcc-4.3.4/configure --target=3D$TARGET --prefix=3D$PREFIX --disable-nls --enable-languages=3Dc,c++,ada --without-headers make all-gcc make install-gcc then: make all-target-libgcc make install-target-libgcc then: make all-target-libada Where it fails trying to do the make -C rts. Where should I be setting the sysroot directory? Kind regards, Alexis.