[dpdk-dev] compile error on ubuntu 14.4.4 kernel 4.2.0-27-generic in qemu

Sharath sharath.b814 at gmail.com
Sun Apr 17 20:27:51 CEST 2016


HI,

I am facing feew compile errors while compiling dpdk. The env is ubuntu
running as an VM, VM is started by qemu. How do I fix the compile errors?

In file included from
/home/vpptest/vpp/build-root/build-vpp-native/dpdk/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_pci.c:42:0:
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_memcpy.h:
In function ‘rte_memcpy’:
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_memcpy.h:625:2:
error: implicit declaration of function ‘_mm_alignr_epi8’
[-Werror=implicit-function-declaration]
  MOVEUNALIGNED_LEFT47(dst, src, n, srcofs);
  ^
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_memcpy.h:625:2:
error: nested extern declaration of ‘_mm_alignr_epi8’
[-Werror=nested-externs]
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_memcpy.h:625:2:
error: incompatible type for argument 2 of ‘_mm_storeu_si128’
In file included from
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_common.h:289:0,
                 from
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_memory.h:55,
                 from
/home/vpptest/vpp/build-root/install-vpp-native/dpdk/include/rte_eal_memconfig.h:38,
                 from
/home/vpptest/vpp/build-root/build-vpp-native/dpdk/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_pci.c:39:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:700:1: note: expected
‘__m128i’ but argument is of type ‘int’

Thanks
Sharath


More information about the dev mailing list