我克隆了这个https://gem5.googlesource.com/public/gem5并在gem5目录中运行了scons build / X86 / gem5.opt -j5。我得到
scons:建筑物因错误而终止。
错误日志的片段:
In file included from build/X86/arch/x86/interrupts.hh:58,
from build/X86/arch/interrupts.hh:1,
from build/X86/cpu/base.hh:57,
from build/X86/mem/abstract_mem.cc:50:
build/X86/arch/x86/intmessage.hh: In function 'Packet* X86ISA::buildIntRequest(uint8_t, X86ISA::TriggerIntMessage)':
build/X86/arch/x86/intmessage.hh:105:42: error: implicitly-declared 'constexpr BitfieldBackend::BitUnionOperators<X86ISA::BitfieldUnderlyingClassesTriggerIntMessage>::BitUnionOperators(const
BitfieldBackend::BitUnionOperators<X86ISA::BitfieldUnderlyingClassesTriggerIntMessage>&)' is deprecated [-Werror=deprecated-copy]
105 | sizeof(TriggerIntMessage));
另一个摘要:
In file included from build/X86/cpu/base.hh:64,
from build/X86/mem/abstract_mem.cc:50:
build/X86/sim/insttracer.hh: In member function 'void Trace::InstRecord::setData(VecRegContainer<8>&)':
build/X86/sim/insttracer.hh:203:71: error: implicitly-declared 'constexpr VecRegContainer<8>::VecRegContainer(const VecRegContainer<8>&)' is deprecated [-Werror=deprecated-copy]
203 | data.as_vec = new ::VecRegContainer<TheISA::VecRegSizeBytes>(d);
警告:
MI_example-cache.sm:179: Warning: Non-void return ignored, return type is 'bool'
MI_example-cache.sm:181: Warning: Non-void return ignored, return type is 'bool'
MI_example-cache.sm:336: Warning: Non-void return ignored, return type is 'Tick'
MI_example-cache.sm:350: Warning: Non-void return ignored, return type is 'Scalar'
MI_example-cache.sm:354: Warning: Non-void return ignored, return type is 'Scalar'
MI_example-dir.sm:183: Warning: Non-void return ignored, return type is 'bool'
MI_example-dir.sm:398: Warning: Non-void return ignored, return type is 'Tick'
MI_example-dir.sm:402: Warning: Non-void return ignored, return type is 'Tick'
MI_example-dir.sm:482: Warning: Non-void return ignored, return type is 'Tick'
MI_example-dir.sm:277: Warning: Unused action: a_sendWriteBackAck, Send writeback ack to requestor
MI_example-dma.sm:189: Warning: Non-void return ignored, return type is 'Tick'
MI_example-dma.sm:193: Warning: Non-void return ignored, return type is 'Tick'
> git SHA:af8d107191cc69a77624e2af34f108dc9c1ff03f
OS: Archlinux 5.1.11-arch1-1-ARCH
它以前可以在我的计算机上以相同的程序运行。它可以在我的其他系统上运行。