Open tkoenig1 opened 3 years ago
This is on Ubuntu 20.04 LTS. ghdl is:
$ ghdl --version
GHDL 0.37 (Ubuntu 0.37+dfsg-1ubuntu1) [Dunoon edition]
Compiled with GNAT Version: 9.3.0
mcode code generator
Written by Tristan Gingold.
Copyright (C) 2003 - 2020 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hmm! I'm still using v0.37-dev. Maybe there are some changes in the final version. I have to look at it.
I tested with v0.37 and all tests passed. Maybe your installation is not complete. One of the error messages says that libraries are not found.
This is standard ubuntu ghdl, with no modification. There is a possibility of this being buggy.
However, there is also an error message which might also be the cause of this build failure:
add.vhdl:3:10: unit "std_logic_unsigned" not found in library "ieee"
add.vhdl:3:10: (use --ieee=synopsys for non-standard synopsys packages)
The ghdl documentation states
IEEE library pitfalls
=====================
When you use options :option:`--ieee=synopsys <--ieee>`, the ``ieee`` library contains non standard packages such as
``std_logic_arith``.
These packages are not standard because there are not described by an IEEE standard, even if they have been put in the
`IEEE` library.
Furthermore, they are not really de-facto standard, because there are slight differences between the packages of Mentor
and those of Synopsys.
Furthermore, since they are not well thought out, their use has pitfalls.
The missing file being complained about is also some synopsis stuff, so that might be related.
Just wondering... what do you get when you ghdl --disp-config
? Maybe there is an option set
in your build environment that pulls in std_logic_arith
somehow?
I get
$ ghdl --disp-config
command_name: /usr/bin/ghdl-mcode
command line prefix (--PREFIX): (not set)
environment prefix (GHDL_PREFIX): (not set)
exec prefix (from program name): /usr
library prefix: /usr/lib/ghdl/mcode
library directory: /usr/lib/ghdl/mcode/vhdl
default library paths:
/usr/lib/ghdl/mcode/vhdl/ieee/v93/
/usr/lib/ghdl/mcode/vhdl/
I am hitting this in Ubuntu 20, but not on 22. I think it may have been addressed as part of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929656
Running "mvn install" from a clean build got me a few error messages:
The errors themselves, scrolling back, were (with a bit of context)
I also found a few more errors, upon rerunning:
with a few more errors like that.