[Pkg-dpdk-devel] Bug#917984: Bug#917984: Can not link ODP with newer DPDK

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Wed Jan 2 11:55:20 GMT 2019


Hello,

ср, 2 янв. 2019 г. в 14:49, Luca Boccassi <bluca at debian.org>:
>
> On Wed, 2019-01-02 at 01:43 +0300, Dmitry Eremin-Solenikov wrote:
> Strange that libtool is messing things up, I've used the same pkgconfig
> file in a few different projects that use autoconf/automake and I
> haven't seen this issue.

libtool rearranges/squashes linking flags in an attempt to find 'better'
linking flags. Unfortunately this fail for DPDK. We have worked around
this by squashing all PMDs into a single gcc argument:
-Wl,--whole-archive,-lrte_pmd_af_packet,-lrte_pmd_ark,........,-lrte_pmd_vmxnet3_uio,--no-whole-archive
-ldpdk

Thus libtool won't move PMDs from --whole-archive/--no-whole-archive brackets.

> I had a look on github, and it does not seem that odp is currently
> using pkg-config, but rather doing some manual check - is there a
> branch in a fork or a patch you could point me to so that I can try to
> reproduce?

No, I have not pushed my code to github yet. The easies way to reproduce
is to statically link a sample program with libtool and check that generated
ELF contains all PMDs.

-- 
With best wishes
Dmitry



More information about the Pkg-dpdk-devel mailing list