comp.lang.ada
 help / color / mirror / Atom feed
From: alexmartin715@gmail.com
Subject: Re: Installing GNAT 2012 on Mountain Lion
Date: Thu, 25 Oct 2012 04:19:17 -0700 (PDT)
Date: 2012-10-25T04:19:17-07:00	[thread overview]
Message-ID: <9427d236-0f19-4186-94f0-20abebfe9bfd@googlegroups.com> (raw)
In-Reply-To: <6c63a798-a295-44d7-8b08-d5d2c95fc68f@googlegroups.com>

On Thursday, October 25, 2012 10:30:57 AM UTC+1, alexma...@gmail.com wrote:
> On Tuesday, October 23, 2012 4:02:08 PM UTC+1, Simon Wright wrote:
> 
> > 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).
> 
> 
> 
> 
> 
> Thanks for the advice, I deleted what I could find of GNAT and then reinstalled, and now it compiles but I get this error when I try and run the .exe:
> 
> 
> 
> dyld: Library not loaded: @rpath/libgnat-2012.dylib
> 
>   Referenced from: ./extra <- (This is the .exe file)
> 
>   Reason: image not found
> 
> Trace/BPT trap: 5

Ok I have it working I was an idiot and hadn't removed GNAT properly and so it was running the incorrect version. Main thing is it's working! Thanks again!



  reply	other threads:[~2012-10-25 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-23 13:03 Installing GNAT 2012 on Mountain Lion alexmartin715
2012-10-23 15:02 ` Simon Wright
2012-10-25  9:30   ` alexmartin715
2012-10-25 11:19     ` alexmartin715 [this message]
2012-10-25 11:33       ` Google Groups again (was Re: Installing GNAT 2012 on Mountain Lion) Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox