From 78f75b6d761d5243a0374a8d6fef4ebee345761d Mon Sep 17 00:00:00 2001 From: Darrell Ball Date: Tue, 8 Aug 2017 23:57:36 -0700 Subject: [PATCH] travis: Fix DPDK builds in new environment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following error is seen: 17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:29: /home/travis/build/darball/ovs/linux-3.16.46/arch/x86/include/asm/ dma-mapping.h:32:35: error: inlining failed in call to ‘get_dma_ops’: call is unlikely and code size would grow [-Werror=inline] -Wno-error=inline is used to address the issues with the new environment. Suggested-by: Ben Pfaff Signed-off-by: Darrell Ball Signed-off-by: Ben Pfaff --- .travis/linux-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh index efccdf14182..d6f610ea1e2 100755 --- a/.travis/linux-build.sh +++ b/.travis/linux-build.sh @@ -61,6 +61,7 @@ function install_dpdk() cd dpdk-stable-$1 fi find ./ -type f | xargs sed -i 's/max-inline-insns-single=100/max-inline-insns-single=400/' + find ./ -type f | xargs sed -i 's/-Werror/-Werror -Wno-error=inline/' echo 'CONFIG_RTE_BUILD_FPIC=y' >>config/common_linuxapp sed -ri '/EXECENV_CFLAGS = -pthread -fPIC/{s/$/\nelse ifeq ($(CONFIG_RTE_BUILD_FPIC),y)/;s/$/\nEXECENV_CFLAGS = -pthread -fPIC/}' mk/exec-env/linuxapp/rte.vars.mk make config CC=gcc T=x86_64-native-linuxapp-gcc