bluespec / Piccolo

RISC-V CPU, simple 3-stage pipeline, for low-end applications (e.g., embedded, IoT)
Apache License 2.0
301 stars 48 forks source link

Can't run simulator, missing symbol _Z27dollar_test_dollar_plusargsP9tSimStatePKcPKSs #28

Closed hlandau closed 4 years ago

hlandau commented 4 years ago
$ git clone https://github.com/nixos/nixpkgs
$ nix-shell -I nixpkgs=`pwd`/nixpkgs -p bluespec verilog
$ git clone https://github.com/bluespec/Piccolo
$ cd Piccolo/builds/RV32ACIMU_Piccolo_bluesim
$ make compile
$ make simulator
$ ./exe_HW_sim
Error: dlopen: ./exe_HW_sim.so: undefined symbol: _Z27dollar_test_dollar_plusargsP9tSimStatePKcPKSs
    invoked from within
"sim load $model_name $top_module"
    invoked from within
"if {$wait} {
sim load $model_name $top_module wait
} else {
sim load $model_name $top_module
}"
    (file "/nix/store/p4byndpkpmd2blkqzk0l9wv9g1n3lfwz-bluespec-unstable-2020.02.09/lib/tcllib/bluespec/bluesim.tcl" line 193)
rsnikhil commented 4 years ago

Apologies for the hassle. The is a C compiler version issue (version used to build the bsc release, vs. version one used while building Piccolo for Bluesim). I have added a section at the bottom of the README that explains how to work around this. Please try it; hopefully it works for you!

dipal004 commented 2 years ago

Apologies for the hassle. The is a C compiler version issue (version used to build the bsc release, vs. version one used while building Piccolo for Bluesim). I have added a section at the bottom of the README that explains how to work around this. Please try it; hopefully it works for you! hi @rsnikhil can you please tell me where the readme file is? Thank you