On Fri, Mar 10, 2006 at 05:45:00PM -0800, J.D. Cole wrote:
> 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.
No.  On my system, GNAT is system installed (not in my home dir), and works.
I think it is badly installed.  Maybe the gentoo GNAT package is broken.

> 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.
Maybe.

Tristan.

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to