When attempting to build vpp against system libraries (dpdk, libbpf, etc)
on Debian Bullseye I get the following error when building the
af_xdp_plugin.so

Is the af_xdp plugin doing something unusual with libbpf?

Thanks,
Nick

cd vpp/src
mkdir mybuild
cd mybuild
cmake -GNinja -DVPP_USE_SYSTEM_DPDK=ON
ninja -k0

[1/1] Linking C shared library lib/vpp_plugins/af_xdp_plugin.so
FAILED: lib/vpp_plugins/af_xdp_plugin.so
: && ccache /usr/bin/gcc-10 -fPIC    -shared  -o
lib/vpp_plugins/af_xdp_plugin.so
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_hsw.dir/input.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_hsw.dir/output.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_skx.dir/input.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_skx.dir/output.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_icl.dir/input.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin_icl.dir/output.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/api.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/cli.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/device.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/format.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/unformat.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/plugin.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/input.c.o
CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_plugin.dir/output.c.o
 -Wl,-rpath,::::::::::::::  -Wl,--gc-sections
 /usr/lib/x86_64-linux-gnu/libbpf.a  /usr/lib/x86_64-linux-gnu/libelf.so
 /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbpf.a(libbpf.o): warning:
relocation against `stderr@@GLIBC_2.2.5' in read-only section `.text'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbpf.a(libbpf.o): relocation
R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
ninja: build stopped: cannot make progress due to previous errors.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20099): https://lists.fd.io/g/vpp-dev/message/20099
Mute This Topic: https://lists.fd.io/mt/85468297/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to