Hi,
On Sun, 2017-11-12 at 12:08 +0000, Shachar Beiser wrote:
> 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 ?  
Before invoking the actual make command... do this:export 
EXTRA_CFLAGS="-Wformat 
-fPIC -Wno-error=array-bounds"
>       
> 
>                    -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
Cheers,Marco
>  
> 
> 
> 
> From: Marco Varlese [mailto:mvarl...@suse.de] 
> 
> Sent: Thursday, November 9, 2017 6:12 PM
> 
> To: Shachar Beiser <shacha...@mellanox.com>; vpp-dev@lists.fd.io
> 
> Cc: Amir Zeidner <amir...@mellanox.com>; Shahaf Shuler <shah...@mellanox.com>;
> Eyal Lavee <ela...@mellanox.com>
> 
> 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
> > vpp-dev@lists.fd.io
> > https://lists.fd.io/mailman/listinfo/vpp-dev
> 
> 
> 
> 
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to