* ld: library not found for -lcrt1.10.5.o
@ 2013-03-17 18:35 claragranell
2013-03-17 20:15 ` claragranell
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: claragranell @ 2013-03-17 18:35 UTC (permalink / raw)
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!
Clara.-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ld: library not found for -lcrt1.10.5.o
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
2 siblings, 0 replies; 4+ messages in thread
From: claragranell @ 2013-03-17 20:15 UTC (permalink / raw)
Solved (or at least it is working)
I located the folder for the library I was missing:
$ locate crt1.10.5.o
I added this folder to the variable LIBRARY_PATH, by writing the following into ~/.bash_profile
export LIBRARY_PATH=/here_folder_where_my_library_is/:${LIBRARY_PATH}
Re-read bash_profile:
$ source ~/.bash_profile
For the moment, this "solved" the problem.
I hope it helps!
On Sunday, March 17, 2013 7:35:26 PM UTC+1, clarag...@gmail.com wrote:
> 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!
>
>
>
> Clara.-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ld: library not found for -lcrt1.10.5.o
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
2 siblings, 0 replies; 4+ messages in thread
From: claragranell @ 2013-03-17 20:17 UTC (permalink / raw)
Solved (or at least it is working). I found a possible solution provided by a user named Nasser Abassi.
I located the folder for the library I was missing:
$ locate crt1.10.5.o
I added this folder to the variable LIBRARY_PATH, by writing the following into ~/.bash_profile
export LIBRARY_PATH=/here_folder_where_my_library_is/:${LIBRARY_PATH}
Re-read bash_profile:
$ source ~/.bash_profile
For the moment, this "solved" the problem.
I hope it helps!
- show quoted text -
On Sunday, March 17, 2013 7:35:26 PM UTC+1, clarag...@gmail.com wrote:
> 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!
>
>
>
> Clara.-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ld: library not found for -lcrt1.10.5.o
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
2 siblings, 0 replies; 4+ messages in thread
From: Simon Wright @ 2013-03-17 20:56 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-17 20:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox