Linking error with DPDK 17.11.4 during compilation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpdk (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello everybody,
Just in case where you are still facing to below issue and you are still wondering how to solve that ?
I had faced to below linking error but only when I had tried to compile my application with DPDK 17.11.4
Below the Virtual Machine configuration I had used :
Platform : VM
Architecture : x86_64 bits
Distrib : Ubuntu 18.04
GCC : 7.5.0
GLIBC : 2.27
Linux kernel version : 4.18.0-25-generic
/usr/lib/
(.text+0x0): multiple definition of `_ZGVbN2v_
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
(.text+0x30): multiple definition of `_ZGVeN8v_
/usr/lib/
/usr/lib/
(.text+0x40): multiple definition of `_ZGVbN4v_
...
...
/usr/lib/
collect2: error: ld returned 1 exit status
GNUmakefile:84: recipe for target 'my_app' failed
make: *** [my_app] Error 1
To solve that, I had proceeded as below :
*******
cd dpdk-stable-17.11.4
rm -rf build/.config*
echo "CONFIG_
make config T=x86_64-
make
*******
And when I had recompiled my app, it was working well.
Hoping it will be helpful.
Thanks, you might have otherwise needed to link against the THUNDERX_NICVF_PMD.
I'll be setting this to invalid as there is nothing we can do on Ubuntu packaging to resolve this, but it is good info for anyone else affected.
If more are hitting this please leave a not that I can revisit it if it is a real underlying issue.
Note: in later releases dpdk provides a pkg-config file (the way this is done right) which will give you the right includes to build against DPDK (better than the old linker script). /salsa. debian. org/debian/ dpdk/-/ blob/unstable/ debian/ dpdk-doc. README. Debian# L33
See: https:/