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

VPP 23.02 Does not build on Ubuntu 22.04

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 23.02
    • Build system
    • None

      Hi all, I'm building VPP 23.02 on Ubuntu 22.04 and encountering fresh build issues. I've previously had this working with VPP "v23.02-rc1" and "v23.02-rc2".

      The only difference in my environment since the v23.02-rc2 build is I've installed `dpdk-dev` and `libdpdk-dev` to try and build missing features from prior my prior builds.

      [1/929] 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  /root/vpp/build-root/install-vpp_debug-native/external/lib/libxdp.a  /root/vpp/build-root/install-vpp_debug-native/external/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: /root/vpp/build-root/install-vpp_debug-native/external/lib64/libbpf.a(usdt.o): warning: relocation against `libbpf_mode' in read-only section `.text'
      /usr/bin/x86_64-linux-gnu-ld: /root/vpp/build-root/install-vpp_debug-native/external/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)
      [2/929] Building C object CMakeFiles/plugins/af_xdp/CMakeFiles/af_xdp_test_plugin.dir/test_api.c.o
      ninja: build stopped: subcommand failed.
      make[1]: *** [Makefile:693: vpp-build] Error 1
      make[1]: Leaving directory '/root/vpp/build-root'
      make: *** [Makefile:385: build] Error 2

            dbarach Dave Barach
            viroemer Victor Roemer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: