From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by dpdk.org (Postfix) with ESMTP id 031905B2E for ; Fri, 28 Dec 2018 11:43:54 +0100 (CET) Received: by mail-lf1-f49.google.com with SMTP id b20so14301657lfa.12 for ; Fri, 28 Dec 2018 02:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=elOju78dKNmDwDvsirMsF112KDS/OKKt7lpBNlll1q8=; b=WGAbjZHTEzK7aohH/1u6HQ168cSG1WNW/tOhYgGNPpsstg/+Ld7N6vQH/ooMRENtYX WGwRiegFP07i06c+BTI00HhPVqK0T+qzDAgx4tKq5EC9qiNm/NhFxxyRYikOH5+49f8e eh0Oo9rxcs6vbirI70fKkgJE/E5Ie2GQUmxdo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=elOju78dKNmDwDvsirMsF112KDS/OKKt7lpBNlll1q8=; b=oRIhRDI6qG8+lZ9+K/1wD/xpT2UJt6iUkyNn1nJS06Lovht8I/MoR48JCYQa4Fq5uR DDpnnds3QC7trLgXq5xIydNROgAx0cJPtDKjPYaj6yL8IYtnGlixMj1S+cAPReE8cNZp HSQ4fTTTVAQAxciZuIMjj2nlDdTipikShLwLLS3y5gZRE7OTP8rhj/O6y26Pm2GhHdag NOQeZxd3x74jpuV3cKm0V5lKPkM0ySVyRkefj8UbFRE8nnix/oz7uBKFxp2iCQPOwsYt KsLjgxoagmC0tD+NqpcMXKaXQzqO6qXowwrWSwjMDVbB8Mt7lbCKAHlI5dEpSKFW9KHj N0Rg== X-Gm-Message-State: AA+aEWZzaxXkyJ5xVUTqQa4zplrG1ZvKtTKSLY6XyckdgZ1WP8qauF+l mOo5H/63txVrv2bCIDgmr6ZnW9Kdu5oVCL7SJmFukQ== X-Google-Smtp-Source: AFSGD/UigTi5Q//33CtKTun9c9Mqcxy5eOtwd7EB7GW02/ig81ci3XDs+nYvj0P5ZFuAavFQw4U9y9LPlM7qdFb2Tj8= X-Received: by 2002:a19:f20:: with SMTP id e32mr14374004lfi.51.1545993834164; Fri, 28 Dec 2018 02:43:54 -0800 (PST) MIME-Version: 1.0 References: <1545906028733.17773@kth.se> <5854e0ee.32f4e.167f4238a89.Coremail.wuzhouhui14@mails.ucas.ac.cn> In-Reply-To: <5854e0ee.32f4e.167f4238a89.Coremail.wuzhouhui14@mails.ucas.ac.cn> From: Murali Krishna Date: Fri, 28 Dec 2018 16:13:43 +0530 Message-ID: To: wuzhouhui Cc: tom barbette , "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] DPDK build failed in virtual machine 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: Fri, 28 Dec 2018 10:43:55 -0000 can you try compiling dpdk after setting 'Copy host CPU configuation' option under CPU settings of that VM in virt-manager. Regards, Murali On Fri, Dec 28, 2018 at 2:57 PM wuzhouhui wrote: > > > -----Original Messages----- > > From: "Tom Barbette" > > Sent Time: 2018-12-27 18:20:30 (Thursday) > > To: wuzhouhui , "users@dpdk.org" < > users@dpdk.org> > > Cc: > > Subject: RE: [dpdk-users] DPDK build failed in virtual machine > > > > Hi, > > > > By default DPDK build for the current CPU. > > > > I guess in your virtual machine configuration you enabled emulation of = a > CPU instead of CPU passthrough. This is the default of libvirt I think. T= he > default emulated CPU has no fancy insturctions by default, and is, it see= ms > from your error log, set in 32bit mode. > > > > What do you mean "set in 32bit mode"? The arch of virtual machine is > x86_64, so the cpu should > be in 64 bit mode. > > Thanks. > Wu > > > Tom > > > > ________________________________________ > > De : users de la part de wuzhouhui < > wuzhouhui14@mails.ucas.ac.cn> > > Envoy=C3=A9 : lundi 24 d=C3=A9cembre 2018 03:51 > > =C3=80 : users@dpdk.org > > Objet : [dpdk-users] DPDK build failed in virtual machine > > > > Hi, > > > > A naive question, but I couldn't find any clue when searching Internet. > > > > When I build DPDK in a CentOS-6.3 virtual machine, I got some errors: > > > > [wzh@CentOS6-compiler dpdk-stable-18.05.1]$ make config > T=3Dx86_64-native-linuxapp-gcc > > Configuration done using x86_64-native-linuxapp-gcc > > [wzh@CentOS6-compiler dpdk-stable-18.05.1]$ make > > cc1: error: CPU you selected does not support x86-64 instruction set > > =3D=3D Build lib > > cc1: error: CPU you selected does not support x86-64 instruction set > > =3D=3D Build lib/librte_compat > > cc1: error: CPU you selected does not support x86-64 instruction set > > SYMLINK-FILE include/rte_compat.h > > =3D=3D Build lib/librte_eal > > cc1: error: CPU you selected does not support x86-64 instruction set > > ^Cmake[2]: *** [librte_eal] Interrupt > > make[1]: *** [lib] Interrupt > > make: *** [all] Interrupt > > > > [wzh@CentOS6-compiler dpdk-stable-18.05.1]$ gcc --version > > gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) > > Copyright (C) 2010 Free Software Foundation, Inc. > > This is free software; see the source for copying conditions. There is > NO > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > > > But build in host (CentOS-6.3) seems fine. Does it means that DPDP > cannot be > > build in virtual machine? > > > > Thanks. >