DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Build error in vm
@ 2017-12-03  4:54 Yuliang Li
  2017-12-03  8:27 ` Vincenzo Maffione
  0 siblings, 1 reply; 3+ messages in thread
From: Yuliang Li @ 2017-12-03  4:54 UTC (permalink / raw)
  To: users

Hi,

I tried to build dpdk in a VM, but get the following error:
/usr/lib/gcc/x86_64-linux-gnu/5/include/tmmintrin.h:185:1: error: inlining
failed in call to always_inline '_mm_alignr_epi8': target specific option
mismatch
 _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)

The VM image that I use is ubuntu 16.04 cloud image
<https://cloud-images.ubuntu.com/xenial/current/>.

And I use the following command to start the VM:
qemu-system-x86_64 -hda ubuntu-16.04-server-cloudimg-amd64-disk1.img -m
1024 -enable-kvm -nographic -cdrom login.img -drive
file=ubuntu-16.04-server-cloudimg-amd64-disk1.img,if=virtio,aio=threads
-netdev user,id=mynet0,hostfwd=tcp::2222-:22 -device
virtio-net-pci,netdev=mynet0

Anyone knows the reason?

Thanks,
-- 
Yuliang Li
PhD student
Department of Computer Science
Yale University

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

* Re: [dpdk-users] Build error in vm
  2017-12-03  4:54 [dpdk-users] Build error in vm Yuliang Li
@ 2017-12-03  8:27 ` Vincenzo Maffione
  2017-12-03 15:17   ` Yuliang Li
  0 siblings, 1 reply; 3+ messages in thread
From: Vincenzo Maffione @ 2017-12-03  8:27 UTC (permalink / raw)
  To: Yuliang Li; +Cc: users

Hi,
  Don't know if it can help, but you may try to add the "-cpu host" option
to QEMU.

Cheers,
  Vincenzo

2017-12-03 5:54 GMT+01:00 Yuliang Li <yuliang.li@yale.edu>:

> Hi,
>
> I tried to build dpdk in a VM, but get the following error:
> /usr/lib/gcc/x86_64-linux-gnu/5/include/tmmintrin.h:185:1: error: inlining
> failed in call to always_inline '_mm_alignr_epi8': target specific option
> mismatch
>  _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)
>
> The VM image that I use is ubuntu 16.04 cloud image
> <https://cloud-images.ubuntu.com/xenial/current/>.
>
> And I use the following command to start the VM:
> qemu-system-x86_64 -hda ubuntu-16.04-server-cloudimg-amd64-disk1.img -m
> 1024 -enable-kvm -nographic -cdrom login.img -drive
> file=ubuntu-16.04-server-cloudimg-amd64-disk1.img,if=virtio,aio=threads
> -netdev user,id=mynet0,hostfwd=tcp::2222-:22 -device
> virtio-net-pci,netdev=mynet0
>
> Anyone knows the reason?
>
> Thanks,
> --
> Yuliang Li
> PhD student
> Department of Computer Science
> Yale University
>



-- 
Vincenzo Maffione

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

* Re: [dpdk-users] Build error in vm
  2017-12-03  8:27 ` Vincenzo Maffione
@ 2017-12-03 15:17   ` Yuliang Li
  0 siblings, 0 replies; 3+ messages in thread
From: Yuliang Li @ 2017-12-03 15:17 UTC (permalink / raw)
  To: Vincenzo Maffione; +Cc: users

It works! Thanks!

On Sun, Dec 3, 2017 at 3:27 AM, Vincenzo Maffione <v.maffione@gmail.com>
wrote:

> Hi,
>   Don't know if it can help, but you may try to add the "-cpu host" option
> to QEMU.
>
> Cheers,
>   Vincenzo
>
> 2017-12-03 5:54 GMT+01:00 Yuliang Li <yuliang.li@yale.edu>:
>
>> Hi,
>>
>> I tried to build dpdk in a VM, but get the following error:
>> /usr/lib/gcc/x86_64-linux-gnu/5/include/tmmintrin.h:185:1: error:
>> inlining
>> failed in call to always_inline '_mm_alignr_epi8': target specific option
>> mismatch
>>  _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)
>>
>> The VM image that I use is ubuntu 16.04 cloud image
>> <https://cloud-images.ubuntu.com/xenial/current/>.
>>
>> And I use the following command to start the VM:
>> qemu-system-x86_64 -hda ubuntu-16.04-server-cloudimg-amd64-disk1.img -m
>> 1024 -enable-kvm -nographic -cdrom login.img -drive
>> file=ubuntu-16.04-server-cloudimg-amd64-disk1.img,if=virtio,aio=threads
>> -netdev user,id=mynet0,hostfwd=tcp::2222-:22 -device
>> virtio-net-pci,netdev=mynet0
>>
>> Anyone knows the reason?
>>
>> Thanks,
>> --
>> Yuliang Li
>> PhD student
>> Department of Computer Science
>> Yale University
>>
>
>
>
> --
> Vincenzo Maffione
>



-- 
Yuliang Li
PhD student
Department of Computer Science
Yale University

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

end of thread, other threads:[~2017-12-03 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-03  4:54 [dpdk-users] Build error in vm Yuliang Li
2017-12-03  8:27 ` Vincenzo Maffione
2017-12-03 15:17   ` Yuliang Li

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).