From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 75BB8A00BE; Wed, 30 Oct 2019 10:09:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0E941BF55; Wed, 30 Oct 2019 10:09:48 +0100 (CET) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 441681BF53 for ; Wed, 30 Oct 2019 10:09:48 +0100 (CET) Received: by mail-lj1-f193.google.com with SMTP id y23so1376221ljc.5 for ; Wed, 30 Oct 2019 02:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=sLNniO5Ml9sxH8VeKr5H6j2uSWMNkz04sbwIJ8eKTUw=; b=VydDbP0wkGdMLZgg4CdupaB2ZYLcJ27JoVp3LPnvkoyIuM6og2/SPyAXu6BPKoRxfb hj+yefoW1jX/qtc7RkemwcEnAwwmvbEZuMRrFKKAW1eCRFtC9wz+cxtyfdjBU5PWA/TJ mfp+k+BroaDA+hDcXJNfWQi0pRbkChTzHsP2oFtsTnpvraIZ9zqEsekllqE6Qir4WGdi uINHyCCUnJpxq4IiPcr8tbRh7RPmsVCWOogY9F96TIfWi5I/8KUud5v9UnB7PY6A77b0 9McugtOQR+BXSBayRx7Tr9PKvxD3Urw6NOq4joUZ10vFj6LwpA7yr0QYo/eik53PblOO j7SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sLNniO5Ml9sxH8VeKr5H6j2uSWMNkz04sbwIJ8eKTUw=; b=k8jiOw5DfLsfMrC51PzZulV5abUr0PYJ2MKrvj4r+tMq8rgv0KaK9I65NGK58btX1y tYJrjlRIfiUuRmLPWK5g+qfFfVzAqrMaJuhGBPuaZRt/jl2o2d14gFkzoulumCwHe51d xMIr/rXXgP/adJVl9kSdj1FMb4KHeu1g1aPuTHp/jP+f5OWmxq7MFH+fUuFJ0Ks2X430 fMkLHfKRkkJsZ31mFLI0rN1ul7ELze2EyRfheHeAKxi/B/sVOZQWE4x3L9uQgEXfUwoI nOfSOfEaySkLP5GG8oGkUod4YvpZKNFZ0ksk0DBuCQJGeha/17+yK7rbCfsOmV2i8HJg a75w== X-Gm-Message-State: APjAAAWx5IIkGjcs3m4g3ibh2cZmGwLCDJup7a0/JFw6EgAYs/tvThZX RI+6Rub/Jlm2LyehBj3tc8fE+g== X-Google-Smtp-Source: APXvYqxh5n0osuwh08DHK9ndofAkexg5McVMrkmvd3v/VWJH5mNF0R0lkHfrp/ZZ9XwH173b7zspdg== X-Received: by 2002:a2e:975a:: with SMTP id f26mr4870568ljj.74.1572426587791; Wed, 30 Oct 2019 02:09:47 -0700 (PDT) Received: from [10.0.0.72] (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id 90sm1441408ljc.0.2019.10.30.02.09.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Oct 2019 02:09:47 -0700 (PDT) To: dev@dpdk.org, Aaron Conole , Michael Santana References: <20191028142145.3758-1-aostruszka@marvell.com> <20191029141212.4907-1-aostruszka@marvell.com> From: Andrzej Ostruszka Message-ID: <68298f82-1657-d798-5b3f-c2cab6687ad9@semihalf.com> Date: Wed, 30 Oct 2019 10:09:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191029141212.4907-1-aostruszka@marvell.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v6 00/12] Add an option to use LTO for DPDK build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/29/19 3:12 PM, Andrzej Ostruszka wrote: > This patch series adds an option to make use of link time optimization > (if compiler has support for it). [...] > .travis.yml | 7 ++++ [...] Aaron, Michael, all I'd probably need some assistance with Travis. This patchset added following changes: diff --git a/.travis.yml b/.travis.yml index 3d6ef2959..3cd746dba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,7 @@ env: - DEF_LIB="static" OPTS="-Denable_kmods=false" - DEF_LIB="shared" OPTS="-Denable_kmods=false" - DEF_LIB="shared" RUN_TESTS=1 + - DEF_LIB="shared" OPTS="-Db_lto=true" matrix: include: @@ -105,6 +106,12 @@ matrix: apt: packages: - *extra_packages + - env: DEF_LIB="shared" OPTS="-Db_lto=true" EXTRA_PACKAGES=1 + compiler: gcc + addons: + apt: + packages: + - *extra_packages however I have to admit I'm not familiar with Travis and the actual meaning of that configuration (that is it's actual mapping to builds). I'm getting following CI errors: 1. https://travis-ci.com/ovsrobot/dpdk/jobs/250599578 This is with clang - this patchset should not be run with clang as it is not supported. In build "matrix" there is 'gcc' specified but somehow clang build is attempted. Please advice me how to change this .travis.yml to stop that - should I remove entry in "env"? 2. https://travis-ci.com/ovsrobot/dpdk/jobs/250599577 https://travis-ci.com/ovsrobot/dpdk/jobs/250599591 This is with gcc and meson with shared library and I can't reproduce this. The are two problems reported, first a compiler warning which seems to be not connected at all with the changes: --8<------------------------ /usr/include/x86_64-linux-gnu/bits/unistd.h:39:9: warning: call to ‘__read_chk_warn’ declared with attribute warning: read called with bigger length than size of the destination buffer return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf)); ^ In function ‘__read_alias’, inlined from ‘eal_intr_process_interrupts’ at ../lib/librte_eal/linux/eal/eal_interrupts.c:911:17, inlined from ‘eal_intr_handle_interrupts’ at ../lib/librte_eal/linux/eal/eal_interrupts.c:1030:7, inlined from ‘eal_intr_thread_main’ at ../lib/librte_eal/linux/eal/eal_interrupts.c:1100:3: --8<------------------------ and a second linker error: --8<------------------------ FAILED: gcc -o lib/librte_lpm.so.2.1 'lib/76b5a35@@rte_lpm@sha/librte_lpm_rte_lpm.c.o' 'lib/76b5a35@@rte_lpm@sha/librte_lpm_rte_lpm6.c.o' -flto -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,librte_lpm.so.2 -Wl,--no-as-needed -pthread -lm -ldl -lnuma -Wno-lto-type-mismatch lib/librte_eal.so.12.1 lib/librte_kvargs.so.1.1 lib/librte_hash.so.2.1 lib/librte_ring.so.2.1 -Wl,--version-script=/home/travis/build/ovsrobot/dpdk/lib/librte_lpm/rte_lpm_version.map /usr/lib/x86_64-linux-gnu/libbsd.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/' -Wl,-rpath-link,/home/travis/build/ovsrobot/dpdk/build/lib /tmp/ccZPEQKf.ltrans3.ltrans.o: In function `rte_lpm6_delete_bulk_func': :(.text+0xf01): undefined reference to `rte_lpm6_add' --8<------------------------ As I've said I can't reproduce none of these problems - are they some CI issues? I'd appreciate some help with these. Regards Andrzej