Hello,
Am trying to compile a VPI with Icarus on a MAC. When I type: iverilog-vpi, I get:
/usr/local/bin/iverilog-vpi: line 23: -fcolor-diagnostics: command not found
The fix below seems to work:
if [[ $OSTYPE == 'darwin' ]]; then
CXX=clang++
else
CXX=clang++ -fcolor-diagnostics
fi
Please consider adding the fix. Or let me know if there is a better way.
Thanks
Srini
I don't see this in the Icarus source code. What file are you changing?
At tmy end I edited the bin/iverilog-vpi to get going (As I have admin previlages on this machine). I looked inside the source tar ball and am able to see same file at:
/Users/srini/tools/EDA/ivlog/verilog-10.0/iverilog-vpi
Can you please confirm? As I mentioned, the issue is minor and only on Mac.
Thanks
Srini
Last edit: Srinivasan Venkataramanan 2019-08-18
The source tarball does not contain a file named iverilog-vpi, nor any file containing the string "color-diagnostics":
iverilog-vpi is created when you run make. autoconf will be setting the CXX variable, based on local settings on your machine. You can override that when you run the configure script - run
configure --help
for details.Understood, thanks for the explanation.
No problem, and sorry it took so long to respond to this one.