comp.lang.ada
 help / color / mirror / Atom feed
* how to fix crt1.o: No such file or directory (link error for gnat)? after installing gnat 2012 on linux
@ 2012-06-26 17:47 Nasser M. Abbasi
  2012-06-26 18:08 ` Nasser M. Abbasi
  2013-03-17 19:17 ` claragranell
  0 siblings, 2 replies; 6+ messages in thread
From: Nasser M. Abbasi @ 2012-06-26 17:47 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-17 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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