Skip to content

Commit

Permalink
travis: Fix DPDK builds in new environment.
Browse files Browse the repository at this point in the history
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 <blp@ovn.org>
Signed-off-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
darball1 authored and blp committed Aug 9, 2017
1 parent 7aa47a1 commit 78f75b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis/linux-build.sh
Expand Up @@ -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
Expand Down

0 comments on commit 78f75b6

Please sign in to comment.