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: a07f3367d7,53c72e02cc0bdf5d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.19.132 with SMTP id f4mr18747wie.2.1363918479557; Thu, 21 Mar 2013 19:14:39 -0700 (PDT) Path: p18ni6019wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ld: library not found for -lcrt1.10.5.o Date: Sun, 17 Mar 2013 20:56:58 +0000 Organization: A noiseless patient Spider Message-ID: References: <19d3c1d6-0872-40fd-bd58-c945970bee3f@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="72a7bb6120f61bc7749e29c9c2e535af"; logging-data="1290"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J4YQ5ApV232GNgGVdMnjU2jCbixwQt/g=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:+ZZsX96Fo8gNnaHb8lBAwzBtZio= sha1:nb7H6v2KU6vNjTe0GlcFU63TsS4= Content-Type: text/plain Date: 2013-03-17T20:56:58+00:00 List-Id: 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/