I installed GNAT on my OS X 10.8.5 computer with the following steps:
After trying to compose a simple hello world example, I get this error:
$ gnat make hello
gcc -c hello.adb
gnatbind -x hello.ali
gnatbind: Cannot find: s-stalib.ali
gnatmake: *** bind failed.
Any idea why this might happen?
PS: it gnat make -a helloworks, but it creates tons of files and should not be required, as far as I know.
Edit: As requested, here is the outputgnatls -v
GNATLS GPL 2013 (20130314)
Copyright (C) 1997-2013, Free Software Foundation, Inc.
Source Search Path:
<Current_Directory>
/usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adainclude/
Object Search Path:
<Current_Directory>
/usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adalib/
Project Search Path:
<Current_Directory>
/usr/local/gnat/x86_64-apple-darwin12.2.0/lib/gnat
/usr/local/gnat/share/gpr
/usr/local/gnat/lib/gnat
Here is an excerpt from the output ls -l /usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adalib/:
total 39224
-rw-rwxr
-rw-rwxr
...
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
-rw-rwxr
Interestingly, the requested file is s-stalib.alinot contained in this directory.
source