Hello, You should look for the files installed by the 'kvm' or related packages. If one of them also point to /usr/include/linux/kvm.h, this means that the corresponding package is outdated or does not correspond to your kernel version. Seeing if your board supports VGIC_V2 is something to check too.
Regards, -- Fernando A. Endo, Post-doc INRIA Rennes-Bretagne Atlantique France 2015-12-14 13:01 GMT-02:00 Jimmy Situ <[email protected]>: > Dear all, > > I tried to compile gem5 on a ARM arch machine. But I get the error below, > > build/ARM/arch/arm/kvm/gic.cc: In constructor 'KvmGic::KvmGic(const > KvmGicParams*)': > build/ARM/arch/arm/kvm/gic.cc:51:28: error: 'KVM_DEV_TYPE_ARM_VGIC_V2' was > not declared in this scope > kdev(vm.createDevice(KVM_DEV_TYPE_ARM_VGIC_V2)), > ^ > build/ARM/arch/arm/kvm/gic.cc:57:9: error: 'KVM_DEV_ARM_VGIC_GRP_ADDR' was > not declared in this scope > KVM_DEV_ARM_VGIC_GRP_ADDR, KVM_VGIC_V2_ADDR_TYPE_DIST, > ^ > scons: *** [build/ARM/arch/arm/kvm/gic.o] Error 1 > scons: building terminated because of errors. > > I google these two not declared macro, they are in linux-header > arch/arm/include/uapi/asm/kvm.h > <http://lxr.free-electrons.com/source/arch/arm/include/uapi/asm/kvm.h#L170> > But the compiler use the one in /usr/include/linux/kvm.h, which is not the > same file, and not include these two macro. > Does anyone know how to due with this issue? Please help, Thanks. > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
