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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,cb210ec40d79fb96,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h31g2000yqd.googlegroups.com!not-for-mail From: Pieter Newsgroups: comp.lang.ada Subject: GCC 4.4.1 linux to mingw32 cross compiler gnat Date: Fri, 14 Aug 2009 06:24:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: <748eec08-8ae2-4271-aa5d-98e9f2d6a042@h31g2000yqd.googlegroups.com> NNTP-Posting-Host: 212.190.198.36 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1250256268 9058 127.0.0.1 (14 Aug 2009 13:24:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 14 Aug 2009 13:24:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h31g2000yqd.googlegroups.com; posting-host=212.190.198.36; posting-account=sAxCOQoAAACZa5k_jksKsHkg06sn2lL4 User-Agent: G2/1.0 X-HTTP-Via: 1.1 ISASRV, 1.1 iwsssrv:80 (IWSS) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7779 Date: 2009-08-14T06:24:04-07:00 List-Id: Hello All, I'm struggling in getting my GCC 4.4.1 x86_64-pc-linux-gnu to i686-pc- mingw32 cross-compiler to work with Ada; First, I successfully installed and bootstrapped binutils, mingw- runtime and w32api and put those in my PATH I've compiled pristine FSF gcc sources with --enable-threads --enable- languages=c,c++,fortran,java,ada --enable-libada --enable-libgcj -- enable-libgomp --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --target=i686-pc-mingw32 --prefix=/usr/local/cross-tools/i686-pc- mingw32 After installing, i tired test.adb: with Ada.Text_IO; use Ada.Text_IO; Procedure test is Begin Put_Line("Hello world"); End test; i686-pc-mingw32-gnatmake gives me: i686-pc-mingw32-gcc -c test.adb i686-pc-mingw32-gnatmake: "test.ali" incompatible ALI file, please recompile i686-pc-mingw32-gnatmake: "test.adb" compilation error test.ali looks like this (first few lines) V "GNAT Lib v4.4" M P W=b P SS R nnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn U test%b test.adb 00d000d0 NE OO SU IL KM W ada%s ada.ads ada.ali W ada.text_io%s a-textio.adb a-textio.ali D ada.ads 20070406091342 9c7dd3ea D a-except.ads 20090409232307 b54b55de For comparison, the contents of the installed text_io.ali in the i686- pc-mingw32 dirs is i V "GNAT Lib v4.4" A -gnatwa A -O2 A -W A -Wall A -g A -gnatp A -gnatg A -mtune=generic P SS R nnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnn U text_io%s text_io.ads 82bd3c91 NE OL W ada%s ada.ads ada.ali W ada.text_io%s a-textio.adb a-textio.ali D ada.ads 20070406091342 9c7dd3ea D a-except.ads 20090409232307 b54b55de D a-finali.ads 20090409232307 9eaace I'll admit that, foolishly, I have compiled this cross-gcc 4.4.1 using native gcc 4.3.1 (not 4.4.1) while the official manual recommends compiling native same version first. Would that be the reason for this incompatbility ? (although from the ali it looks like both have the 4.4 version so it doesn't look like a wrongly-picked compiler to me) I'm asking because I think I've read somewhere (possibly here) that someone got this exact setup (gcc 4.4.1 targeting mingw32 to work for ada) Anyone tried this and has an idea? Thanks, Pieter