* [dpdk-users] DPDK build failed in virtual machine
@ 2018-12-24 2:51 wuzhouhui
0 siblings, 0 replies; 5+ messages in thread
From: wuzhouhui @ 2018-12-24 2:51 UTC (permalink / raw)
To: users
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=x86_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
== Build lib
cc1: error: CPU you selected does not support x86-64 instruction set
== Build lib/librte_compat
cc1: error: CPU you selected does not support x86-64 instruction set
SYMLINK-FILE include/rte_compat.h
== 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] DPDK build failed in virtual machine
@ 2018-12-27 10:20 Tom Barbette
2018-12-28 9:27 ` wuzhouhui
0 siblings, 1 reply; 5+ messages in thread
From: Tom Barbette @ 2018-12-27 10:20 UTC (permalink / raw)
To: wuzhouhui, users
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. The default emulated CPU has no fancy insturctions by default, and is, it seems from your error log, set in 32bit mode.
Tom
________________________________________
De : users <users-bounces@dpdk.org> de la part de wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>
Envoyé : lundi 24 décembre 2018 03:51
À : 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=x86_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
== Build lib
cc1: error: CPU you selected does not support x86-64 instruction set
== Build lib/librte_compat
cc1: error: CPU you selected does not support x86-64 instruction set
SYMLINK-FILE include/rte_compat.h
== 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] DPDK build failed in virtual machine
2018-12-27 10:20 Tom Barbette
@ 2018-12-28 9:27 ` wuzhouhui
2018-12-28 10:43 ` Murali Krishna
0 siblings, 1 reply; 5+ messages in thread
From: wuzhouhui @ 2018-12-28 9:27 UTC (permalink / raw)
To: tom barbette; +Cc: users
> -----Original Messages-----
> From: "Tom Barbette" <barbette@kth.se>
> Sent Time: 2018-12-27 18:20:30 (Thursday)
> To: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>, "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. The default emulated CPU has no fancy insturctions by default, and is, it seems 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 <users-bounces@dpdk.org> de la part de wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>
> Envoyé : lundi 24 décembre 2018 03:51
> À : 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=x86_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
> == Build lib
> cc1: error: CPU you selected does not support x86-64 instruction set
> == Build lib/librte_compat
> cc1: error: CPU you selected does not support x86-64 instruction set
> SYMLINK-FILE include/rte_compat.h
> == 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] DPDK build failed in virtual machine
2018-12-28 9:27 ` wuzhouhui
@ 2018-12-28 10:43 ` Murali Krishna
2018-12-29 9:42 ` Tom Barbette
0 siblings, 1 reply; 5+ messages in thread
From: Murali Krishna @ 2018-12-28 10:43 UTC (permalink / raw)
To: wuzhouhui; +Cc: tom barbette, users
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 <wuzhouhui14@mails.ucas.ac.cn>
wrote:
>
> > -----Original Messages-----
> > From: "Tom Barbette" <barbette@kth.se>
> > Sent Time: 2018-12-27 18:20:30 (Thursday)
> > To: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>, "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. The
> default emulated CPU has no fancy insturctions by default, and is, it seems
> 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 <users-bounces@dpdk.org> de la part de wuzhouhui <
> wuzhouhui14@mails.ucas.ac.cn>
> > Envoyé : lundi 24 décembre 2018 03:51
> > À : 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=x86_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
> > == Build lib
> > cc1: error: CPU you selected does not support x86-64 instruction set
> > == Build lib/librte_compat
> > cc1: error: CPU you selected does not support x86-64 instruction set
> > SYMLINK-FILE include/rte_compat.h
> > == 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.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] DPDK build failed in virtual machine
2018-12-28 10:43 ` Murali Krishna
@ 2018-12-29 9:42 ` Tom Barbette
0 siblings, 0 replies; 5+ messages in thread
From: Tom Barbette @ 2018-12-29 9:42 UTC (permalink / raw)
To: Murali Krishna, wuzhouhui; +Cc: users
?You can also double check by doing cat /proc/cpuinfo in the guest. But the message is clear, your guest CPU is x86 (32 bit).
Tom
________________________________
De : Murali Krishna <murali.krishna@broadcom.com>
Envoyé : vendredi 28 décembre 2018 11:43
À : wuzhouhui
Cc : Tom Barbette; users@dpdk.org
Objet : Re: [dpdk-users] DPDK build failed in virtual machine
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 <wuzhouhui14@mails.ucas.ac.cn<mailto:wuzhouhui14@mails.ucas.ac.cn>> wrote:
> -----Original Messages-----
> From: "Tom Barbette" <barbette@kth.se<mailto:barbette@kth.se>>
> Sent Time: 2018-12-27 18:20:30 (Thursday)
> To: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn<mailto:wuzhouhui14@mails.ucas.ac.cn>>, "users@dpdk.org<mailto:users@dpdk.org>" <users@dpdk.org<mailto: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. The default emulated CPU has no fancy insturctions by default, and is, it seems 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 <users-bounces@dpdk.org<mailto:users-bounces@dpdk.org>> de la part de wuzhouhui <wuzhouhui14@mails.ucas.ac.cn<mailto:wuzhouhui14@mails.ucas.ac.cn>>
> Envoyé : lundi 24 décembre 2018 03:51
> À : users@dpdk.org<mailto: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=x86_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
> == Build lib
> cc1: error: CPU you selected does not support x86-64 instruction set
> == Build lib/librte_compat
> cc1: error: CPU you selected does not support x86-64 instruction set
> SYMLINK-FILE include/rte_compat.h
> == 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-12-29 9:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-24 2:51 [dpdk-users] DPDK build failed in virtual machine wuzhouhui
2018-12-27 10:20 Tom Barbette
2018-12-28 9:27 ` wuzhouhui
2018-12-28 10:43 ` Murali Krishna
2018-12-29 9:42 ` Tom Barbette
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).