From patchwork Thu Jan 18 05:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124916 Delivered-To: patch@linaro.org Received: by 10.46.62.1 with SMTP id l1csp313393lja; Wed, 17 Jan 2018 21:01:36 -0800 (PST) X-Google-Smtp-Source: ACJfBovGyWq5WDytlbGO2B/BNpYVb2lMWyGSzZQe8fPLG4GuBdaFdj2dlez36dXRU7O6dEXsedW5 X-Received: by 10.55.164.144 with SMTP id n138mr19384398qke.67.1516251695947; Wed, 17 Jan 2018 21:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516251695; cv=none; d=google.com; s=arc-20160816; b=gLMeU+ztTqH26eya+lzE1CjUS7FOVwOKCjoVpiCJc8ElBT979b0Q3KC+wk6r6oIiXA WosVTQbRk7dNSUIiyykXS8FivkzyBKQe5TTpwQGMe9GZVqTXpJUCyHvsOcyU9vfMd2ow juGJXT3ARbfMsBUe5MXVi5xrR6w7jNgNmYNXGaX8MmPyUibJjUgPdGheHqGdCktPdZyj aARyPJKQX8qu3XUL3h5mUlf7vDp/1Z7jPWxuo06dr/6KrADhOU2KrMxLxBSM4RgyyeDr L6KIpNqaHDzSsea3Gs+uL5ej7KESYx3WeBnjnPO5jYe/p5LRAwMM752OOvlGIRM/SIBA IvWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=5cKljjPbIenFwbujPsgUNyo1t0lwfhilsxSlsE/H7nQ=; b=hp1DLnbsUkxEo5dRDhoPxJgUWHST/l3is7BEMtCS+qFHs9Dz0/S/jnsw6JEtCprQbb 2re0pv5hyn6z8n34sE7JYOvbeqgkz3v240xKWSCswueXAP54pC00dXu1kap969J/UDhH N+KixK0M9B7gGA1tHnEwDSWSt3dMvCFinwAydjJ4GxnBQusyjD7/8+SXC3QfJecD0OR4 d9KquP0gj+gnOOILc0jKBExcGunGNo257BtmcWhqGZyxuiwianFlJEhTtDs5bhs/5sBv LM0H55bq5GwkOKd/D5Kgt8k2YWd5nUQXI6EmUvrumOaSiWNP7IKH/nJn2Kez3t2p1Gbj zsfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id k18si6182675qtj.142.2018.01.17.21.01.35; Wed, 17 Jan 2018 21:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 8E60F627A4; Thu, 18 Jan 2018 05:01:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C39E66278E; Thu, 18 Jan 2018 05:00:59 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D867F62776; Thu, 18 Jan 2018 05:00:53 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 1A72B6277C for ; Thu, 18 Jan 2018 05:00:26 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 7A2FB2183775 for ; Thu, 18 Jan 2018 08:00:23 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1uVeF96uNk-0Nh8HJxH; Thu, 18 Jan 2018 08:00:23 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OxxcXB4yuR-0Hq80Hq0; Thu, 18 Jan 2018 08:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 18 Jan 2018 08:00:06 +0300 Message-Id: <1516251609-24228-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> References: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 402 Subject: [lng-odp] [PATCH v1 1/4] travis: stop early when installation of cross-packages has failed X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov If installation of cross-packages fails, installation will abort with obscure error message. Stop early providing more precise "error" point. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 402 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/402 ** Patch: https://github.com/Linaro/odp/pull/402.patch ** Base sha: 1bb6291e4e9050d476fefb02f11024898847e2b7 ** Merge commit sha: ef2af52ea3f3fb674f4f2dcb187eeede6711cb72 **/ .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa352b572..9ab9dacff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -93,15 +93,15 @@ before_install: sudo -E apt-add-repository -y "deb http://ports.ubuntu.com trusty main" ; sudo -E apt-add-repository -y "deb http://ports.ubuntu.com trusty-updates main" ; sudo -E apt-get -y update || true ; - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install build-essential ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install build-essential || exit 1; if [ "$CROSS_ARCH" = "i386" ] ; then - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-multilib ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-multilib || exit 1; else - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" || exit 1; fi ; - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libc6-dev:"$CROSS_ARCH" libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" libstdc++-4.8-dev:"$CROSS_ARCH" libpcap0.8-dev:"$CROSS_ARCH" ; - [ "$CROSS_ARCH" = "armhf" ] || sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libnuma-dev:"$CROSS_ARCH"; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libc6-dev:"$CROSS_ARCH" libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" libstdc++-4.8-dev:"$CROSS_ARCH" libpcap0.8-dev:"$CROSS_ARCH" || exit 1; + [ "$CROSS_ARCH" = "armhf" ] || sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libnuma-dev:"$CROSS_ARCH" || exit 1; export PKG_CONFIG_PATH=/usr/lib/${CROSS_MULTIARCH}/pkgconfig:/usr/${CROSS_MULTIARCH}/lib/pkgconfig ; fi - if [ "${CC#clang}" != "${CC}" ] ; From patchwork Thu Jan 18 05:00:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124915 Delivered-To: patch@linaro.org Received: by 10.46.62.1 with SMTP id l1csp313200lja; Wed, 17 Jan 2018 21:00:59 -0800 (PST) X-Google-Smtp-Source: ACJfBotKoqiPHMV66enU86R6gvBoKKn3Drv12qAPES6IGHGAx0oqoqYSlK/ci0P+Xur/IpnGevyl X-Received: by 10.55.180.197 with SMTP id d188mr62614063qkf.323.1516251659533; Wed, 17 Jan 2018 21:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516251659; cv=none; d=google.com; s=arc-20160816; b=tT/L1hfexxEc+H8CduJNpbGOJpM9KIHeppCx28Gm/g9Xwb+mJGwebY36xtVSMnVfa3 SGXUU/6dPRNwr39KjX4OxsrGFld2XPQlu4tmpiXhqnqLWJd6yN5+jsxGErjLeKlZUGiA E/VYMRY9n0uap/OQDlSb2qBRlHf9R4SQj7CeMpUkt+E2Z7+DPvsUwMQXVTDTTGgRzbIN x+gi1SDfSrp0SQ0uY+p+8DI65MpkhNB4N6ZmOW+PTH8MOyxSGbqk2BMZ7UgrEv//qD7x sqX6R7ZHobm5QjtXR1ZGr7ycDIGlIxD2q4b1tuIZI5J5pKPK1HD3fBo9IZRrL4ZZxsq9 zBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ax4YdgskKfzrKD9AiteqErxr/w3Cnf7U0HEgnb7+UBM=; b=GvXUwQ/3X31/yHwektFJC3tiChXa+FDaOsOF0GyCm5SieZRZ+tD8BLZPOAGPafmz3N fTEQxoQkk3oSeIZFuYAKx9nH5pE1BASzyDoDxJaHLmnprD2L3/NJjUKcP+dIJuf4U8a+ zSjwGo4oC6kIyTfAX/U0QPyBxEaIgnHdh9XsSKJLTcbh7iUl0Tw2biKLooDzn8Erqn1p a5s5AfZI8r2gibprC44YII/QqJp2ngoLoPPE5VnuC+vvBRq6rkTumswneWU+jGGENwSY O4VLu9nHUaVjUjj+idsi82s/nsw6F8QhK7tKoai3Ps3ULUfN4acMRplP55UVuALugWqT lQaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r75si2310750qka.248.2018.01.17.21.00.59; Wed, 17 Jan 2018 21:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 2EB2E62795; Thu, 18 Jan 2018 05:00:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5745661738; Thu, 18 Jan 2018 05:00:56 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 44ACB62776; Thu, 18 Jan 2018 05:00:53 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 4F47D62795 for ; Thu, 18 Jan 2018 05:00:31 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 162DF5D84716 for ; Thu, 18 Jan 2018 08:00:30 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bdy3gUid6J-0UL0WfI0; Thu, 18 Jan 2018 08:00:30 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OxxcXB4yuR-0NqmewGi; Thu, 18 Jan 2018 08:00:23 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 18 Jan 2018 08:00:07 +0300 Message-Id: <1516251609-24228-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> References: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 402 Subject: [lng-odp] [PATCH v1 2/4] travis: compile doxygen only for doxygen test X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov All other tests do not use doxygen. So let's compile doxygen only for doxygen test, saving few minutes. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 402 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/402 ** Patch: https://github.com/Linaro/odp/pull/402.patch ** Base sha: 1bb6291e4e9050d476fefb02f11024898847e2b7 ** Merge commit sha: ef2af52ea3f3fb674f4f2dcb187eeede6711cb72 **/ .travis.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ab9dacff..654baaab5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -152,18 +152,6 @@ before_install: - export PKG_CONFIG_PATH="$HOME/cunit-install/$CROSS_ARCH/lib/pkgconfig:${PKG_CONFIG_PATH}" - find $HOME/cunit-install - # Updated Doxygen - - | - if [ ! -f "$HOME/doxygen-install/bin/doxygen" ]; then - wget https://github.com/doxygen/doxygen/archive/Release_1_8_13.tar.gz - tar xpvf Release_1_8_13.tar.gz - pushd doxygen-Release_1_8_13 - cmake -DCMAKE_INSTALL_PREFIX=$HOME/doxygen-install . - make install - popd - fi - - export PATH=$HOME/doxygen-install/bin:$PATH - install: - echo 1000 | sudo tee /proc/sys/vm/nr_hugepages @@ -298,7 +286,17 @@ jobs: env: TEST=doxygen compiler: gcc install: - - true + # Updated Doxygen + - | + if [ ! -f "$HOME/doxygen-install/bin/doxygen" ]; then + wget https://github.com/doxygen/doxygen/archive/Release_1_8_13.tar.gz + tar xpvf Release_1_8_13.tar.gz + pushd doxygen-Release_1_8_13 + cmake -DCMAKE_INSTALL_PREFIX=$HOME/doxygen-install . + make install + popd + fi + - export PATH=$HOME/doxygen-install/bin:$PATH script: - ./bootstrap - ./configure From patchwork Thu Jan 18 05:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124917 Delivered-To: patch@linaro.org Received: by 10.46.62.1 with SMTP id l1csp313541lja; Wed, 17 Jan 2018 21:02:11 -0800 (PST) X-Google-Smtp-Source: ACJfBou9OMzp5zdqs4UU37g1kqgJMGlUS09fdDca+Tneq84BQCYnJbBPM1PMsVfHM8Cd2MSLoKhQ X-Received: by 10.200.44.34 with SMTP id d31mr14012216qta.14.1516251731418; Wed, 17 Jan 2018 21:02:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516251731; cv=none; d=google.com; s=arc-20160816; b=EkzKTVQq9w2WyBQITrwGQrzFbulLj9h3qW5owphY4nu50Hhsm4RtpXMzya/7W3+c0p axEY03wTuRA6xWIvKaQlxQOX9NdGgg3QeeR2IPIKhhEmNl4KAjfUG5iOeguwTO94UX1F g6ncZv4KbHJhIOxOqgtxe8bAuTh9p5PFQP7OHvul6xxykn7zXbuJw9e0vQelEl87g3y1 u2OQ9xl5ceD/GTEXi1XSfI2fDyLowIIw+MfUasXj2SGhNrouYESEyP0eKEp3C5G3iIB2 Abytf2nUw6xe4qkqVO8+utMKTfbnqxQi596/n9Cnn/3d/GTMVmA5ULSMS/OgvKx1sZ2E crTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=KiXVlCJPIal7fRbaiBeEazOlep8xpB8mOUQMncGP/xQ=; b=cP8SVN2/cPvbWzsTjZEgdoeQmqeTMANPBtBOwmSuzhDHBP36svDVIW8gfxqAo81WhC B0E4YS11z78rxM46U1oU1fzXaF5ovCIqwdVpWI+yaoVpnTuF0vRyKXuq5evLdDXPA0bX vQ0OIKxFVbWseaolH+Iyne39MeL0Kfb4ojPmqX90cwOVKKnRGjqeQTQBlh+/KTCZxqaD WB1gAXSbxV/QkAErtbdxDM8rRBb78OnJtn0HxOgXGtrBnx5RsgQTvh3sylmiiJrvyd/o OmxDqTs7UJ0LlQVcmotMzwBy/gTBneGcyz4r23UKdPi9YRTPk22m8PdXf2FC2mTxl3JB BjkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id o15si2936939qko.273.2018.01.17.21.02.11; Wed, 17 Jan 2018 21:02:11 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1534962797; Thu, 18 Jan 2018 05:02:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3CA316279F; Thu, 18 Jan 2018 05:01:05 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5737F62776; Thu, 18 Jan 2018 05:00:54 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 9845061738 for ; Thu, 18 Jan 2018 05:00:38 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward106o.mail.yandex.net (Yandex) with ESMTP id AB97778262F for ; Thu, 18 Jan 2018 08:00:36 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id H2sVVYgOvh-0aUSgvPr; Thu, 18 Jan 2018 08:00:36 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OxxcXB4yuR-0UqC8ieQ; Thu, 18 Jan 2018 08:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 18 Jan 2018 08:00:08 +0300 Message-Id: <1516251609-24228-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> References: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 402 Subject: [lng-odp] [PATCH v1 3/4] build: another fix for linking with shared libdpdk X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 402 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/402 ** Patch: https://github.com/Linaro/odp/pull/402.patch ** Base sha: 1bb6291e4e9050d476fefb02f11024898847e2b7 ** Merge commit sha: ef2af52ea3f3fb674f4f2dcb187eeede6711cb72 **/ m4/odp_dpdk.m4 | 20 ++++++++++++++------ platform/linux-generic/Makefile.am | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4 index 1887b0431..315a2fc4d 100644 --- a/m4/odp_dpdk.m4 +++ b/m4/odp_dpdk.m4 @@ -17,18 +17,28 @@ AS_VAR_APPEND([DPDK_PMDS], [--no-whole-archive]) # _ODP_DPDK_SET_LIBS # -------------------- -# Set DPDK_LIBS/DPDK_LIBS_LT depending on DPDK setup +# Set DPDK_LIBS/DPDK_LIBS_LT/DPDK_LIBS_LIBODP depending on DPDK setup AC_DEFUN([_ODP_DPDK_SET_LIBS], [dnl AS_IF([test "x$DPDK_SHARED" = "xyes"], [dnl - DPDK_LIBS_LT="" + # applications don't need to be linked to anything, just rpath + DPDK_LIBS_LT="$DPDK_RPATH_LT" + # static linking flags will need -ldpdk DPDK_LIBS="$DPDK_LDFLAGS $DPDK_RPATH $DPDK_LIBS" + # link libodp-linux with -ldpdk + DPDK_LIBS_LIBODP="$DPDK_LDFLAGS $DPDK_LIBS" ], [dnl ODP_DPDK_PMDS([$DPDK_PMD_PATH]) + # build long list of libraries for applications, which should not be + # rearranged by libtool DPDK_LIBS_LT="`echo $DPDK_LIBS | sed -e 's/^/-Wc,/' -e 's/ /,/g'`" DPDK_LIBS_LT="$DPDK_LDFLAGS $DPDK_PMDS $DPDK_LIBS_LT $DPDK_LIBS" + # static linking flags follow the suite DPDK_LIBS="$DPDK_LDFLAGS $DPDK_PMDS $DPDK_LIBS" + # link libodp-linux with libtool linking flags + DPDK_LIBS_LIBODP="$DPDK_LIBS_LT" ]) AC_SUBST([DPDK_LIBS]) +AC_SUBST([DPDK_LIBS_LIBODP]) AC_SUBST([DPDK_LIBS_LT]) ]) @@ -99,7 +109,6 @@ AC_DEFUN([ODP_DPDK], [dnl AS_IF([test "x$1" = "xsystem"], [dnl DPDK_CPPFLAGS="-isystem/usr/include/dpdk" DPDK_LDFLAGS="" - DPDK_RPATH="" DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.so`" if test "x$DPDK_LIB_PATH" = "x" ; then DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.a`" @@ -115,10 +124,9 @@ AS_IF([test "x$1" = "xsystem"], [dnl DPDK_LDFLAGS="-L$DPDK_LIB_PATH" DPDK_PMD_PATH="$DPDK_LIB_PATH" if test -r "$DPDK_LIB_PATH"/libdpdk.so ; then - DPDK_RPATH="-R$DPDK_LIB_PATH" + DPDK_RPATH="-Wl,-rpath,$DPDK_LIB_PATH" + DPDK_RPATH_LT="-R$DPDK_LIB_PATH" DPDK_SHARED=yes - else - DPDK_RPATH= fi ]) _ODP_DPDK_CHECK([$DPDK_CPPFLAGS], [$DPDK_LDFLAGS], [$2], [$3]) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index b7a8ff255..b76a15df1 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -305,7 +305,7 @@ endif __LIB__libodp_linux_la_LIBADD = $(ATOMIC_LIBS) __LIB__libodp_linux_la_LIBADD += $(OPENSSL_LIBS) -__LIB__libodp_linux_la_LIBADD += $(DPDK_LIBS_LT) +__LIB__libodp_linux_la_LIBADD += $(DPDK_LIBS_LIBODP) __LIB__libodp_linux_la_LIBADD += $(PTHREAD_LIBS) __LIB__libodp_linux_la_LIBADD += $(TIMER_LIBS) From patchwork Thu Jan 18 05:00:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124918 Delivered-To: patch@linaro.org Received: by 10.46.62.1 with SMTP id l1csp313878lja; Wed, 17 Jan 2018 21:03:29 -0800 (PST) X-Google-Smtp-Source: ACJfBotMDTlX0VnHXH1y9tCcbBIO65bK35SDHJGUJw8g9eDv2xLv4yslaUqaO93FI7tPwM0w6ijI X-Received: by 10.200.46.69 with SMTP id s5mr45469890qta.205.1516251809214; Wed, 17 Jan 2018 21:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516251809; cv=none; d=google.com; s=arc-20160816; b=us6N+OdaMhn8qdc99JzgAv7DliGgUUKeCSW2djQnD4TvaqYgqFQn4muBmtx6cIALkY pTXinwr8TfMj9EZP8UT9e8Zx+lhM/bpBB3BL0zAO8P1SZ49yMDGQvcpzEIOIMJD97tA5 +zuubThUhVD2rR3WUpOoofMsd7ioDie51rK5K7y3U7vyRLemMJ9Mxgo13qB/o01jBfwi z27KXpW5FcAtVh9RUDHlhhzpJRFXQ/GkujhAtPA5ZKPtzJoHQ6dB3w/3fY+xABd/NePk Rl568FbEsI7vfvPAn6Md9uY8OPZoycQMB6sLHbZ9cjM3au5BmokGm4iHwZHGUlvsDQTl maQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=F/KJDsfBh559wE+ok99t04ppCS6rjCCr72+30J90C9w=; b=p8WZrRKqb4HRlbnSflbwzYt5WmxO32UhtEU8D6FWfJwO7GhyZAzg57XJByELcFHNqI unCdfMWDa29Cf9yYsQOhuQ4TcLLNXiUUUvv5VfaT87wVDnWz2Qhljj8eYXLMCBwy3OZy EOp5bD3d32iOK+5s9UIYcqz2mmUfJm3sw+frEsPOJlMYYvpGpUaXQHdxoR6p6wLC0M5N IzTkxACZA/5QYuQt9GMkigjDPEDnkkFxu0QU1PaK/ADitQ7C9LVLQ0QysrGWxwKvbuPw 1+c+wu9c/Z1QQGBNnPjBCmjRoq7Bnl9Cru4Y6UDBju2ZS5API0M3MwhyOl06XxNaT+sI r/Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id l66si2535222qkb.150.2018.01.17.21.03.28; Wed, 17 Jan 2018 21:03:29 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id E2DED61738; Thu, 18 Jan 2018 05:03:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6B53F627B2; Thu, 18 Jan 2018 05:02:11 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7511661738; Thu, 18 Jan 2018 05:02:04 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 101D161738 for ; Thu, 18 Jan 2018 05:01:03 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 39B0C444399C for ; Thu, 18 Jan 2018 08:01:01 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ILvkbd4NhA-11AK5o5g; Thu, 18 Jan 2018 08:01:01 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OxxcXB4yuR-0aqCvchD; Thu, 18 Jan 2018 08:00:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 18 Jan 2018 08:00:09 +0300 Message-Id: <1516251609-24228-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> References: <1516251609-24228-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 402 Subject: [lng-odp] [PATCH v1 4/4] travis: test ODP with shared DPDK X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Add testcase compiling and running ODP with shared DPDK lib Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 402 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/402 ** Patch: https://github.com/Linaro/odp/pull/402.patch ** Base sha: 1bb6291e4e9050d476fefb02f11024898847e2b7 ** Merge commit sha: ef2af52ea3f3fb674f4f2dcb187eeede6711cb72 **/ .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 654baaab5..6581344b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,6 +74,7 @@ env: - CONF="--enable-schedule-iquery" - CONF="--enable-schedule-scalable" - CONF="--enable-dpdk-zero-copy" + - DPDK_SHARED="y" - CROSS_ARCH="arm64" - CROSS_ARCH="armhf" CFLAGS="-march=armv7-a" - CROSS_ARCH="powerpc" @@ -189,7 +190,7 @@ install: ;; esac - | - if [ -n "$TARGET" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ]; then + if [ -n "$TARGET" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" -a ! -f "dpdk/${TARGET}/lib/libdpdk.so" ]; then git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v${DPDK_VERS} http://dpdk.org/git/dpdk dpdk pushd dpdk git log --oneline --decorate @@ -205,6 +206,11 @@ install: if test -n "${DPDK_MACHINE}" ; then sed -ri 's,(CONFIG_RTE_MACHINE=).*,\1"'${DPDK_MACHINE}'",' .config fi + if test -n "${DPDK_SHARED}" ; then + sed -ri 's,(CONFIG_RTE_BUILD_SHARED_LIB=).*,\1y,' .config + export LD_LIBRARY_PATH="`pwd`/${TARGET}:$LD_LIBRARY_PATH" + echo $LD_LIBRARY_PATH + fi if test -n "$CROSS_ARCH" ; then sed -ri -e 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1n,' .config sed -ri -e 's,(CONFIG_RTE_KNI_KMOD=).*,\1n,' .config