All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to compile DPDK 2.1
@ 2015-10-12  8:19 Gal Sagie
  2015-10-12 11:48 ` Mcnamara, John
  0 siblings, 1 reply; 2+ messages in thread
From: Gal Sagie @ 2015-10-12  8:19 UTC (permalink / raw)
  To: <dev@dpdk.org>

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?


Thanks
Gal.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to compile DPDK 2.1
  2015-10-12  8:19 Unable to compile DPDK 2.1 Gal Sagie
@ 2015-10-12 11:48 ` Mcnamara, John
  0 siblings, 0 replies; 2+ messages in thread
From: Mcnamara, John @ 2015-10-12 11:48 UTC (permalink / raw)
  To: Gal Sagie, <dev@dpdk.org>

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Gal Sagie
> Sent: Monday, October 12, 2015 9:20 AM
> To: <dev@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@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]




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-12 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12  8:19 Unable to compile DPDK 2.1 Gal Sagie
2015-10-12 11:48 ` Mcnamara, John

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.