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!r9g2000vbk.googlegroups.com!not-for-mail From: Alexis Newsgroups: comp.lang.ada Subject: Re: Gnat cross compiler Date: Fri, 21 May 2010 00:31:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <677f7ffd-cb4f-44c4-8ead-f30137bbdfe2@r9g2000vbk.googlegroups.com> References: <4166ab6d-ff7f-4c7c-b8c2-fdf4e371b414@l6g2000vbo.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 1274427085 4204 127.0.0.1 (21 May 2010 07:31:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 May 2010 07:31:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r9g2000vbk.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:11839 Date: 2010-05-21T00:31:25-07:00 List-Id: > > So far GCC and libgcc have been built fine, but when I try to use i686- > > elf-gcc to compile an Ada program I get the following error: > > > $ i686-elf-gcc -c hello.adb > > fatal error, run-time library not installed correctly > > cannot locate file system.ads > > compilation abandoned > > > Thinking that this might solve the problem I've tried to build libada > > following the same procedure for libgcc (make all-target-libada), only > > to get multiple compilation errors such as (extract for a much larger > > log): > > I could create one for Windows -> Linux (Windows -> Mac still pending), = =A0 > using MinGW. > > What I can say: there is a --with-sysroot option in the configuration. Yo= u =A0 > must care a lot about what is contained in the directory you pass as the = =A0 > --with-sysroot option. There may also be troubles due to the differences = =A0 > of the directory structure on Windows compared to the one of =A0 > Linux/UNIX-like... but I guess the latter should not be a trouble with = =A0 > Cygwin. > > I would like to advice to check twice all of what is related to sysroot o= r =A0 > to --includedir or --libdir, if you use these. > > Cannot tell more, as this would be too much work otherwise (building a = =A0 > cross compiler is really not a piece of cake) > > Wish you to succeed Thanks for your reply. I have decided to stop trying to compile libada and have managed to get the cross compiler to work by setting the RTS option to \cygwin\lib\gcc\i686-pc-cygwin\4.3.4, which is where the adainclude and adalib for the ada compiler bundled with Cygwin. So far so good, but this makes me wonder, what is the RTS used for? Is this now a real cross compiler as I'm using the RTS for the i686-pc- cygwin target? My guess is I should be using a proper i696-elf Ada RTS, right? Best regards, Alexis.