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

VPP no longer builds on Arm Cortex due to af_xdp plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • af_xdp, Build system
    • None

      Workaround (cd src/plugins/af_xdp/ & mv CMakeLists.txt CMakeLists.dont_build)

      Build fails with:
      ccache /usr/lib/ccache/gcc-9 -DHAVE_FCNTL64 -DHAVE_GETCPU -DHAVE_MEMFD_CREATE -I/vpp/src -I. -Iinclude -I/vpp/src/plugins -Iplugins -I/vpp/build-root/install-vpp_debug-native/external/include -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=armv8-a+crc -O0 -DCLIB_DEBUG -fstack-protector -DFORTIFY_SOURCE=2 -fno-common -fPIC -DCLIB_MARCH_VARIANT=octeontx2 -march=armv8.2-a+crc+crypto+lse -DCLIB_N_PREFETCHES=8 -MD -MT plugins/af_xdp/CMakeFiles/af_xdp_plugin_octeontx2.dir/input.c.o -MF plugins/af_xdp/CMakeFiles/af_xdp_plugin_octeontx2.dir/input.c.o.d -o plugins/af_xdp/CMakeFiles/af_xdp_plugin_octeontx2.dir/input.c.o -c /vpp/src/plugins/af_xdp/input.c
      In file included from /vpp/src/vppinfra/cache.h:41,
      from /vpp/src/vppinfra/smp.h:41,
      from /vpp/src/vppinfra/os.h:97,
      from /vpp/src/vppinfra/mem.h:48,
      from /vpp/src/vppinfra/vec.h:42,
      from /vpp/src/vppinfra/format.h:44,
      from /vpp/src/vppinfra/elf.h:41,
      from /vpp/src/vppinfra/elf_clib.h:41,
      from /vpp/src/vlib/vlib.h:44,
      from /vpp/src/plugins/af_xdp/input.c:19:
      /vpp/src/plugins/af_xdp/input.c: In function ‘af_xdp_device_input_refill’:
      /vpp/src/vppinfra/error_bootstrap.h:111:34: error: static assertion failed: "wrong size"
      111 | #define STATIC_ASSERT(truth,...) Static_assert(truth, __VA_ARGS_)

      ^~~~~~~~~~~~~~
      /vpp/src/plugins/af_xdp/input.c:140:3: note: in expansion of macro ‘STATIC_ASSERT’
      140
      STATIC_ASSERT (sizeof (vlib_buffer_t) == XDP_PACKET_HEADROOM, "wrong size");
      ^~~~~~~~~~~~~
      [6/1148] Building C object plugins/af_xdp/CMakeFiles/af_xdp_plugin_thunderx2t99.dir/output.c.o
      ninja: build stopped: subcommand failed.

            bganne Benoît Ganne
            pvinci Paul Vinciguerra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: