comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: how to fix crt1.o: No such file or directory (link error for gnat)? after installing gnat 2012 on linux
Date: Tue, 26 Jun 2012 13:08:55 -0500
Date: 2012-06-26T13:08:55-05:00	[thread overview]
Message-ID: <jsctrk$pbh$1@speranza.aioe.org> (raw)
In-Reply-To: jscskb$m6q$1@speranza.aioe.org

solved it!

here it is, in case someone else hits this problem:

>export LIBRARY_PATH=/usr/lib/i386-linux-gnu/

>gnatmake -gnat2012 t44.adb
gcc -c -gnat2012 t44.adb
gnatbind -x t44.ali
gnatlink t44.ali

I do not know why it happens, but the above will fix it.

--Nasser


On 6/26/2012 12:47 PM, Nasser M. Abbasi wrote:
> I've see this error before, and I googled it. But the
> solutions I found not helping.
>
> Does any one know how to make gnat see crt1.o?
>
> I installed gnat 2012 ok. Followed all the questions,
> and all went well. It installed to /usr/gnat.
> I am on linux.
>
> Now when I try to compile a file, I get this error:
>
> ------------------------------
>> gnatmake t44.adb
> gnatbind -x t44.ali
> gnatlink t44.ali
> /usr/gnat/libexec/gcc/i686-pc-linux-gnu/4.5.4/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
> gnatlink: error when calling /usr/gnat/bin/gcc
> gnatmake: *** link failed.
> --------------------------
>
> locate shows this
>
> ----------------------------
>> locate crt1.o
> /usr/lib/i386-linux-gnu/Mcrt1.o
> /usr/lib/i386-linux-gnu/Scrt1.o
> /usr/lib/i386-linux-gnu/crt1.o
> /usr/lib/i386-linux-gnu/gcrt1.o
> --------------------------
>
> and
>
> -----------------------------
>> sudo apt-get install libc6-dev
> [sudo] password for me:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libc6-dev is already the newest version
> ---------------------------------
>
> and
>
> ---------------------------
>> which gnatmake
> /usr/gnat/bin/gnatmake
>> gnatmake -v
>
> GNATMAKE GPL 2012 (20120509)
> ----------------------------------
>
> and
> --------------
>> echo $PATH
> /usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> ---------------
>
> SO, I think I just need to tell it to use the crt1.o
> in /usr/lib/i386-linux-gnu/crt1.o, right?
>
> I forgot how to do that. Do I need to run some Linux
> command or something? the gnat README did not say
> another, other that to run the doinstall script, which
> I did ofcourse.
>
> thank you,
> --Nasser
>





  reply	other threads:[~2012-06-26 18:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 17:47 how to fix crt1.o: No such file or directory (link error for gnat)? after installing gnat 2012 on linux Nasser M. Abbasi
2012-06-26 18:08 ` Nasser M. Abbasi [this message]
2012-06-26 23:17   ` Brian Drummond
2012-06-27 19:16   ` Georg Bauhaus
2012-11-20 19:48     ` giorgio.piantella
2013-03-17 19:17 ` claragranell
replies disabled

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