On 30/01/11 12:49 PM, rail shafigulin wrote:
> i'm getting an error while trying to execute the following command
>
> ghdl -a --std='08' mytest.vhdl
>
> /usr/lib/ghdl/libexec/gcc/i486-linux-gnu/4.3.4/ghdl1:*command-line*: cannot
> find "std" library
/usr/{local/lib/}gcc/i686-pc-linux-gnu/4.3.4/vhdl/lib/v08/std/std_standard.o
doesn't exist. {This doesn't appear to be Tristan's binary install}
std_standard.o is created from a virtual source file by std_packages.adb on
demand. ghdl1 accepts a --compile-standard flag that generates a
std_standard.s which is used to generate a std_standard.o
There's >= Vhdl_93c test that used to determine build behavior for 2008
(lumping 2002 in).
You'd want a to pass a --std=08 flag? to ghdl1 as seen in the Makefile of
the source distribution, ghdldrv subdirectory.
Without auditing the Create_Std_Standard_Package procedure in
std_packages.adb I couldn't tell you if it would do the right thing for
2008. (or would generate the target without finangling, hey - try it).
>
> i realize that the package files for the 2008 standard are missing, but does
> anybody know where can i get them and where they should be downloaded?
>
> thanks.
http://standards.ieee.org/downloads/1076/1076-2008/1076-2008_machine-readable.zip
If I recall correctly they are available for personal use and can be
transferred person to person. (I had a copy, including the original zip
archive so I googled for the name).
There are 4 functions in std_standard that aren't in v93, plus some type
elaborations.
std_standard.o gets statically linked to your model.
>From the source distribution
http://ghdl.free.fr/ghdl-0.29.tar.bz2 :
In ghdl-0.29/vhdl/Makefile.in you can find where the libraries are built for
a distribution image.
Without work std_standard.o might not build up to date, or then again
Tristan could surprise us. Whether the other libraries would analyze or not
is a matter of dependencies on the standard library.
generating these targets would require the bootstrap option and the target
version. The destination locations are recoverable from the process making
a binary distribution (modified by your version's target location,
apparently either a Redhat or Debian variant build).
If you're seriously curious, let us know the results. I don't currently
have a ghdl-0.29 running.
All this was found by perusing the source code distribution and looking at
Tristan's binary Linux distribution for 0.29:
http://ghdl.free.fr/download.html
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss