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,dd90f16e081b7472 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.81.98 with SMTP id z2mr3834998pax.19.1351004528257; Tue, 23 Oct 2012 08:02:08 -0700 (PDT) Path: s9ni35417pbb.0!nntp.google.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Installing GNAT 2012 on Mountain Lion Date: Tue, 23 Oct 2012 16:02:07 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="7d2d00b559fb51f460ee917cabfedd73"; logging-data="18265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lQdr+a4BH8BOZi+daL0ZIQHrNBNtGtwU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:A4+TiO801ujphrUmt9HeJSqZNQs= sha1:r4FEGYI+V4jMGQYUHYLjQPaFoWM= Content-Type: text/plain Date: 2012-10-23T16:02:07+01:00 List-Id: alexmartin715@gmail.com writes: > I don't know if I made a mistake during installation but I am trying > to get Gnat working on Mountain Lion. It has installed but when I run > Gnatmake I get this: > > gnatbind -x extra.ali > gnatlink extra.ali > ld: in > /usr/bin/gnat/lib/gcc/x86_64-apple-darwin10.8.0/4.5.4/adalib/libgnat.a(raise-gcc.o), > corrupt archive, member contents extends past end of file for > architecture x86_64 > collect2: ld returned 1 exit status > gnatlink: error when calling /usr/bin/gnat/bin/gcc > gnatmake: *** link failed. > > I have it installed on a current generation MBP 13 inch I7. I have it installed on a current gen MBP 13-inch I5, and no such problems. This is an install that was done on the previous early-2008 MBP 15-inch running - well, I can't remember when I installed Lion, so it could have been Lion or Snow Leopard - and recovered from a Time Machine backup. I seem to have downloaded on 7 July, and the libgnat.a info is $ ls -l /opt/gnat-gpl-2012/lib/gcc/x86_64-apple-darwin10.8.0/4.5.4/adalib/libgnat.a -rw-r--r--@ 1 simon1 simon1 5764464 14 May 15:10 /opt/gnat-gpl-2012/lib/gcc/x86_64-apple-darwin10.8.0/4.5.4/adalib/libgnat.a $ md5 /opt/gnat-gpl-2012/lib/gcc/x86_64-apple-darwin10.8.0/4.5.4/adalib/libgnat.a MD5 (/opt/gnat-gpl-2012/lib/gcc/x86_64-apple-darwin10.8.0/4.5.4/adalib/libgnat.a) = 19dd744947c6fa1d180dfb520f6b077d I can only suggest reinstalling. Did it really install in /usr/bin/gnat/? Here, it wants to install in /usr/local/gnat/ which is much more normal. You'll see from the above that I have my own views on where to install GNAT (because I need to have several version on-the-go).