试图在util/tlm中执行SCON时的汇编错误

发布于 2025-02-07 05:51:46 字数 1271 浏览 1 评论 0原文

我试图在UTIL/TLM下遵循README。以下是完成的步骤:

  1. SCONS BUILD/ARM/GEM5.OPT- 完成
  2. SCONS - with-cxx-config -without-python -without-without-tcmalloc use_systemc = 0 build/arm/arm/libgem5_opt。因此 - 完成
  3. cd util/tlm
  4. 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:

  1. scons build/ARM/gem5.opt - completed
  2. scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so - completed
  3. cd util/tlm
  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扭转时空 2025-02-14 05:51:46

对于上述错误,我在文件“ 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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文