Hi,
I followed the instructions in the previous email, but it is still not
working. ( See the compilation issue down below)
Could be that issue is in the DPDK compilation and not in the VPP itself ?
I am compiling the DPDK as follows:
Home/Ubuntu/dpdk >sudo make install T=x86_64-native-linuxapp-gcc
-j32.
Is that the way you have built your DPDK ?
-Shachar Beiser.
make V=1 bootstrap
make V=1 build-release
/usr/bin/ld:
/home/ubuntu/dpdk.org/x86_64-native-linuxapp-gcc/lib/librte_mempool_stack.a(rte_mempool_stack.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/home/ubuntu/dpdk.org/x86_64-native-linuxapp-gcc/lib/librte_mempool_stack.a(rte_mempool_stack.o):
error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'dpdk_plugin.la' failed
From: Marco Varlese [mailto:[email protected]]
Sent: Thursday, November 9, 2017 6:12 PM
To: Shachar Beiser <[email protected]>; [email protected]
Cc: Amir Zeidner <[email protected]>; Shahaf Shuler <[email protected]>;
Eyal Lavee <[email protected]>
Subject: Re: [vpp-dev] dpdk external
Dear Beiser,
I currently build (and actually create a package for SUSE distro) for VPP 17.10
compiling against a shared DPDK installation without any issues.
First of all, I apply the below patch:
--- build-data/platforms/vpp.mk.old 2017-08-21 16:05:45.202038250 +0200
+++ build-data/platforms/vpp.mk 2017-08-21 16:05:59.794798235 +0200
@@ -40,10 +40,10 @@
# DPDK configuration parameters
# vpp_uses_dpdk_mlx5_pmd = yes
-# vpp_uses_external_dpdk = yes
-# vpp_dpdk_inc_dir = /usr/include/dpdk
-# vpp_dpdk_lib_dir = /usr/lib
-# vpp_dpdk_shared_lib = yes
+vpp_uses_external_dpdk = yes
+vpp_dpdk_inc_dir = /usr/include/dpdk
+vpp_dpdk_lib_dir = /usr/lib
+vpp_dpdk_shared_lib = yes
# load balancer plugin is not portable on 32 bit platform
ifeq ($(MACHINE),i686)
After doing that, the steps I follow are pretty straight forward:
$ make V=1 bootstrap
$ make V=1 build-release
Can you try the above?
Cheers,
Marco
On Thu, 2017-11-09 at 15:10 +0000, Shachar Beiser wrote:
Hi ,
I am trying to compile with DPDK external . it fails to compile.
-Shachar Beiser
Both on master branch and on origin/stable/1710 the following procedure is not
working
------------------------------------------------------------------------------------------------------------
export CFLAGS="-g -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -march=sandybridge
-O2 -I/home/ubuntu/dpdk.org/x86_64-native-linuxapp-gcc/include
-L/home/ubuntu/dpdk.org/x86_64-native-linuxapp-gcc/lib"
sudo autoreconf -fis
sudo ./configure -disable-japi
sudo make -j32
Failure
--------
CC vnet/interface_cli.lo
(null):48 syntax error
Makefile:8077: recipe for target 'vnet/geneve/geneve.api.h' failed
make[2]: *** [vnet/geneve/geneve.api.h] Error 1
make[2]: *** Waiting for unfinished jobs....
CC vnet/interface_format.lo
(null):48 syntax error
Makefile:8077: recipe for target 'vnet/dns/dns.api.h' failed
make[2]: *** [vnet/dns/dns.api.h] Error 1
make[2]: Leaving directory '/home/ubuntu/vpp.bin/src'
Makefile:7068: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/vpp.bin/src'
Makefile:3597: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
vpp-dev mailing list
[email protected]<mailto:[email protected]>
https://lists.fd.io/mailman/listinfo/vpp-dev<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fd.io%2Fmailman%2Flistinfo%2Fvpp-dev&data=02%7C01%7Cshacharbe%40mellanox.com%7Ccf72251498f6494798bf08d5278cad8f%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636458407534651100&sdata=IqXfmN%2F37iUUm4n193wHzJGla3qDZHSKHkFSYd3QI90%3D&reserved=0>
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev