-----Original Message----- From: Ben Pfaff <b...@ovn.org> Date: Tuesday, August 8, 2017 at 11:22 AM To: Darrell Ball <db...@vmware.com> Cc: "d...@openvswitch.org" <d...@openvswitch.org> Subject: Re: [ovs-dev] DPDK build errors on travis
Yes, travis is switching. We need to adapt to it sooner or later. It is possible that the best solution here is to disable the particular warning, for example by adding -Wno-error=inline to some appropriate CFLAGS. I tried a few approaches… -Wno-error=inline worked Thanks Or maybe this line in linux-build.sh needs adjustment: find ./ -type f | xargs sed -i 's/max-inline-insns-single=100/max-inline-insns-single=400/' On Tue, Aug 08, 2017 at 05:09:17PM +0000, Darrell Ball wrote: > We ran these builds many times with 17.05.1 and they were fine. > Is Travis switching over to a new build environment ? > > I saw a notification > > “This job ran on our Trusty environment, which is gradually becoming our default Linux environment. Read all about this in our blog: Trusty as a default Linux is coming and take note that you can add dist: precise in your .travis.yml file to continue using Precise.” > > > > > > -----Original Message----- > From: <ovs-dev-boun...@openvswitch.org> on behalf of Ben Pfaff <b...@ovn.org> > Date: Tuesday, August 8, 2017 at 10:01 AM > To: "d...@openvswitch.org" <d...@openvswitch.org> > Subject: [ovs-dev] DPDK build errors on travis > > The travis builds with DPDK enabled and kernel 3.16.46 > (e.g. https://urldefense.proofpoint.com/v2/url?u=https-3A__travis-2Dci.org_openvswitch_ovs_jobs_262034416&d=DwIGaQ&c=uilaK90D4TOVoH58JNXRgQ&r=BVhFA09CGX7JQ5Ih-uZnsw&m=f9mUm5fLWvW1BWsgzQdwLeGoXH_2sG-pQAmCnB2sHGA&s=mvpkSBHpwq4BM3KdvUVO7wnd_x7WCMnVQTy82wXdJSo&e= ) are failing > with the following errors: > > = Build lib/librte_eal/linuxapp/igb_uio > make[1]: Entering directory `/home/travis/build/openvswitch/ovs/linux-3.16.46' > WARNING: Symbol version dump ./Module.symvers > is missing; modules will have no dependencies and modversions. > LD /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/built-in.o > CC [M] /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o > In file included from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/dma-mapping.h:82:0, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/asm-generic/pci-dma-compat.h:7, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/pci.h:118, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/pci.h:1420, > from /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:29: > /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/dma-mapping.h: In function ‘igbuio_pci_probe’: > /home/travis/build/openvswitch/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] > static inline struct dma_map_ops *get_dma_ops(struct device *dev) > ^ > In file included from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/dma-mapping.h:82:0, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/asm-generic/pci-dma-compat.h:7, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/pci.h:118, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/pci.h:1420, > from /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:29: > /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/dma-mapping.h:134:22: error: called from here [-Werror=inline] > struct dma_map_ops *ops = get_dma_ops(dev); > ^ > In file included from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/dma-mapping.h:82:0, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/asm-generic/pci-dma-compat.h:7, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/pci.h:118, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/pci.h:1420, > from /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:29: > /home/travis/build/openvswitch/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] > static inline struct dma_map_ops *get_dma_ops(struct device *dev) > ^ > In file included from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/dma-mapping.h:82:0, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/asm-generic/pci-dma-compat.h:7, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/pci.h:118, > from /home/travis/build/openvswitch/ovs/linux-3.16.46/include/linux/pci.h:1420, > from /home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:29: > /home/travis/build/openvswitch/ovs/linux-3.16.46/arch/x86/include/asm/dma-mapping.h:164:22: error: called from here [-Werror=inline] > struct dma_map_ops *ops = get_dma_ops(dev); > ^ > cc1: all warnings being treated as errors > make[8]: *** [/home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o] Error 1 > make[7]: *** [_module_/home/travis/build/openvswitch/ovs/dpdk-stable-17.05.1/build/build/lib/librte_eal/linuxapp/igb_uio] Error 2 > make[6]: *** [sub-make] Error 2 > make[5]: *** [igb_uio.ko] Error 2 > make[4]: *** [igb_uio] Error 2 > make[3]: *** [linuxapp] Error 2 > make[2]: *** [librte_eal] Error 2 > make[1]: *** [lib] Error 2 > make: *** [all] Error 2 > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev&d=DwIGaQ&c=uilaK90D4TOVoH58JNXRgQ&r=BVhFA09CGX7JQ5Ih-uZnsw&m=f9mUm5fLWvW1BWsgzQdwLeGoXH_2sG-pQAmCnB2sHGA&s=wVA0grtDfC3rkhwD1gsLTBvLc0nzg-9Ss8G6VaBW3Zk&e= > > _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev