[dpdk-dev] Unable to compile DPDK 2.1

Mcnamara, John john.mcnamara at intel.com
Mon Oct 12 13:48:36 CEST 2015


> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Gal Sagie
> Sent: Monday, October 12, 2015 9:20 AM
> To: <dev at dpdk.org>
> Subject: [dpdk-dev] Unable to compile DPDK 2.1
> 
> Hello all,
> 
> I was trying to help someone compile DPDK2.1 on Ubuntu 14.04, we were
> following the instructions on http://www.dpdk.org/doc/quick-start
> 
> We installed libpcap using "sudo apt-get install libpcap-dev"
> 
> When starting the 'make' the following error occured:
> 
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/i686-linux-gnu/4.8/../../../libpcap.so
>  when searching for -lpcap /usr/bin/ld:
> skipping incompatible //usr/lib/libpcap.so when searching for -lpcap
> /usr/bin/ld: cannot find -lpcap
> 
> Anyone can please help with this?

Hi,

That looks like a 32/64 bit incompatibility between the lib and app.

What is your full make line or what exports did you do prior to running make? Also what OS are you on (see commands below).

I tried with a clean 64 bit Ubuntu 14.04 install in a VM and was able to build dpdk with pcap support:


# uname -a
Linux vbox-ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root at vbox-ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.1 LTS
Release:	14.04
Codename:	trusty


# apt-get update
# apt-get install git
# apt-cache search pcap
# apt-get install libpcap-dev

   
# locate libpcap.so
/usr/lib/x86_64-linux-gnu/libpcap.so.0.8
/usr/lib/x86_64-linux-gnu/libpcap.so.1.5.3


$ git clone http://dpdk.org/git/dpdk

$ cd dpdk/

$ vi config/common_linuxapp

$ git diff
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 0de43d5..cccbda4 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -267,7 +267,7 @@ CONFIG_RTE_PMD_RING_MAX_TX_RINGS=16
 #
 # Compile software PMD backed by PCAP files
 #
-CONFIG_RTE_LIBRTE_PMD_PCAP=n
+CONFIG_RTE_LIBRTE_PMD_PCAP=y

$ make T=x86_64-native-linuxapp-gcc -j install
...
Build complete [x86_64-native-linuxapp-gcc]





More information about the dev mailing list