chipsalliance / UHDM-integration-tests

Apache License 2.0
30 stars 8 forks source link

Cannot run Verilator Test #692

Open EngRaff92 opened 2 years ago

EngRaff92 commented 2 years ago

First off thanks so much for getting time to explore and fix Verilator build UHDM on Mac M1. I tried to run tests and I got library error (arm64): rm -rf /Users/raffaelemac/verilator/uhdm-integration/build mkdir -p /Users/raffaelemac/verilator/uhdm-integration/build mkdir -p /Users/raffaelemac/verilator/uhdm-integration/dumps (cd /Users/raffaelemac/verilator/uhdm-integration/build && \ /Users/raffaelemac/verilator/uhdm-integration/../image/bin/verilator \ \ --cc /Users/raffaelemac/verilator/uhdm-integration/tests/onenet/top.sv \ \ --top-module top \ --exe /Users/raffaelemac/verilator/uhdm-integration/tests/onenet/main.cpp --trace && \ make -j -C obj_dir -f Vtop.mk Vtop && \ obj_dir/Vtop ) g++ -I. -MMD -I/Users/raffaelemac/verilator//include -I/Users/raffaelemac/verilator//include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=c++17 -Os -c -o main.o /Users/raffaelemac/verilator/uhdm-integration/tests/onenet/main.cpp g++ -I. -MMD -I/Users/raffaelemac/verilator//include -I/Users/raffaelemac/verilator//include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=c++17 -Os -c -o verilated.o /Users/raffaelemac/verilator//include/verilated.cpp g++ -I. -MMD -I/Users/raffaelemac/verilator//include -I/Users/raffaelemac/verilator//include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=c++17 -Os -c -o verilated_vcd_c.o /Users/raffaelemac/verilator//include/verilated_vcd_c.cpp /usr/bin/perl /Users/raffaelemac/verilator//bin/verilator_includer -DVL_INCLUDE_OPT=include Vtop.cpp Vtop_024root__DepSet_h6944321b0.cpp VtopTrace0.cpp Vtop_024root_Slow.cpp Vtop024rootDepSet_h6944321b0Slow.cpp VtopSyms.cpp VtopTrace0Slow.cpp > VtopALL.cpp echo "" > VtopALL.verilator_deplist.tmp g++ -I. -MMD -I/Users/raffaelemac/verilator//include -I/Users/raffaelemac/verilator//include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=c++17 -Os -c -o VtopALL.o VtopALL.cpp Archive ar -rcs VtopALL.a VtopALL.o ar: @Vtop__ALL.a.verilator_deplist.tmp: No such file or directory g++ main.o verilated.o verilated_vcd_c.o VtopALL.a -o Vtop ld: file too small (length=8) file 'VtopALL.a' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [Vtop] Error 1 rm VtopALL.verilator_deplist.tmp make: *** [verilator/test-ast] Error 2

any idea on how to fix it ?

I ran the same test on a different design using CoCoTB and still the same issue. Seems like I cannot execute Verilator (at all regardless of the Design as long as it compiles).

Regards Raffaele