Hi there,
I tracked down the problem. Turns out I was using the GNAT gcc, so
that wasn't the problem as you all suggested. (But thank you for the
help.) It turns out that GNAT bind doesn't like read-only libraries.
Don't ask me why, I don't know enough about Ada to say, but in trying to
figure out the problem I ran across this document:
http://ip-sol.jp/download/spartan2/h8devel_src/gcc-3.4.0/gcc/ada/bcheck.adb
search for "is obsolete and read-only"
so this tells me that since my gnat install was installed in my system
not in my home directory, it wasn't going to work.
To get around this, you can pass gnatbind the "-t" option. I added it to
ghdl/vhdl/Makefile.in as follows:
gnatbind -Lgrt_ -o run-bind.adb -n ghdl_main.ali ----->>>> gnatbind -t
-Lgrt_ -o run-bind.adb -n ghdl_main.ali
The compile then succeeds.
As one might suspect, this workaround does cause the ghdl code to be
recompiled each time you try to make anything.
I am building on an x86_64 target under Gentoo Linux.
JD
>>Hi,
>> I am also having the same problem building from svn source (version
>>40 after using ./dist.sh source, etc.), it look like:
>>
>>dc -O -g -I- ../../../../gcc-4.0.2/gcc/vhdl/grt/grt-unithread.adb
>>gnatbind -Lgrt_ -o run-bind.adb -n ghdl_main.ali
>>error: "system.ads" has been modified and must be recompiled
>>error: "s-memory.adb" must be recompiled ("ada.ads" has been modified)
>>error: "ada.ads" has been modified and must be recompiled
>>error: "a-except.adb" must be recompiled ("ada.ads" has been modified)
>>.....
>>
>>I am building with:
>> gcc-3.4.4
>> gcc-core source tree 4.0.2
>>3.15p-r5 (originally tried with 3.45 but it resulted in the same problems)
>>
>>and my configuration was:
>>
>>./configure --enable-languages=vhdl (Ada in GCC *NOT* enabled)
>>
>>Let me know if you need more information
>>
>>
>
>I suppose this is a PATH problem.
>gnatbind calls the gcc driver. It should be of course an Ada-aware gcc.
>If the first gcc in your PATH is a non-Ada aware gcc, it fails.
>So be sure to have the Ada aware gcc first in your path while compiling ghdl.
>
>You can try 'which -a gcc' to see all the gcc in your PATH.
>
>Hops this helps.
>
>Tristan.
>
>
>
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss