From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by dpdk.org (Postfix) with ESMTP id A227B1D8E for ; Sun, 3 Dec 2017 09:27:28 +0100 (CET) Received: by mail-qk0-f182.google.com with SMTP id z203so18061133qkb.5 for ; Sun, 03 Dec 2017 00:27:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jl6wLxQTd6LSAJKY0Ol11zOub5SzSYkKQepU3lckwXY=; b=HGwOj20geXFLHyziiEVgq5FZDdO/2pRPSZdwzBWxIkgGkjiR4ab/m7hIRVSoCV67Ou +Qfy4s4QMkseu4ANCDiHF6+RAPodB0GPENIdd7yEGQEKjkpf048ZTdSu7akuk/8/0CKO IAnAvo06uZO3lHUViqNVJ3s3E0F9ammkNSk04+yqwCWNjSVHzBQoCKVzoNipKVbco7Np 1F7l6FuVU8a4ST2yg9NBU+o6oY4RRmHZBwiO8PjLsAKUJq/bZPCzkpSMELRXVT+gj30l /UfntgOCpdm2tfWAOURBhuRhMKNq5yDr1ONAU36/vyaa9l2oujh4CC1JWQwLJSTdK4x/ 2DMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jl6wLxQTd6LSAJKY0Ol11zOub5SzSYkKQepU3lckwXY=; b=KCA5GqTcd6QDbzyc1oRfwlz+Va3oQ7cUMma8IZk2s2WViZHXqi0hcfUxGYWVtuqw9z T7kw8Ge6v/vUa0Q+ArpsjRke4az/JdS9IivTVNASJej734p+Zg4TlHOAPhMEYCCP43iO jXvkpXtpHcKbffX2vj2XiDv1kwKB+Y0llGgPcX5LY7EC6cWgEPZ5O4OVyFWRy7AayhFX 98vDrk3KGX4dzZbIaUs2mvw3GElcMP0ozk+ldU0E6FMHdcu7i4vtJJOby+OQtzqGBJ8l gr6WkAVM9wDKyAl34k7I3JRzbpt3CQEEEY0wDJDp9aM15bKvQmsOOBvHFYMdOBP8zr3X pwnA== X-Gm-Message-State: AKGB3mKf59IPMhNEo25sEC/0y1QIawsvQZ1BXTBBFj8gnl3FXmEf2qwW /RvtithBuS+uenStDw3UmlaynL5kIIguAFtW4Go= X-Google-Smtp-Source: AGs4zMYt5nsu9fimG8LpWjaBCeP6cw6KfeqVksdmt27Eqn9t7ua2Ccc+Ee7LrvGQxk0NDw2bgjsYfIhz0nNT6HK65h0= X-Received: by 10.55.120.199 with SMTP id t190mr15286370qkc.63.1512289647799; Sun, 03 Dec 2017 00:27:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.174.5 with HTTP; Sun, 3 Dec 2017 00:27:27 -0800 (PST) In-Reply-To: References: From: Vincenzo Maffione Date: Sun, 3 Dec 2017 09:27:27 +0100 Message-ID: To: Yuliang Li Cc: users@dpdk.org X-Mailman-Approved-At: Mon, 04 Dec 2017 12:32:20 +0100 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Build error in vm X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 08:27:29 -0000 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 : > 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 > . > > 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