What is your compiler version? On Tue, Aug 14, 2018 at 12:53 AM, Sampad Mohapatra <[email protected]> wrote:
> Hi All, > > I am facing compile issues while trying to compile > commit e02ec0c24d56bce4a0d8636a340e15cd223d1930 . > There are two types of errors in the Gem5 source: > > (1) *no matching function for call to : find(uint64_t&)* > > build/HSAIL_X86/gpu-compute/hsail_code.cc: In member function > 'StorageElement* StorageSpace::findSymbol(uint64_t)': > build/HSAIL_X86/gpu-compute/hsail_code.cc:336:41: error: no matching > function for call to 'AddrRangeMap<StorageElement*>::find(uint64_t&)' > auto se = elements_by_addr.find(addr); > ^ > In file included from build/HSAIL_X86/gpu-compute/hsail_code.hh:47:0, > from build/HSAIL_X86/gpu-compute/hsail_code.cc:36: > build/HSAIL_X86/base/addr_range_map.hh:225:5: note: candidate: > AddrRangeMap<V, max_cache_size>::const_iterator AddrRangeMap<V, > max_cache_size>::find(const AddrRange&, std::function<bool(AddrRange)>) > const [with V = StorageElement*; int max_cache_size = 0; AddrRangeMap<V, > max_cache_size>::const_iterator = > std::_Rb_tree_const_iterator<std::pair<const AddrRange, StorageElement*> > >] > find(const AddrRange &r, std::function<bool(const AddrRange)> cond) > const > ^ > build/HSAIL_X86/base/addr_range_map.hh:225:5: note: candidate expects 2 > arguments, 1 provided > > > (2) *Multiple issues due to object creation from virtual classes. For > example:* > > In file included from build/HSAIL_X86/gpu-compute/gpu_static_inst.hh:53:0, > from > build/HSAIL_X86/arch/hsail/insts/gpu_static_inst.hh:46, > from build/HSAIL_X86/arch/hsail/insts/branch.hh:39, > from build/HSAIL_X86/arch/hsail/gpu_decoder.cc:2: > build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh: In instantiation of > 'AtomicOpFunctor* GPUDynInst::makeAtomicOpFunctor(c0*, c0*) [with c0 = > long > unsigned int]': > build/HSAIL_X86/arch/hsail/insts/mem.hh:1625:54: required from 'void > HsailISA::AtomicInst<MemDataType, AddrOperandType, NumSrcOperands, > HasDst>::execAtomic(GPUDynInstPtr) [with MemDataType = > HsailISA::HsailDataType<HsailISA::HsailOperandType<DRegOperand, > RegOrImmOperand<DRegOperand, long unsigned int> >, long unsigned int, > (Enums::MemType)3u, (vgpr_type)1u, 1>; AddrOperandType = > RegAddrOperand<DRegOperand>; int NumSrcOperands = 1; bool HasDst = true; > GPUDynInstPtr = std::shared_ptr<GPUDynInst>]' > build/HSAIL_X86/arch/hsail/gpu_decoder.cc:887:1: required from here > build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh:358:45: error: invalid > new-expression of abstract class type 'AtomicOpAnd<long unsigned int>' > return new AtomicOpAnd<c0>(*reg0); > ^ > build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh:50:7: note: because the > following virtual functions are pure within 'AtomicOpAnd<long unsigned > int>': > class AtomicOpAnd : public TypedAtomicOpFunctor<T> > > > Any help or pointers is highly appreciated. > > > Thanks and Regards, > Sampad Mohapatra > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
