comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ld: library not found for -lcrt1.10.5.o
Date: Sun, 17 Mar 2013 20:56:58 +0000
Date: 2013-03-17T20:56:58+00:00	[thread overview]
Message-ID: <lymwu1kan9.fsf@pushface.org> (raw)
In-Reply-To: 19d3c1d6-0872-40fd-bd58-c945970bee3f@googlegroups.com

claragranell@gmail.com writes:

> Hello everybody. I write here because I didn't find a way to solve the
> problem I had in any other place.
> I have MAC OSX 10.7.4 and I am trying to install GNAT 2012 (I would be
> happy with 2010 or 2011, but I have the same problems with them). I
> install GNAT using the doinstall script, and it works fine
> (supposedly), but then I try to compile any test program and I get:
>
>>> gnatmake test.adb
> gnatbind -x test.ali
> gnatlink test.ali
> ld: library not found for -lcrt1.10.5.o
> collect2: ld returned 1 exit status
> gnatlink: error when calling /usr/local/gnat/bin/gcc
> gnatmake: *** link failed.
>
> Anyone knows what is happening? Any help will be appreciated. Thanks
> in advance!

On 10.8.3/Xcode 4.6, crt1.10.{5,6}.0 are in /usr/lib. Maybe you need to
install Xcode? Where was crt1.10.5.0 on your system?

I found out the library search path by

   gnatmake hello_world.adb -largs -Wl,-v

where the last part asks for -v to be passed to the actual linker:

   $ gnatmake hello_world -largs -Wl,-v
   gnatbind -x hello_world.ali
   gnatlink hello_world.ali -Wl,-v
   collect2 version 4.7.0

   /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.8.3
   [...]
   -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem
   @(#)PROGRAM:ld  PROJECT:ld64-136
   configured to support archs: armv6 armv7 armv7s i386 x86_64
   Library search paths:
           ./
           /opt/gcc-4.7.0/lib/gcc/x86_64-apple-darwin11/4.7.0/adalib/
           /opt/gcc-4.7.0/lib/gcc/x86_64-apple-darwin11/4.7.0
           /opt/gcc-4.7.0/lib
           /usr/lib                          <-------------
           /usr/local/lib
   Framework search paths:
           /Library/Frameworks/
           /System/Library/Frameworks/



      parent reply	other threads:[~2013-03-17 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-17 18:35 ld: library not found for -lcrt1.10.5.o claragranell
2013-03-17 20:15 ` claragranell
2013-03-17 20:17 ` claragranell
2013-03-17 20:56 ` Simon Wright [this message]
replies disabled

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