-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Dear author, when building fail with gem5 I met the following error:
$ make -j
Removing gem5 binary and CMake build stamp ...
[ 8%] Built target FailGem5_generation
[ 18%] Built target fail-protoc
[ 22%] Built target fail-comm
[ 22%] Built target gem5-force-re-linking
[ 24%] Built target fail-tracing
[ 38%] Built target fail-sal
[ 54%] Built target fail-util
[ 59%] Built target fail-weather-monitor
[ 60%] Building CXX object src/core/efw/CMakeFiles/fail-efw.dir/DatabaseExperiment.cc.o
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:41:2: error: unknown type name 'BX_CPU_C'
BX_CPU_C *cpu_context = simulator.getCPUContext();
^
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:41:36: error: no member named 'getCPUContext' in 'fail::Gem5Controller'; did you mean 'getCPUCount'?
BX_CPU_C *cpu_context = simulator.getCPUContext();
^~~~~~~~~~~~~
getCPUCount
/home/fxm/fail/src/core/sal/gem5/../SimulatorController.hpp:172:9: note: 'getCPUCount' declared here
size_t getCPUCount() const { return m_CPUs.size(); }
^
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:46:2: error: unknown type name 'bxInstruction_c'
bxInstruction_c *currInstr = simulator.getCurrentInstruction();
^
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:46:41: error: no member named 'getCurrentInstruction' in 'fail::Gem5Controller'
bxInstruction_c *currInstr = simulator.getCurrentInstruction();
~~~~~~~~~ ^
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:51:2: error: unknown type name 'Bit8u'
Bit8u instr_plain[15];
^
/home/fxm/fail/src/core/efw/DatabaseExperiment.cc:88:74: error: use of undeclared identifier 'RID_PC'
simulator.getCPU(0).setRegisterContent(simulator.getCPU(0).getRegister(RID_PC), new_PC);
^
error: Execution failed: "/usr/bin/ac++" --system-config "/tmp/agxx_pcfgjrLJTD" -D "_FILE_OFFSET_BITS=64" -I "/home/fxm/fail/simulators/gem5/src" -I "/home/fxm/fail/simulators/gem5/build/ARM" -I "/home/fxm/fail/build/src/core" -I "/home/fxm/fail/build/src/core/comm" -I "/home/fxm/fail/src/core" -p "/home/fxm/fail/src" -p "/home/fxm/fail/simulators" -p "/home/fxm/fail/debuggers" -p "/home/fxm/fail/tools" -p "/home/fxm/fail/build/src" -D "__NO_MATH_INLINES" -D "NDEBUG" -I "/usr/include/mysql" -I "/usr/include/SDL" -c "/home/fxm/fail/src/core/efw/DatabaseExperiment.cc" -o "/tmp/DatabaseExperiment.cc_agxx_cJpPbH"
src/core/efw/CMakeFiles/fail-efw.dir/build.make:110: recipe for target 'src/core/efw/CMakeFiles/fail-efw.dir/DatabaseExperiment.cc.o' failed
make[2]: *** [src/core/efw/CMakeFiles/fail-efw.dir/DatabaseExperiment.cc.o] Error 1
CMakeFiles/Makefile2:637: recipe for target 'src/core/efw/CMakeFiles/fail-efw.dir/all' failed
make[1]: *** [src/core/efw/CMakeFiles/fail-efw.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Also attached the CMakeCache.txt file.
Can you please help me with the issue? Thanks a lot in advance!
Metadata
Metadata
Assignees
Labels
No labels