* [dpdk-dev] unable to compile 1.6.0
@ 2014-04-25 6:00 Vasiliy Tolstov
2014-04-25 11:20 ` Neil Horman
2014-04-25 11:26 ` Thomas Monjalon
0 siblings, 2 replies; 10+ messages in thread
From: Vasiliy Tolstov @ 2014-04-25 6:00 UTC (permalink / raw)
To: dev
Hello. I'm try to create package for my distro for testing, but unable
to compile under kvm virtual machine.
/proc/cpuinfo
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 1.0
stepping : 3
microcode : 0x1
cpu MHz : 2400.084
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni
vmx cx16 popcnt hypervisor lahf_lm
bogomips : 4800.16
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
error:
make config T=x86_64-default-linuxapp-gcc
cc1: error: CPU you selected does not support x86-64 instruction set
How can i debug this issue?
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 6:00 [dpdk-dev] unable to compile 1.6.0 Vasiliy Tolstov
@ 2014-04-25 11:20 ` Neil Horman
2014-04-25 11:36 ` Vasiliy Tolstov
2014-04-25 11:26 ` Thomas Monjalon
1 sibling, 1 reply; 10+ messages in thread
From: Neil Horman @ 2014-04-25 11:20 UTC (permalink / raw)
To: Vasiliy Tolstov; +Cc: dev
On Fri, Apr 25, 2014 at 10:00:41AM +0400, Vasiliy Tolstov wrote:
> Hello. I'm try to create package for my distro for testing, but unable
> to compile under kvm virtual machine.
> /proc/cpuinfo
> processor : 7
> vendor_id : GenuineIntel
> cpu family : 6
> model : 2
> model name : QEMU Virtual CPU version 1.0
> stepping : 3
> microcode : 0x1
> cpu MHz : 2400.084
> cache size : 4096 KB
> fpu : yes
> fpu_exception : yes
> cpuid level : 4
> wp : yes
> flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni
> vmx cx16 popcnt hypervisor lahf_lm
> bogomips : 4800.16
> clflush size : 64
> cache_alignment : 64
> address sizes : 40 bits physical, 48 bits virtual
> power management:
>
>
> error:
> make config T=x86_64-default-linuxapp-gcc
> cc1: error: CPU you selected does not support x86-64 instruction set
>
> How can i debug this issue?
Start by adding V=1 to your command line to start drilling down to where the
problem is actually happening.
Neil
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov@selfip.ru
> jabber: vase@selfip.ru
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 11:20 ` Neil Horman
@ 2014-04-25 11:36 ` Vasiliy Tolstov
2014-04-25 12:22 ` Ananyev, Konstantin
0 siblings, 1 reply; 10+ messages in thread
From: Vasiliy Tolstov @ 2014-04-25 11:36 UTC (permalink / raw)
To: Neil Horman; +Cc: dev
2014-04-25 15:20 GMT+04:00 Neil Horman <nhorman@tuxdriver.com>:
> Start by adding V=1 to your command line to start drilling down to where the
> problem is actually happening.
make -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/rte.sdkconfig.mk
config
if [ "/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc"
!= "" -a -f "/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc"
]; then \
cpp -undef -P -x assembler-with-cpp \
-fdirectives-only -ffreestanding \
-o /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc
; \
if ! cmp -s
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config;
then \
cp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config
; \
fi ; \
rm -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
; \
else \
echo -n "No template specified. Use T=template " ; \
echo "among the following list:" ; \
for t in x86_64-ivshmem-linuxapp-icc
x86_64-ivshmem-linuxapp-gcc i686-default-linuxapp-icc
i686-default-linuxapp-gcc x86_64-default-linuxapp-icc
x86_64-default-bsdapp-gcc x86_64-default-linuxapp-gcc; do \
echo " $t" ; \
done ; \
fi
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/scripts/gen-build-mk.sh
../ build \
> /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/Makefile
rm -rf /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/include
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/app \
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/hostapp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/lib \
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/hostlib
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/kmod
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/build
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/scripts/gen-config-h.sh
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config
\
> /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/include/rte_config.h
make depdirs
make -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/rte.sdkdepdirs.mk
depdirs
make -j3 -j3 V=1 config T=x86_64-default-linuxapp-gcc
As i see V=1 not passed down to other makefiles.
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 11:36 ` Vasiliy Tolstov
@ 2014-04-25 12:22 ` Ananyev, Konstantin
2014-04-25 12:36 ` Vasiliy Tolstov
0 siblings, 1 reply; 10+ messages in thread
From: Ananyev, Konstantin @ 2014-04-25 12:22 UTC (permalink / raw)
To: Vasiliy Tolstov, Neil Horman; +Cc: dev
Hi Vasiliy,
Why just not use ' -cpu host' when starting your kvm?
Konstantin
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vasiliy Tolstov
Sent: Friday, April 25, 2014 12:37 PM
To: Neil Horman
Cc: dev
Subject: Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 15:20 GMT+04:00 Neil Horman <nhorman@tuxdriver.com>:
> Start by adding V=1 to your command line to start drilling down to where the
> problem is actually happening.
make -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/rte.sdkconfig.mk
config
if [ "/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc"
!= "" -a -f "/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc"
]; then \
cpp -undef -P -x assembler-with-cpp \
-fdirectives-only -ffreestanding \
-o /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/config/defconfig_x86_64-default-linuxapp-gcc
; \
if ! cmp -s
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config;
then \
cp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config
; \
fi ; \
rm -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config_tmp
; \
else \
echo -n "No template specified. Use T=template " ; \
echo "among the following list:" ; \
for t in x86_64-ivshmem-linuxapp-icc
x86_64-ivshmem-linuxapp-gcc i686-default-linuxapp-icc
i686-default-linuxapp-gcc x86_64-default-linuxapp-icc
x86_64-default-bsdapp-gcc x86_64-default-linuxapp-gcc; do \
echo " $t" ; \
done ; \
fi
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/scripts/gen-build-mk.sh
../ build \
> /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/Makefile
rm -rf /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/include
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/app \
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/hostapp
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/lib \
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/hostlib
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/kmod
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/build
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/scripts/gen-config-h.sh
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/.config
\
> /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/build/include/rte_config.h
make depdirs
make -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/rte.sdkdepdirs.mk
depdirs
make -j3 -j3 V=1 config T=x86_64-default-linuxapp-gcc
As i see V=1 not passed down to other makefiles.
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 12:22 ` Ananyev, Konstantin
@ 2014-04-25 12:36 ` Vasiliy Tolstov
2014-04-25 13:03 ` Ananyev, Konstantin
2014-04-25 14:02 ` Paul Barrette
0 siblings, 2 replies; 10+ messages in thread
From: Vasiliy Tolstov @ 2014-04-25 12:36 UTC (permalink / raw)
To: Ananyev, Konstantin; +Cc: dev
2014-04-25 16:22 GMT+04:00 Ananyev, Konstantin <konstantin.ananyev@intel.com>:
> Hi Vasiliy,
> Why just not use ' -cpu host' when starting your kvm?
Because in this case compiled binaries may use extensions that not
supported on other platforms.
As i see error happen with MACHINE_CFLAGS = -march=native, but i
compile all software with match=x86_64 for compat.
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 12:36 ` Vasiliy Tolstov
@ 2014-04-25 13:03 ` Ananyev, Konstantin
2014-04-28 4:28 ` Vasiliy Tolstov
2014-04-25 14:02 ` Paul Barrette
1 sibling, 1 reply; 10+ messages in thread
From: Ananyev, Konstantin @ 2014-04-25 13:03 UTC (permalink / raw)
To: Vasiliy Tolstov; +Cc: dev
Then I suppose you need to set
CONFIG_RTE_MACHINE="default"
in your config file.
-----Original Message-----
From: vase@selfip.ru [mailto:vase@selfip.ru] On Behalf Of Vasiliy Tolstov
Sent: Friday, April 25, 2014 1:37 PM
To: Ananyev, Konstantin
Cc: Neil Horman; dev
Subject: Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 16:22 GMT+04:00 Ananyev, Konstantin <konstantin.ananyev@intel.com>:
> Hi Vasiliy,
> Why just not use ' -cpu host' when starting your kvm?
Because in this case compiled binaries may use extensions that not
supported on other platforms.
As i see error happen with MACHINE_CFLAGS = -march=native, but i
compile all software with match=x86_64 for compat.
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 13:03 ` Ananyev, Konstantin
@ 2014-04-28 4:28 ` Vasiliy Tolstov
0 siblings, 0 replies; 10+ messages in thread
From: Vasiliy Tolstov @ 2014-04-28 4:28 UTC (permalink / raw)
To: Ananyev, Konstantin; +Cc: dev
2014-04-25 17:03 GMT+04:00 Ananyev, Konstantin <konstantin.ananyev@intel.com>:
> Then I suppose you need to set
> CONFIG_RTE_MACHINE="default"
> in your config file.
Thanks, this is works fine..., but:
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/internal/rte.compile-pre.mk:126:
recipe for target 'eal_common_cpuflags.o' failed
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/lib/librte_eal/common/eal_common_cpuflags.c:
In function 'rte_cpu_check_supported':
/var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/lib/librte_eal/common/eal_common_cpuflags.c:253:4:
error: 'RTE_COMPILE_TIME_CPUFLAGS' undeclared (first use in this
function)
RTE_COMPILE_TIME_CPUFLAGS
Why this happening?
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 12:36 ` Vasiliy Tolstov
2014-04-25 13:03 ` Ananyev, Konstantin
@ 2014-04-25 14:02 ` Paul Barrette
2014-04-28 3:28 ` Vasiliy Tolstov
1 sibling, 1 reply; 10+ messages in thread
From: Paul Barrette @ 2014-04-25 14:02 UTC (permalink / raw)
To: Vasiliy Tolstov, Ananyev, Konstantin; +Cc: dev
On 04/25/2014 08:36 AM, Vasiliy Tolstov wrote:
> 2014-04-25 16:22 GMT+04:00 Ananyev, Konstantin <konstantin.ananyev@intel.com>:
>> Hi Vasiliy,
>> Why just not use ' -cpu host' when starting your kvm?
>
> Because in this case compiled binaries may use extensions that not
> supported on other platforms.
> As i see error happen with MACHINE_CFLAGS = -march=native, but i
> compile all software with match=x86_64 for compat.
>
>
In qemu you can turn off the cpu features that you don't want enabled:
http://www.linux-kvm.org/page/Tuning_KVM
maybe -cpu Nehalem ...
Pb
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] unable to compile 1.6.0
2014-04-25 6:00 [dpdk-dev] unable to compile 1.6.0 Vasiliy Tolstov
2014-04-25 11:20 ` Neil Horman
@ 2014-04-25 11:26 ` Thomas Monjalon
1 sibling, 0 replies; 10+ messages in thread
From: Thomas Monjalon @ 2014-04-25 11:26 UTC (permalink / raw)
To: Vasiliy Tolstov; +Cc: dev
Hi,
2014-04-25 10:00, Vasiliy Tolstov:
> model name : QEMU Virtual CPU version 1.0
[...)
> error:
> make config T=x86_64-default-linuxapp-gcc
> cc1: error: CPU you selected does not support x86-64 instruction set
Try qemu -cpu host.
--
Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-04-28 4:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 6:00 [dpdk-dev] unable to compile 1.6.0 Vasiliy Tolstov
2014-04-25 11:20 ` Neil Horman
2014-04-25 11:36 ` Vasiliy Tolstov
2014-04-25 12:22 ` Ananyev, Konstantin
2014-04-25 12:36 ` Vasiliy Tolstov
2014-04-25 13:03 ` Ananyev, Konstantin
2014-04-28 4:28 ` Vasiliy Tolstov
2014-04-25 14:02 ` Paul Barrette
2014-04-28 3:28 ` Vasiliy Tolstov
2014-04-25 11:26 ` Thomas Monjalon
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).