From b1c3dd41b26e6280d761a1a19e23319e5fcfc347 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Wed, 11 Sep 2019 04:00:15 -0400 Subject: [PATCH] configure: disable internal rte_vhost on FreeBSD On master DPDK (d03d8622d), building SPDK on FreeBSD fails due to attempt to build internal rte_vhost. This started occuring with SPDK patch: 28099e0 "make: add dependencies for the rte_vhost build." This patch disables VHOST_INTERNAL_LIB on FreeBSD, along with vhost/virtio. Errors seen: ./configure --enable-debug --enable-werror --with-fio=/usr/src/fio --without-isal --with-dpdk=/var/jenkins/workspace/Other_systems/freebsd_autotest/dpdk/build Using default SPDK env in /var/jenkins/workspace/Other_systems/freebsd_autotest/spdk/lib/env_dpdk Notice: DPDK's rte_vhost not found or version < 19.05, using internal, legacy rte_vhost library. Vhost is only supported on Linux. Disabling it. Virtio is only supported on Linux. Disabling it. ... gmake -j4 ... CC lib/rte_vhost/socket.o In file included from socket.c:52: ./vhost.h:41:10: fatal error: 'linux/vhost.h' file not found #include ^~~~~~~~~~~~~~~ .... CC lib/rte_vhost/vhost_user.o vhost_user.c:41:10: fatal error: 'asm/mman.h' file not found #include ^~~~~~~~~~~~ Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468043 (master) (cherry picked from commit 1bed73896e5c8438290cfd5b3dd6e8762201a509) Change-Id: Ia2f5fd98a82412a5691bc0f2201f7259a45d2b4d Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468301 Reviewed-by: Jim Harris Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 9f9b60cabe..2b98deea5a 100755 --- a/configure +++ b/configure @@ -477,6 +477,10 @@ if [[ "$OSTYPE" == "freebsd"* ]]; then echo "Vhost is only supported on Linux. Disabling it." CONFIG[VHOST]="n" fi + if [[ "${CONFIG[VHOST_INTERNAL_LIB]}" == "y" ]]; then + echo "Internal rte_vhost library is only supported on Linux. Disabling it." + CONFIG[VHOST_INTERNAL_LIB]="n" + fi if [[ "${CONFIG[VIRTIO]}" == "y" ]]; then echo "Virtio is only supported on Linux. Disabling it." CONFIG[VIRTIO]="n"