我最初有 python3.8,并成功编译了 gem5 (X86 和 ARM)。然后我添加了 python2.7 来运行一些模型。现在,当我尝试使用以下命令编译 gem5 时,出现了之前没有出现过的错误:
scons build/ARM/gem5.opt
scons build/X86/gem5.opt
错误是:
Checking for compiler -Wno-self-assign-overloaded support... (cached) yes
AttributeError: Flag Checkpoint already specified:
File "/home/ahmed/gem5/SConstruct", line 731:
SConscript('src/SConscript', variant_dir=variant_path, exports=exports)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/ahmed/gem5/build/ARM/SConscript", line 466:
SConscript(os.path.join(root, 'SConscript'), variant_dir=build_dir)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 660:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/ahmed/gem5/build/ARM/sim/OriginalJwan/SConscript", line 114:
DebugFlag('Checkpoint')
File "/home/ahmed/gem5/build/ARM/SConscript", line 429:
DebugFlagCommon(name, (), desc, fmt, tags=tags, add_tags=add_tags)
File "/home/ahmed/gem5/build/ARM/SConscript", line 400:
raise AttributeError(f'Flag {name} already specified')
是不是因为添加了额外的 Python 版本?有什么解决办法吗?