DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] compile error on ubuntu 14.4.4 kernel 4.2.0-27-generic in qemu
@ 2016-04-17 18:27 Sharath
  2016-04-17 18:41 ` Masaru OKI
  0 siblings, 1 reply; 4+ messages in thread
From: Sharath @ 2016-04-17 18:27 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [dpdk-dev] compile error on ubuntu 14.4.4 kernel 4.2.0-27-generic in qemu
@ 2016-04-20  6:44 Sharath
  0 siblings, 0 replies; 4+ messages in thread
From: Sharath @ 2016-04-20  6:44 UTC (permalink / raw)
  To: dev

Root cause: Default cpu config when the VM has be been started by qemu does
not support SSE.

I have resolved this issue. Here the resolution which I used. Might be
helpful for others

Method 1
After Configuring VM by GUI based Virtual Machine Manager, go to the CPU
config & make SSE as "Required"

Method 2
pass -cpu options to qemu-system-x86_64 with your cpu type [Nehalem] in my
case.
-cpu
Nehalem,+rdtscp,+x2apic,+dca,+pdcm,+xtpr,+tm2,+est,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme

Thanks to *Masaru OKI & *
*Christian Ehrhardt for the info*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-20  6:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-17 18:27 [dpdk-dev] compile error on ubuntu 14.4.4 kernel 4.2.0-27-generic in qemu Sharath
2016-04-17 18:41 ` Masaru OKI
2016-04-18  6:23   ` Christian Ehrhardt
2016-04-20  6:44 Sharath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).