试图在util/tlm中执行SCON时的汇编错误
我试图在UTIL/TLM下遵循README。以下是完成的步骤:
- SCONS BUILD/ARM/GEM5.OPT- 完成
- SCONS - with-cxx-config -without-python -without-without-tcmalloc use_systemc = 0 build/arm/arm/libgem5_opt。因此 - 完成
- cd util/tlm
- scons- error
当我从util/tlm内进行scons时,我会看到以下错误:
scons: Reading SConscript files ...
Checking whether __i386__ is declared... (cached) no
Checking whether __x86_64__ is declared... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/tlm/sc_master_port.o -c -std=c++17 -DSC_INCLUDE_DYNAMIC_PROCESSES -DTRACING_ON -I/home/gem5/build/ARM -I/home/gem5/util/systemc/gem5_within_systemc -I/home/gem5/ext/systemc/src -Isrc -Iexamples/common build/tlm/sc_master_port.cc
build/tlm/sc_master_port.cc: In member function 'void Gem5SystemC::SCMasterPort::b_transport(tlm::tlm_generic_payload&, sc_core::sc_time&)':
build/tlm/sc_master_port.cc:278:32: error: 'gem5::sim_clock' has not been declared
(double)(ticks / gem5::sim_clock::as_int::ps), sc_core::SC_PS);
^~~~~~~~~
scons: *** [build/tlm/sc_master_port.o] Error 1
scons: building terminated because of errors.
您能帮助我解决如何解决此问题?
I was trying to follow the README under util/tlm. Below are the steps completed:
- scons build/ARM/gem5.opt - completed
- scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so - completed
- cd util/tlm
- scons - error
when I do scons from within util/tlm I see the following error:
scons: Reading SConscript files ...
Checking whether __i386__ is declared... (cached) no
Checking whether __x86_64__ is declared... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/tlm/sc_master_port.o -c -std=c++17 -DSC_INCLUDE_DYNAMIC_PROCESSES -DTRACING_ON -I/home/gem5/build/ARM -I/home/gem5/util/systemc/gem5_within_systemc -I/home/gem5/ext/systemc/src -Isrc -Iexamples/common build/tlm/sc_master_port.cc
build/tlm/sc_master_port.cc: In member function 'void Gem5SystemC::SCMasterPort::b_transport(tlm::tlm_generic_payload&, sc_core::sc_time&)':
build/tlm/sc_master_port.cc:278:32: error: 'gem5::sim_clock' has not been declared
(double)(ticks / gem5::sim_clock::as_int::ps), sc_core::SC_PS);
^~~~~~~~~
scons: *** [build/tlm/sc_master_port.o] Error 1
scons: building terminated because of errors.
Can you please help me out with how to resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于上述错误,我在文件“ util/tlm/src/sc_master_port.cc”中添加了
#include“ sim/core.hh”
发布一些不同的文件中存在一些命名空间错误,我通过添加“
使用namespace gem5
”解决了这些空间错误。For the above bug, I added
#include "sim/core.hh"
in the file "util/tlm/src/sc_master_port.cc"Post that there are some namespace errors in few different files which I resolved by adding "
using namespace gem5
"