* [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual machine
@ 2015-03-11 13:47 Vasiliy Tolstov
2015-03-11 14:14 ` Mcnamara, John
0 siblings, 1 reply; 3+ messages in thread
From: Vasiliy Tolstov @ 2015-03-11 13:47 UTC (permalink / raw)
To: dev
I'm try to build dpdk 1.8.0
unpack sources
sed -i 's|CONFIG_RTE_MACHINE="native"|CONFIG_RTE_MACHINE="default"|g'
config/defconfig_x86_64-native-linuxapp-gcc
export CFLAGS="-march=core2 -mtune=generic -pipe -O2"
make V=1 config T=x86_64-native-linuxapp-gcc
make V=1 MACHINE_CFLAGS="${CFLAGS}"
/var/tmp/paludis/build/net-dpdk-1.8.0/work/dpdk-1.8.0/mk/internal/rte.compile-pre.mk:126:
recipe for target 'eal_common_cpuflags.o' failed
/var/tmp/paludis/build/net-dpdk-1.8.0/work/dpdk-1.8.0/lib/librte_eal/common/eal_common_cpuflags.c:
In function 'rte_cpu_check_supported':
/var/tmp/paludis/build/net-dpdk-1.8.0/work/dpdk-1.8.0/lib/librte_eal/common/eal_common_cpuflags.c:63:4:
error: 'RTE_COMPILE_TIME_CPUFLAGS' undeclared (first use in this
function)
RTE_COMPILE_TIME_CPUFLAGS
^
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual machine
2015-03-11 13:47 [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual machine Vasiliy Tolstov
@ 2015-03-11 14:14 ` Mcnamara, John
2015-03-11 15:25 ` Vasiliy Tolstov
0 siblings, 1 reply; 3+ messages in thread
From: Mcnamara, John @ 2015-03-11 14:14 UTC (permalink / raw)
To: Vasiliy Tolstov, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vasiliy Tolstov
> Sent: Wednesday, March 11, 2015 1:47 PM
> To: dev
> Subject: [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual
> machine
>
> I'm try to build dpdk 1.8.0
>
> unpack sources
> sed -i 's|CONFIG_RTE_MACHINE="native"|CONFIG_RTE_MACHINE="default"|g'
> config/defconfig_x86_64-native-linuxapp-gcc
> export CFLAGS="-march=core2 -mtune=generic -pipe -O2"
> make V=1 config T=x86_64-native-linuxapp-gcc make V=1
> MACHINE_CFLAGS="${CFLAGS}"
>
Hi,
CFLAGS for DPDK are usually set via EXTRA_CFLAGS. Try the following as a final set after the other config above:
EXTRA_CFLAGS="-march=core2 -mtune=generic -pipe -O2" MACHINE_CFLAGS=$EXTRA_CFLAGS make V=1
It compiles DPDK 1.8.0 from source on my test env.
John
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual machine
2015-03-11 14:14 ` Mcnamara, John
@ 2015-03-11 15:25 ` Vasiliy Tolstov
0 siblings, 0 replies; 3+ messages in thread
From: Vasiliy Tolstov @ 2015-03-11 15:25 UTC (permalink / raw)
To: Mcnamara, John; +Cc: dev
2015-03-11 17:14 GMT+03:00 Mcnamara, John <john.mcnamara@intel.com>:
> Hi,
>
> CFLAGS for DPDK are usually set via EXTRA_CFLAGS. Try the following as a final set after the other config above:
>
> EXTRA_CFLAGS="-march=core2 -mtune=generic -pipe -O2" MACHINE_CFLAGS=$EXTRA_CFLAGS make V=1
>
> It compiles DPDK 1.8.0 from source on my test env.
Thanks, this works fine.
--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-11 15:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 13:47 [dpdk-dev] failed to build latest dpdk 1.8.0 on kvm virtual machine Vasiliy Tolstov
2015-03-11 14:14 ` Mcnamara, John
2015-03-11 15:25 ` Vasiliy Tolstov
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).