Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-2075

VPP 23.02 failing on Debian 12 (bookworm)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Open
    • Icon: High High
    • None
    • 23.02
    • af_xdp, Build system
    • None

      Hello All,

      I'm building VPP 23.02 on Debian 12 (bookworm) and facing the following issue:

      [4/935] Linking C shared library lib/x86_64-linux-gnu/vpp_plugins/af_xdp_plugin.so
      FAILED: lib/x86_64-linux-gnu/vpp_plugins/af_xdp_plugin.so 
      : && /usr/lib/ccache/clang -target=x86_64-linux-gnu -fPIC    -shared  -o lib/x86_64-linux-gnu/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  /opt/vpp/external/x86_64/lib/libxdp.a  /opt/vpp/external/x86_64/lib64/libbpf.a  /usr/lib/x86_64-linux-gnu/libelf.so  /usr/lib/x86_64-linux-gnu/libz.so && :
      /usr/bin/x86_64-linux-gnu-ld: /opt/vpp/external/x86_64/lib64/libbpf.a(usdt.o): warning: relocation against `libbpf_mode' in read-only section `.text'
      /usr/bin/x86_64-linux-gnu-ld: /opt/vpp/external/x86_64/lib64/libbpf.a(btf.o): relocation R_X86_64_PC32 against symbol `libbpf_mode' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/x86_64-linux-gnu-ld: final link failed: bad value
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      [7/935] Building C object CMakeFiles/plugins/avf/CMakeFiles/avf_plugin.dir/device.c.o
      ninja: build stopped: subcommand failed.
      make[1]: *** [Makefile:693: vpp-build] Error 1
      make: *** [Makefile:385: build] Error 2

            dbarach Dave Barach
            ceazar123 Srijan Nandi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: