- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在按照官方文档中的指示构建 gem5 时遇到了很多问题。
这些是我用过的命令:
git clone https://gem5.googlesource.com/public/gem5
cd gem5
python2 `which scons` build/MIPS/gem5.opt
导致此输出:
scons: Reading SConscript files ...
Warning: Your compiler doesn't support incremental linking and lto at the same time, so lto is being disabled. To force lto on anyway, use the --force-lto option. That will disable partial linking.
Checking for C header file Python.h... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf... (cached) yes
Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) yes
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None... (cached) no
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt... (cached) yes
Checking for C library tcmalloc... (cached) yes
Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library None... (cached) yes
Checking for C header file fenv.h... (cached) yes
Checking for C header file png.h... (cached) yes
Checking for C header file linux/kvm.h... (cached) yes
Checking for C header file linux/if_tun.h... (cached) yes
Checking size of struct kvm_xsave ... (cached) yes
Checking for member exclude_host in struct perf_event_attr...(cached) yes
Checking whether __i386__ is declared... (cached) no
Checking whether __x86_64__ is declared... (cached) yes
Building in /home/j/gem5/build/MIPS
Using saved variables file /home/j/gem5/build/variables/MIPS
scons: done reading SConscript files.
scons: Building targets ...
[ CXX] MIPS/dev/serial/serial.cc -> .o
In file included from build/MIPS/sim/sim_object.hh:57:0,
from build/MIPS/dev/serial/serial.hh:44,
from build/MIPS/dev/serial/serial.cc:40:
build/MIPS/sim/eventq.hh:806:12: error: 'function' in namespace 'std' does not name a template type
std::function<void(void)> callback;
^~~~~~~~
build/MIPS/sim/eventq.hh:810:37: error: 'function' in namespace 'std' does not name a template type
EventFunctionWrapper(const std::function<void(void)> &callback,
^~~~~~~~
build/MIPS/sim/eventq.hh:810:45: error: expected ',' or '...' before '<' token
EventFunctionWrapper(const std::function<void(void)> &callback,
^
build/MIPS/sim/eventq.hh: In constructor 'EventFunctionWrapper::EventFunctionWrapper(int)':
build/MIPS/sim/eventq.hh:814:17: error: 'p' was not declared in this scope
: Event(p), callback(callback), _name(name)
^
build/MIPS/sim/eventq.hh:814:21: error: class 'EventFunctionWrapper' does not have any field named 'callback'
: Event(p), callback(callback), _name(name)
^~~~~~~~
build/MIPS/sim/eventq.hh:814:30: error: 'callback' was not declared in this scope
: Event(p), callback(callback), _name(name)
^~~~~~~~
build/MIPS/sim/eventq.hh:814:30: note: suggested alternative: 'Callback'
: Event(p), callback(callback), _name(name)
^~~~~~~~
Callback
build/MIPS/sim/eventq.hh:814:51: error: invalid use of non-static member function 'virtual const string EventFunctionWrapper::name() const'
: Event(p), callback(callback), _name(name)
^
build/MIPS/sim/eventq.hh:823:5: note: declared here
name() const
^~~~
build/MIPS/sim/eventq.hh:816:13: error: 'del' was not declared in this scope
if (del)
^~~
build/MIPS/sim/eventq.hh: In member function 'virtual void EventFunctionWrapper::process()':
build/MIPS/sim/eventq.hh:820:22: error: 'callback' was not declared in this scope
void process() { callback(); }
^~~~~~~~
build/MIPS/sim/eventq.hh:820:22: note: suggested alternative: 'Callback'
void process() { callback(); }
^~~~~~~~
Callback
scons: *** [build/MIPS/dev/serial/serial.o] Error 1
scons: building terminated because of errors.
gcc 和 g++ 版本:
gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0
g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0
硬件:
OS: Ubuntu 17.10 x86_64
Host: XPS 15 9560
Kernel: 4.13.0-16-generic
CPU: Intel i7-7700HQ (8) @ 3.800GHz
GPU: NVIDIA GeForce GTX 1050 Mobile
GPU: Intel Integrated Graphics
Memory: 4688MiB / 15771MiB
GPU: Intel Integrated Memory: 4688MiB / 15771MiB
我尝试添加
#include <functional>
在读到 gcc7 在 header 上比以前的版本宽松得多之后到 ~/gem5/build/MIPS/sim/eventq.hh,但我不确定这是否有帮助,因为它只是产生了一个不同的问题:
scons: Reading SConscript files ...
Warning: Your compiler doesn't support incremental linking and lto at the same time, so lto is being disabled. To force lto on anyway, use the --force-lto option. That will disable partial linking.
Checking for C header file Python.h... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf... (cached) yes
Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) yes
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None... (cached) no
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt... (cached) yes
Checking for C library tcmalloc... (cached) yes
Checking for backtrace_symbols_fd((void*)0, 0, 0) in C library None... (cached) yes
Checking for C header file fenv.h... (cached) yes
Checking for C header file png.h... (cached) yes
Checking for C header file linux/kvm.h... (cached) yes
Checking for C header file linux/if_tun.h... (cached) yes
Checking size of struct kvm_xsave ... (cached) yes
Checking for member exclude_host in struct perf_event_attr...(cached) yes
Checking whether __i386__ is declared... (cached) no
Checking whether __x86_64__ is declared... (cached) yes
Building in /home/j/gem5/build/MIPS
Using saved variables file /home/j/gem5/build/variables/MIPS
scons: done reading SConscript files.
scons: Building targets ...
[ CXX] MIPS/dev/serial/serial.cc -> .o
[ TRACING] -> MIPS/debug/Terminal.hh
[ TRACING] -> MIPS/debug/TerminalVerbose.hh
[SO PARAM] Platform -> MIPS/params/Platform.hh
[SO PARAM] Terminal -> MIPS/params/Terminal.hh
[SO PARAM] Uart -> MIPS/params/Uart.hh
[SO PARAM] IntrControl -> MIPS/params/IntrControl.hh
[SO PARAM] BasicPioDevice -> MIPS/params/BasicPioDevice.hh
[SO PARAM] PioDevice -> MIPS/params/PioDevice.hh
[GENERATE] mips -> MIPS/arch/isa_traits.hh
[ CFG ISA] -> MIPS/config/the_isa.hh
[ENUMDECL] MemoryMode -> MIPS/enums/MemoryMode.hh
[SO PARAM] System -> MIPS/params/System.hh
[SO PARAM] MemObject -> MIPS/params/MemObject.hh
[ENUMDECL] PwrState -> MIPS/enums/PwrState.hh
[SO PARAM] ClockedObject -> MIPS/params/ClockedObject.hh
[GENERATE] mips -> MIPS/arch/registers.hh
[GENERATE] mips -> MIPS/arch/types.hh
[SO PARAM] ClockDomain -> MIPS/params/ClockDomain.hh
[SO PARAM] DerivedClockDomain -> MIPS/params/DerivedClockDomain.hh
[SO PARAM] SrcClockDomain -> MIPS/params/SrcClockDomain.hh
[SO PARAM] AbstractMemory -> MIPS/params/AbstractMemory.hh
[SO PARAM] ThermalModel -> MIPS/params/ThermalModel.hh
[SO PARAM] PowerModel -> MIPS/params/PowerModel.hh
[SO PARAM] VoltageDomain -> MIPS/params/VoltageDomain.hh
[ISA DESC] MIPS/arch/mips/isa/main.isa -> generated/decoder-g.cc.inc, generated/decoder-ns.cc.inc, generated/decode-method.cc.inc, generated/decoder.hh, generated/decoder-g.hh.inc, generated/decoder-ns.hh.inc, generated/exec-g.cc.inc, generated/exec-ns.cc.inc, generated/max_inst_regs.hh, generated/decoder.cc, generated/inst-constrs.cc, generated/generic_cpu_exec.cc
[SO PARAM] PowerModelState -> MIPS/params/PowerModelState.hh
[SO PARAM] SubSystem -> MIPS/params/SubSystem.hh
[SO PARAM] ThermalDomain -> MIPS/params/ThermalDomain.hh
[ CXX] MIPS/dev/serial/terminal.cc -> .o
[ CXX] MIPS/dev/serial/uart.cc -> .o
[ TRACING] -> MIPS/debug/Uart.hh
[SO PARAM] Uart8250 -> MIPS/params/Uart8250.hh
[ CXX] MIPS/dev/serial/uart8250.cc -> .o
[ LINK] -> MIPS/dev/serial/lib.o.partial
[GENERATE] mips -> MIPS/arch/decoder.hh
[ENUMDECL] StaticInstFlags -> MIPS/enums/StaticInstFlags.hh
[ENUMDECL] OpClass -> MIPS/enums/OpClass.hh
[ CXX] MIPS/arch/generic/decode_cache.cc -> .o
[ CXX] MIPS/arch/generic/mmapped_ipr.cc -> .o
[GENERATE] mips -> MIPS/arch/tlb.hh
[SO PARAM] MipsTLB -> MIPS/params/MipsTLB.hh
[SO PARAM] BaseTLB -> MIPS/params/BaseTLB.hh
[ CXX] MIPS/arch/generic/tlb.cc -> .o
[ CXX] MIPS/arch/generic/pseudo_inst.cc -> .o
[ LINK] -> MIPS/arch/generic/lib.o.partial
[ SLICC] src/mem/protocol/MI_example.slicc -> MIPS/mem/protocol/AccessPermission.cc, MIPS/mem/protocol/AccessPermission.hh, MIPS/mem/protocol/AccessType.cc, MIPS/mem/protocol/AccessType.hh, MIPS/mem/protocol/CacheRequestType.cc, MIPS/mem/protocol/CacheRequestType.hh, MIPS/mem/protocol/CacheResourceType.cc, MIPS/mem/protocol/CacheResourceType.hh, MIPS/mem/protocol/CoherenceRequestType.cc, MIPS/mem/protocol/CoherenceRequestType.hh, MIPS/mem/protocol/CoherenceResponseType.cc, MIPS/mem/protocol/CoherenceResponseType.hh, MIPS/mem/protocol/DMARequestMsg.cc, MIPS/mem/protocol/DMARequestMsg.hh, MIPS/mem/protocol/DMARequestType.cc, MIPS/mem/protocol/DMARequestType.hh, MIPS/mem/protocol/DMAResponseMsg.cc, MIPS/mem/protocol/DMAResponseMsg.hh, MIPS/mem/protocol/DMAResponseType.cc, MIPS/mem/protocol/DMAResponseType.hh, MIPS/mem/protocol/DMASequencerRequestType.cc, MIPS/mem/protocol/DMASequencerRequestType.hh, MIPS/mem/protocol/DMA_Controller.cc, MIPS/mem/protocol/DMA_Controller.hh, MIPS/mem/protocol/DMA_Controller.py, MIPS/mem/protocol/DMA_Event.cc, MIPS/mem/protocol/DMA_Event.hh, MIPS/mem/protocol/DMA_State.cc, MIPS/mem/protocol/DMA_State.hh, MIPS/mem/protocol/DMA_TBE.cc, MIPS/mem/protocol/DMA_TBE.hh, MIPS/mem/protocol/DMA_Transitions.cc, MIPS/mem/protocol/DMA_Wakeup.cc, MIPS/mem/protocol/DirectoryRequestType.cc, MIPS/mem/protocol/DirectoryRequestType.hh, MIPS/mem/protocol/Directory_Controller.cc, MIPS/mem/protocol/Directory_Controller.hh, MIPS/mem/protocol/Directory_Controller.py, MIPS/mem/protocol/Directory_Entry.cc, MIPS/mem/protocol/Directory_Entry.hh, MIPS/mem/protocol/Directory_Event.cc, MIPS/mem/protocol/Directory_Event.hh, MIPS/mem/protocol/Directory_State.cc, MIPS/mem/protocol/Directory_State.hh, MIPS/mem/protocol/Directory_TBE.cc, MIPS/mem/protocol/Directory_TBE.hh, MIPS/mem/protocol/Directory_Transitions.cc, MIPS/mem/protocol/Directory_Wakeup.cc, MIPS/mem/protocol/HSAScope.cc, MIPS/mem/protocol/HSAScope.hh, MIPS/mem/protocol/HSASegment.cc, MIPS/mem/protocol/HSASegment.hh, MIPS/mem/protocol/InvalidateGeneratorStatus.cc, MIPS/mem/protocol/InvalidateGeneratorStatus.hh, MIPS/mem/protocol/L1Cache_Controller.cc, MIPS/mem/protocol/L1Cache_Controller.hh, MIPS/mem/protocol/L1Cache_Controller.py, MIPS/mem/protocol/L1Cache_Entry.cc, MIPS/mem/protocol/L1Cache_Entry.hh, MIPS/mem/protocol/L1Cache_Event.cc, MIPS/mem/protocol/L1Cache_Event.hh, MIPS/mem/protocol/L1Cache_State.cc, MIPS/mem/protocol/L1Cache_State.hh, MIPS/mem/protocol/L1Cache_TBE.cc, MIPS/mem/protocol/L1Cache_TBE.hh, MIPS/mem/protocol/L1Cache_Transitions.cc, MIPS/mem/protocol/L1Cache_Wakeup.cc, MIPS/mem/protocol/LinkDirection.cc, MIPS/mem/protocol/LinkDirection.hh, MIPS/mem/protocol/LockStatus.cc, MIPS/mem/protocol/LockStatus.hh, MIPS/mem/protocol/MachineType.cc, MIPS/mem/protocol/MachineType.hh, MIPS/mem/protocol/MaskPredictorIndex.cc, MIPS/mem/protocol/MaskPredictorIndex.hh, MIPS/mem/protocol/MaskPredictorTraining.cc, MIPS/mem/protocol/MaskPredictorTraining.hh, MIPS/mem/protocol/MaskPredictorType.cc, MIPS/mem/protocol/MaskPredictorType.hh, MIPS/mem/protocol/MemoryControlRequestType.cc, MIPS/mem/protocol/MemoryControlRequestType.hh, MIPS/mem/protocol/MemoryMsg.cc, MIPS/mem/protocol/MemoryMsg.hh, MIPS/mem/protocol/MemoryRequestType.cc, MIPS/mem/protocol/MemoryRequestType.hh, MIPS/mem/protocol/MessageSizeType.cc, MIPS/mem/protocol/MessageSizeType.hh, MIPS/mem/protocol/PrefetchBit.cc, MIPS/mem/protocol/PrefetchBit.hh, MIPS/mem/protocol/RequestMsg.cc, MIPS/mem/protocol/RequestMsg.hh, MIPS/mem/protocol/RequestStatus.cc, MIPS/mem/protocol/RequestStatus.hh, MIPS/mem/protocol/ResponseMsg.cc, MIPS/mem/protocol/ResponseMsg.hh, MIPS/mem/protocol/RubyAccessMode.cc, MIPS/mem/protocol/RubyAccessMode.hh, MIPS/mem/protocol/RubyRequestType.cc, MIPS/mem/protocol/RubyRequestType.hh, MIPS/mem/protocol/SequencerMsg.cc, MIPS/mem/protocol/SequencerMsg.hh, MIPS/mem/protocol/SequencerRequestType.cc, MIPS/mem/protocol/SequencerRequestType.hh, MIPS/mem/protocol/SequencerStatus.cc, MIPS/mem/protocol/SequencerStatus.hh, MIPS/mem/protocol/SeriesRequestGeneratorStatus.cc, MIPS/mem/protocol/SeriesRequestGeneratorStatus.hh, MIPS/mem/protocol/TesterStatus.cc, MIPS/mem/protocol/TesterStatus.hh, MIPS/mem/protocol/TransitionResult.cc, MIPS/mem/protocol/TransitionResult.hh, MIPS/mem/protocol/Types.hh
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'
[ CXX] MIPS/mem/ruby/profiler/AccessTraceForAddress.cc -> .o
[MAKE INC] MIPS/mem/ruby/slicc_interface/Message.hh -> protocol/Message.hh
[SO PARAM] RubySystem -> MIPS/params/RubySystem.hh
[SO PARAM] RubyController -> MIPS/params/RubyController.hh
[ TRACING] -> MIPS/debug/RubyQueue.hh
[SO PARAM] MessageBuffer -> MIPS/params/MessageBuffer.hh
[SO PARAM] SimpleMemory -> MIPS/params/SimpleMemory.hh
[MAKE INC] MIPS/mem/ruby/slicc_interface/RubyRequest.hh -> protocol/RubyRequest.hh
[ CXX] MIPS/mem/ruby/profiler/AddressProfiler.cc -> .o
[SO PARAM] RubyNetwork -> MIPS/params/RubyNetwork.hh
[SO PARAM] RubySequencer -> MIPS/params/RubySequencer.hh
[SO PARAM] RubyCache -> MIPS/params/RubyCache.hh
[SO PARAM] RubyPort -> MIPS/params/RubyPort.hh
[SO PARAM] BasicExtLink -> MIPS/params/BasicExtLink.hh
[SO PARAM] BasicIntLink -> MIPS/params/BasicIntLink.hh
[SO PARAM] BasicLink -> MIPS/params/BasicLink.hh
[SO PARAM] ReplacementPolicy -> MIPS/params/ReplacementPolicy.hh
[SO PARAM] BasicRouter -> MIPS/params/BasicRouter.hh
[SO PARAM] RubyDirectoryMemory -> MIPS/params/RubyDirectoryMemory.hh
[ CXX] MIPS/mem/ruby/profiler/Profiler.cc -> .o
[ CXX] MIPS/mem/ruby/profiler/StoreTrace.cc -> .o
[ LINK] -> MIPS/mem/ruby/profiler/lib.o.partial
[GENERATE] mips -> MIPS/arch/utility.hh
[ TRACING] -> MIPS/debug/Branch.hh
[SO PARAM] BranchPredictor -> MIPS/params/BranchPredictor.hh
[ CXX] MIPS/cpu/pred/bpred_unit.cc -> .o
[ TRACING] -> MIPS/debug/Fetch.hh
[SO PARAM] LocalBP -> MIPS/params/LocalBP.hh
[ CXX] MIPS/cpu/pred/2bit_local.cc -> .o
[ CXX] MIPS/cpu/pred/btb.cc -> .o
[ TRACING] -> MIPS/debug/Indirect.hh
[ CXX] MIPS/cpu/pred/indirect.cc -> .o
[ CXX] MIPS/cpu/pred/ras.cc -> .o
[SO PARAM] TournamentBP -> MIPS/params/TournamentBP.hh
[ CXX] MIPS/cpu/pred/tournament.cc -> .o
[SO PARAM] BiModeBP -> MIPS/params/BiModeBP.hh
[ CXX] MIPS/cpu/pred/bi_mode.cc -> .o
[ TRACING] -> MIPS/debug/LTage.hh
[SO PARAM] LTAGE -> MIPS/params/LTAGE.hh
[ CXX] MIPS/cpu/pred/ltage.cc -> .o
[ LINK] -> MIPS/cpu/pred/lib.o.partial
[ TRACING] -> MIPS/debug/TraceCPUData.hh
[ TRACING] -> MIPS/debug/TraceCPUInst.hh
[SO PARAM] TraceCPU -> MIPS/params/TraceCPU.hh
[ PROTOC] MIPS/proto/inst_dep_record.proto -> MIPS/proto/inst_dep_record.pb.cc, MIPS/proto/inst_dep_record.pb.h
[ PROTOC] MIPS/proto/packet.proto -> MIPS/proto/packet.pb.cc, MIPS/proto/packet.pb.h
[GENERATE] mips -> MIPS/arch/interrupts.hh
[GENERATE] mips -> MIPS/arch/microcode_rom.hh
[ TRACING] -> MIPS/debug/Mwait.hh
[SO PARAM] BaseCPU -> MIPS/params/BaseCPU.hh
[SO PARAM] MipsInterrupts -> MIPS/params/MipsInterrupts.hh
[ TRACING] -> MIPS/debug/MipsPRA.hh
[SO PARAM] InstTracer -> MIPS/params/InstTracer.hh
[SO PARAM] MipsISA -> MIPS/params/MipsISA.hh
[SO PARAM] Process -> MIPS/params/Process.hh
[SO PARAM] EmulatedDriver -> MIPS/params/EmulatedDriver.hh
[ CXX] MIPS/cpu/trace/trace_cpu.cc -> .o
[ LINK] -> MIPS/cpu/trace/lib.o.partial
[ CXX] MIPS/sim/arguments.cc -> .o
[ CXX] MIPS/sim/async.cc -> .o
[ CXX] MIPS/sim/backtrace_glibc.cc -> .o
[ CXX] MIPS/sim/core.cc -> .o
[VER TAGS] -> MIPS/sim/tags.cc
[ CXX] MIPS/sim/tags.cc -> .o
[ CXX] MIPS/sim/cxx_config.cc -> .o
[ TRACING] -> MIPS/debug/CxxConfig.hh
[ CXX] MIPS/sim/cxx_manager.cc -> .o
[ CXX] MIPS/sim/cxx_config_ini.cc -> .o
[ CXX] MIPS/sim/debug.cc -> .o
[ CXX] MIPS/sim/py_interact.cc -> .o
[ TRACING] -> MIPS/debug/Checkpoint.hh
[ CXX] MIPS/sim/eventq.cc -> .o
[ CXX] MIPS/sim/global_event.cc -> .o
[CONFIG H] HAVE_PROTOBUF, 1 -> MIPS/config/have_protobuf.hh
[ CXX] MIPS/sim/init.cc -> .o
[ CXX] MIPS/sim/init_signals.cc -> .o
[ TRACING] -> MIPS/debug/TimeSync.hh
[SO PARAM] Root -> MIPS/params/Root.hh
[ CXX] MIPS/sim/root.cc -> .o
[ CXX] MIPS/sim/serialize.cc -> .o
[ TRACING] -> MIPS/debug/Drain.hh
[ CXX] MIPS/sim/drain.cc -> .o
[ CXX] MIPS/sim/sim_events.cc -> .o
[ CXX] MIPS/sim/sim_object.cc -> .o
[ CXX] MIPS/sim/sub_system.cc -> .o
[SO PARAM] TickedObject -> MIPS/params/TickedObject.hh
[ CXX] MIPS/sim/ticked_object.cc -> .o
[ CXX] MIPS/sim/simulate.cc -> .o
[ CXX] MIPS/sim/stat_control.cc -> .o
[ CXX] MIPS/sim/stat_register.cc -> .o
[ TRACING] -> MIPS/debug/ClockDomain.hh
[ CXX] MIPS/sim/clock_domain.cc -> .o
[ TRACING] -> MIPS/debug/VoltageDomain.hh
[ CXX] MIPS/sim/voltage_domain.cc -> .o
[ CXX] MIPS/sim/se_signal.cc -> .o
[ CXX] MIPS/sim/linear_solver.cc -> .o
[GENERATE] mips -> MIPS/arch/remote_gdb.hh
[CONFIG H] USE_KVM, 0 -> MIPS/config/use_kvm.hh
[ TRACING] -> MIPS/debug/Loader.hh
[ TRACING] -> MIPS/debug/WorkItems.hh
[CONFIG H] HAVE_PERF_ATTR_EXCLUDE_HOST, 1 -> MIPS/config/have_perf_attr_exclude_host.hh
[GENERATE] mips -> MIPS/arch/isa.hh
[ TRACING] -> MIPS/debug/CCRegs.hh
[ TRACING] -> MIPS/debug/FloatRegs.hh
[ TRACING] -> MIPS/debug/IntRegs.hh
[ TRACING] -> MIPS/debug/VecRegs.hh
[GENERATE] mips -> MIPS/arch/stacktrace.hh
[ TRACING] -> MIPS/debug/Stack.hh
[ CXX] MIPS/sim/system.cc -> .o
[ TRACING] -> MIPS/debug/DVFS.hh
[SO PARAM] DVFSHandler -> MIPS/params/DVFSHandler.hh
[ CXX] MIPS/sim/dvfs_handler.cc -> .o
[ CXX] MIPS/sim/clocked_object.cc -> .o
[ CXX] MIPS/sim/mathexpr.cc -> .o
[ CXX] MIPS/sim/aux_vector.cc -> .o
[ TRACING] -> MIPS/debug/Fault.hh
[ CXX] MIPS/sim/faults.cc -> .o
[ CXX] MIPS/sim/process.cc -> .o
[ CXX] MIPS/sim/fd_array.cc -> .o
build/MIPS/sim/fd_array.cc: In member function 'void FDArray::restoreFileOffsets()':
build/MIPS/sim/fd_array.cc:139:5: internal compiler error: in assign_temp, at function.c:968
};
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
scons: *** [build/MIPS/sim/fd_array.o] Error 1
scons: building terminated because of errors.
我还尝试使用 gcc-6 insead 的 ubuntu 17.10 默认值 7.2,并收到投诉说 scrons 除了默认的 gcc 和 clang 之外不信任任何东西。
最佳答案
这是今天在邮件列表中提出的:https://www.mail-archive.com/gem5-users@gem5.org/msg15116.html
一种不需要修改代码的解决方法是:
sudo apt-get install g++-6 gcc-6
CC=gcc-6 CXX=g++-6 scons
还有:
关于ubuntu - 如何使用 GCC 7.2 在 Ubuntu 17.10 上构建 gem5,处理 C++ 编译中的问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47243099/
我想做的是让 JTextPane 在 JPanel 中占用尽可能多的空间。对于我使用的 UpdateInfoPanel: public class UpdateInfoPanel extends JP
我在 JPanel 中有一个 JTextArea,我想将其与 JScrollPane 一起使用。我正在使用 GridBagLayout。当我运行它时,框架似乎为 JScrollPane 腾出了空间,但
我想在 xcode 中实现以下功能。 我有一个 View Controller 。在这个 UIViewController 中,我有一个 UITabBar。它们下面是一个 UIView。将 UITab
有谁知道Firebird 2.5有没有类似于SQL中“STUFF”函数的功能? 我有一个包含父用户记录的表,另一个表包含与父相关的子用户记录。我希望能够提取用户拥有的“ROLES”的逗号分隔字符串,而
我想使用 JSON 作为 mirth channel 的输入和输出,例如详细信息保存在数据库中或创建 HL7 消息。 简而言之,输入为 JSON 解析它并输出为任何格式。 最佳答案 var objec
通常我会使用 R 并执行 merge.by,但这个文件似乎太大了,部门中的任何一台计算机都无法处理它! (任何从事遗传学工作的人的附加信息)本质上,插补似乎删除了 snp ID 的 rs 数字,我只剩
我有一个以前可能被问过的问题,但我很难找到正确的描述。我希望有人能帮助我。 在下面的代码中,我设置了varprice,我想添加javascript变量accu_id以通过rails在我的数据库中查找记
我有一个简单的 SVG 文件,在 Firefox 中可以正常查看 - 它的一些包装文本使用 foreignObject 包含一些 HTML - 文本包装在 div 中:
所以我正在为学校编写一个 Ruby 程序,如果某个值是 1 或 3,则将 bool 值更改为 true,如果是 0 或 2,则更改为 false。由于我有 Java 背景,所以我认为这段代码应该有效:
我做了什么: 我在这些账户之间创建了 VPC 对等连接 互联网网关也连接到每个 VPC 还配置了路由表(以允许来自双方的流量) 情况1: 当这两个 VPC 在同一个账户中时,我成功测试了从另一个 La
我有一个名为 contacts 的表: user_id contact_id 10294 10295 10294 10293 10293 10294 102
我正在使用 Magento 中的新模板。为避免重复代码,我想为每个产品预览使用相同的子模板。 特别是我做了这样一个展示: $products = Mage::getModel('catalog/pro
“for”是否总是检查协议(protocol)中定义的每个函数中第一个参数的类型? 编辑(改写): 当协议(protocol)方法只有一个参数时,根据该单个参数的类型(直接或任意)找到实现。当协议(p
我想从我的 PHP 代码中调用 JavaScript 函数。我通过使用以下方法实现了这一点: echo ' drawChart($id); '; 这工作正常,但我想从我的 PHP 代码中获取数据,我使
这个问题已经有答案了: Event binding on dynamically created elements? (23 个回答) 已关闭 5 年前。 我有一个动态表单,我想在其中附加一些其他 h
我正在尝试找到一种解决方案,以在 componentDidMount 中的映射项上使用 setState。 我正在使用 GraphQL连同 Gatsby返回许多 data 项目,但要求在特定的 pat
我在 ScrollView 中有一个 View 。只要用户按住该 View ,我想每 80 毫秒调用一次方法。这是我已经实现的: final Runnable vibrate = new Runnab
我用 jni 开发了一个 android 应用程序。我在 GetStringUTFChars 的 dvmDecodeIndirectRef 中得到了一个 dvmabort。我只中止了一次。 为什么会这
当我到达我的 Activity 时,我调用 FragmentPagerAdapter 来处理我的不同选项卡。在我的一个选项卡中,我想显示一个 RecyclerView,但他从未出现过,有了断点,我看到
当我按下 Activity 中的按钮时,会弹出一个 DialogFragment。在对话框 fragment 中,有一个看起来像普通 ListView 的 RecyclerView。 我想要的行为是当
我是一名优秀的程序员,十分优秀!