jhxu001 / MHSim

A Simulation Framework for Memristor-based Heterogeneous Computing Architectures
0 stars 2 forks source link

ERROR during compilation #1

Open saba-er opened 2 years ago

saba-er commented 2 years ago

I have implemented all the steps for compiling the repo, however I encounter this error: build/opt/debug_zsim.cpp:28:10: fatal error: gelf.h: No such file or directory I have checked and gelf.h is in the defined path. Then, I tried libelf-dev instead of libelf. The above error disappear but I encounter some other errors: /usr/include/x86_64-linux-gnu/bits/signum.h:23:2: error: #error "Never include <bits/signum.h> directly; use instead."

jhxu001 commented 2 years ago

Maybe you could comment codes in "/usr/include/x86_64-linux-gnu/bits/signum.h" like the follow: //#ifndef _SIGNAL_H //#error "Never include <bits/signum.h> directly; use instead." //#endif

saba-er commented 2 years ago

Thanks! It compiled! However when I run ./build/opt/zsim tests/mba.cfg, the last 3 lines looks like this: Pin app terminated abnormally due to signal 6. [H] Child 172563 done [H] Panic on build/opt/zsim_harness.cpp:123: Child 172563 (idx 0) exit was anomalous, killing simulation. Please note that I have not specified any caffe model in the cfg file. It this normal?

duanhx1037 commented 1 year ago

Thanks! It compiled! However when I run ./build/opt/zsim tests/mba.cfg, the last 3 lines looks like this: Pin app terminated abnormally due to signal 6. [H] Child 172563 done [H] Panic on build/opt/zsim_harness.cpp:123: Child 172563 (idx 0) exit was anomalous, killing simulation. Please note that I have not specified any caffe model in the cfg file. It this normal?

I got the same problem. Have you found a solution?