building verilator from source package #1597
Labels
area: configure/compiling
Issue involves configuring or compilating Verilator itself
resolution: no fix needed
Closed; no fix required (not a bug)
Author Name: thomas arndt
Original Redmine Issue: 1597 from https://www.veripool.org
Dear Community,
I've compiled the Verilator from scratch.
Untar the verilator-4.016.tgz.
cd /home/myhome/mylocation
setenv PWD_PATH
pwd
tar xfz verilator-4.016.tgz
cd verilator-4.016
./configure --prefix=${PWD_PATH}/verilator --build=x86_64-pc-linux-gnu
make
make install
If I'm done with that I see:
/home/myhome/mylocation/verilator
- bin
- share - verilator - bin
- include
Then due to a intended reason I've copy the verilator folder to another location
/tools/anotherlocation/verilator
setting VERILATOR_ROOT to /tools/anotherlocation/verilator
The shipped examples fail with a no such file or directory error, since it tries to find the verilator.mk
file at the wrong location: /tools/anotherlocation/verilator/include/verilated.mk
The correct folder is: /tools/anotherlocation/verilator/share/verilator/include/verilated.mk
To solve this issue I've copied
and
This works then...
Is there a better solution to achive the correct behaviour?
BTW: Under mingw-w64 the installation structure is the same.
The above descibed problem does not exist there (no copy of the include folder).
BUT:
There it fails due to a unknown compiler option "-faligned-new" - remove it from verilated.mk file solves this issue.
(gcc-4.9.4)
CFG_CXXFLAGS_NO_UNUSED = -faligned-new -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow
Could you please help me in this case?
KR,
Thomas
The text was updated successfully, but these errors were encountered: