Closed drom closed 5 years ago
do you have verilator and python installed?
npm run compile should output this
npm run compile
> veri-js@1.0.0 compile /home/qubits/proj/veri-js
> make verilate && cd obj_dir && make -f ../Makefile_obj createlib
-- Verilator tracing example
-- VERILATE ----------------
verilator -cc --exe -O2 -x-assign 0 -Wall --trace --assert --coverage -f src/input.vc src/top.sv
created lib
archiving to verilator_global_libs.a
ar r verilator_global_libs.a *.o
With the latest code npm run compile
is ok, but npm run all
is failing:
> veri-js@1.0.0 test /home/drom/work/github/ameetgohil/veri-js
> node index.js
Enabling waves into logs/vlt_dump.vcd...
node: symbol lookup error: /home/drom/work/github/ameetgohil/veri-js/build/Release/dut.node: undefined symbol: _ZN9Verilated5mkdirEPKc
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! veri-js@1.0.0 test: `node index.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the veri-js@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/drom/.npm/_logs/2018-12-22T05_23_10_151Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! veri-js@1.0.0 all: `npm run clean && npm run compile && npm run build && npm run test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the veri-js@1.0.0 all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/drom/.npm/_logs/2018-12-22T05_23_10_165Z-debug.log
drom@linux-sydi:~/work/github/ameetgohil/veri-js>
What is the output of the command npm run build
?
Also, does the folder "/usr/local/share/verilator/include" exist?
It works with the latest Verilator v4.008 but not with the v3.922
yes, I had 4.007 in the /usr/local/share/verilator/include
path.
You should not assume that Verilator is installed globally this way.
https://www.veripool.org/projects/verilator/wiki/Installing
Look at the README file in the source:
https://github.com/sifive/verilator/blob/master/README.pod#installation
Opening separate issue for the include path #8
npm run compile
2018-12-18T20_52_51_117Z-debug.log