From patchwork Tue Jan 23 01: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: 125466 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1456665ljf; Mon, 22 Jan 2018 17:00:54 -0800 (PST) X-Google-Smtp-Source: AH8x225Mx/VPH1fMatKKptz7XFrMpAm+r8yFrX7UsZsAW2PSO+MzfOKsB5NGFgV4dx7hbuJe+SRJ X-Received: by 10.55.108.199 with SMTP id h190mr1218548qkc.78.1516669254507; Mon, 22 Jan 2018 17:00:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516669254; cv=none; d=google.com; s=arc-20160816; b=HahbhKdfpny64GsBzOzPaO1vOslsAmFRv/ZJgRHDft3al+hm81+k+glGR+LSQ2AEaK TDgYBQOrlPnY9hmU/A+JGyKspEQaGtieIOhStj+cZfwOkRjNPjQGVMXTsvHQbCwmz4Ck +h4Je8FlJ12RwJSxS81I4QeEdGHzAOftHoOJUr884CdLVjtU/bnIY1D+F9qv2tzVnR7u 0yVYhLxVvrNEt/5jlAS0jKV/KHycbJeOaTz1lkbXCYgZBgSbm+dFrgic5KZ0CI0VZeCD CxkO+tMdzlCLcSgRjfFNkddzfvZf6SwGHBW9A53AsJYp5a+hzWxKJG7er1RCVJAIA0Xb h0Cw== 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=eTX5qgje/Bui1KmJNFOleATVfJ3rkGulvJp8mO8rPhk=; b=LLitrJN26Fxn5oE4mwp+0W0briZeNE/HJiofdxeIVt9EWT9/n9XzHO+ValoMT7nEGj w/x9lg0jayRazhQGxQR0UxIq4YlUBT0VuYEXKZLjfDL40QQTYW+j6NZYAik4zJ5PlA4r X0x+l0aT3dzDqdd3gMOvMfYDfOGcE3hYugyJM1C9j2wJP5RmskiiLlRq7P9zHq7yn+Cv mL6V0MSly+y9wliDCuMU/Sy9ypVInNvO93Qt6LxA24gtLgxpHn/HNrPL4HpDZenFcY5w lHjJuKRMbfXtW30Xaf6ey3qIkVYcLcL4U6lJ3CvZCJVVw6itlcRafT628TI3M1CPMyEL z9Tg== 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 v52si6480661qtb.5.2018.01.22.17.00.54; Mon, 22 Jan 2018 17:00:54 -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 399EA61750; Tue, 23 Jan 2018 01:00:54 +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 684AE61746; Tue, 23 Jan 2018 01:00:19 +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 5B0CF6173F; Tue, 23 Jan 2018 01:00:17 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 25AD9607B4 for ; Tue, 23 Jan 2018 01:00:15 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward106o.mail.yandex.net (Yandex) with ESMTP id B793B78162E for ; Tue, 23 Jan 2018 04:00:13 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id QWe96yzVbs-0DV0LRP1; Tue, 23 Jan 2018 04:00:13 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pjfrB0P71F-0DBORrO5; Tue, 23 Jan 2018 04:00:13 +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: Tue, 23 Jan 2018 04:00:09 +0300 Message-Id: <1516669211-12088-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> References: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 416 Subject: [lng-odp] [PATCH v2 1/3] 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 416 (lumag:trav-dpdk-shared) ** https://github.com/Linaro/odp/pull/416 ** Patch: https://github.com/Linaro/odp/pull/416.patch ** Base sha: b122176ee59494dd957f0f5ff41d4b55a1477e13 ** Merge commit sha: 91127f4ec35dafb800211b84e2fa8992d7b6d216 **/ m4/odp_dpdk.m4 | 21 +++++++++++++++------ platform/linux-generic/Makefile.am | 2 +- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4 index 1887b0431..81ace08a9 100644 --- a/m4/odp_dpdk.m4 +++ b/m4/odp_dpdk.m4 @@ -17,18 +17,29 @@ 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="-Wl,--no-as-needed,-ldpdk,--as-needed,`echo $DPDK_LIBS | sed -e 's/ /,/g'`" DPDK_LIBS="$DPDK_LDFLAGS $DPDK_RPATH $DPDK_LIBS" + # link libodp-linux with -ldpdk + DPDK_LIBS_LIBODP="$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 +110,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 +125,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 8585080df..3e38489f6 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -272,7 +272,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 Tue Jan 23 01:00:10 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: 125468 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1457267ljf; Mon, 22 Jan 2018 17:02:15 -0800 (PST) X-Google-Smtp-Source: AH8x2250dDlWhV+qz9L8KxscuSBGDl0cQDdpvrHNOSOE2xNFLNBdmW/wiPoPdhhT6Edc1TItFfPw X-Received: by 10.200.8.162 with SMTP id v31mr1137893qth.59.1516669335480; Mon, 22 Jan 2018 17:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516669335; cv=none; d=google.com; s=arc-20160816; b=qtWucISfcMWIsACeYuTdntygPs9SD6zZHwPtc+42ucNuJ/F9DxLimtU4UcomJd8qUG tjj9eKEXT3U3RNzS3AUlgcI26YiEwY2WiRMzH1/v2fYvyyemcF54mE5e4RE4ZAY/HwM+ RM2eW/EHLpqOBs5R8WNAj2PpX4hw41xmiZ4hyf2Fn9hY3JaI77T9sKXAtfAevz1JS1Og s8iHtwWDcuNE6kK8JzSO8SpjEVijpjskYLebPBrpuKkWsswTiZBf15ejxezGe6buwxWT kM8Guq3PCCKExuHQpSB48Ewx+3PzMYp4cT7tMoiDf+hdxSqC8YoEpgGxgvWBrST7Rv4c R7Iw== 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=+jNsItXM79ixKAdIsBXdu6KI9p9p0pwGrl5kNgYIsUU=; b=RlZK7SbYjK3/9fGiSZsT4hRrAV6kSppsubxbhvANG+6/q/4oQs80mfh4cQLpl3TtdW 32iRnwgZtOjTzaALBCO736hvGOAkAs46lhobNtUwSp4aEGdsxzJIo0fkyvbgOYLpHh6Y Qy2dugAFYHfCdjQ59IRqbu0ItNspk5ZmS2t9gYzlFSh8TBrMy415zxsC+uCrgd+N7aD6 EAQ3SaZZTl5lSuAMKLHgvetP3coT/Ul8qm8UhAxvP8rzkes40tWH4ahOLmzzXBY9hVYF svW5M0eF73KjHSvvxDNAfx8+l4X9QdMcmgZMUGV76r5LetHTgfp05ugfTd2zPQzlBt/p Uh/Q== 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 y10si6009012qta.113.2018.01.22.17.02.14; Mon, 22 Jan 2018 17:02:15 -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 E02236176E; Tue, 23 Jan 2018 01:02:14 +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 7A06861769; Tue, 23 Jan 2018 01:00:29 +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 C10226174B; Tue, 23 Jan 2018 01:00:19 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id CBBB960834 for ; Tue, 23 Jan 2018 01:00:15 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 41C4B182650 for ; Tue, 23 Jan 2018 04:00:14 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FqmoYngy2w-0EA4WoNT; Tue, 23 Jan 2018 04:00:14 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pjfrB0P71F-0DBaTYsL; Tue, 23 Jan 2018 04:00:13 +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: Tue, 23 Jan 2018 04:00:10 +0300 Message-Id: <1516669211-12088-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> References: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 416 Subject: [lng-odp] [PATCH v2 2/3] build: notice about usupported configuration 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 416 (lumag:trav-dpdk-shared) ** https://github.com/Linaro/odp/pull/416 ** Patch: https://github.com/Linaro/odp/pull/416.patch ** Base sha: b122176ee59494dd957f0f5ff41d4b55a1477e13 ** Merge commit sha: 91127f4ec35dafb800211b84e2fa8992d7b6d216 **/ configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 56a422b4b..bc75344ce 100644 --- a/configure.ac +++ b/configure.ac @@ -191,6 +191,11 @@ AC_ARG_ENABLE([static-applications], [ with ODP])], [], [enable_static_applications=yes]) AM_CONDITIONAL([STATIC_APPS], [test "x$enable_static_applications" != "xno"]) +if test "x$DPDK_SHARED" = "xyes" -a "x$enable_static_applications" != "xno" ; +then + AC_MSG_WARN([Static linking of examples and tests might fail with ] + [shared DPDK, Please retry with --disable-static-applications]) +fi ########################################################################## # Include m4 files From patchwork Tue Jan 23 01:00:11 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: 125467 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1456953ljf; Mon, 22 Jan 2018 17:01:29 -0800 (PST) X-Google-Smtp-Source: AH8x226qzKvkenXWIKbEyPowrGWGdOWUrNasA0BUcvBsqA3OnvCOzkIwyLQYHXiN0UqPTZtMW8l6 X-Received: by 10.200.36.67 with SMTP id d3mr1093039qtd.329.1516669288891; Mon, 22 Jan 2018 17:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516669288; cv=none; d=google.com; s=arc-20160816; b=p74d+V05tOfMkGDgcUaXzNsHmNOAp9Vcd8JNPCn2AlPdTHxUY4jZu1mryXlYpTY9I2 7Y/4jHAG9eeqwpjjv9UZkgqgf1TgzAjuCGi/9eRPL4LGovz7U+/Ry8+akIM/MBiQYUmD JLzga/Q38oPEX+lm4pdQShcs7UhGdJptXny69rU1ojUIz4sC+O1E4YKMgJBn609WAJRV cF1i8s6ZfNq1GAMZ1bVzHnPt45Ha0OalxOjNTQSQib36pUhiiRKH5fM1LLVd4rozIxy4 EQUBoLDjBxIHY4kkOyYfbFnVlR4fWJFm1g7KNFn6TpDTH6TX5MnXi9WFm+k0PDOzjrQh xlOw== 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=7E4OY1rnvuOmXFA5Uqe0cV85iGdiVev6gNNeYt1/2Tg=; b=sGPOeCqqrLgLo1MAkNpgOKWvw/UNra1iB2q+ghRQ4KQLOguxeulz6xA6au0Cx4ogi6 vLgYxHPgYcW6YlOhyWFXlvFrvi4jJG101/At7na/7AFri/VeEBhorkyGxDt6RHqbJoQr gtXexHSMl/XPv0LGD8wus2kdHvWsBfXql4K3jcQloZKB5w9VwFZoS5DWnNypl/rDSmJ5 mEA2nFaRvwm5kjGdJW89GHEvAp0calxTEY38Y8Na7Uc4bVfi/ndOKfj8uk5oAzw8iZGZ s15PPa7bf53ML/w4mJe4LQGasLfd8LTY9HsZfQHHmWcJ0Nil+IAaaj1W3v2erv+AKE0H MaAQ== 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 s7si3318355qte.276.2018.01.22.17.01.28; Mon, 22 Jan 2018 17:01:28 -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 913DA61750; Tue, 23 Jan 2018 01:01: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 1D19261758; Tue, 23 Jan 2018 01:00:24 +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 BF6FD61719; Tue, 23 Jan 2018 01:00:18 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 7376C616D9 for ; Tue, 23 Jan 2018 01:00:16 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward104o.mail.yandex.net (Yandex) with ESMTP id B34FE701847 for ; Tue, 23 Jan 2018 04:00:14 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 522HkDsVSp-0Elu28Aq; Tue, 23 Jan 2018 04:00:14 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pjfrB0P71F-0EB0Z8o9; Tue, 23 Jan 2018 04:00:14 +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: Tue, 23 Jan 2018 04:00:11 +0300 Message-Id: <1516669211-12088-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> References: <1516669211-12088-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 416 Subject: [lng-odp] [PATCH v2 3/3] 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 416 (lumag:trav-dpdk-shared) ** https://github.com/Linaro/odp/pull/416 ** Patch: https://github.com/Linaro/odp/pull/416.patch ** Base sha: b122176ee59494dd957f0f5ff41d4b55a1477e13 ** Merge commit sha: 91127f4ec35dafb800211b84e2fa8992d7b6d216 **/ .travis.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fca06a0d2..0f39a85fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,6 +75,7 @@ env: - CONF="--enable-schedule-scalable" - CONF="--enable-dpdk-zero-copy" - CONF="--disable-static-applications" + - DPDK_SHARED="y" CONF="--disable-static-applications" - CROSS_ARCH="arm64" - CROSS_ARCH="armhf" CFLAGS="-march=armv7-a" - CROSS_ARCH="powerpc" @@ -198,7 +199,14 @@ install: esac - | if [ -n "$TARGET" ] ; then - if [ ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; then + # force DPDK rebuild if it does not match shared/non-shared requirement + if [ -n "$DPDK_SHARED" -a ! -f "dpdk/${TARGET}/lib/libdpdk.so" ] ; then + rm -rf dpdk/"$TARGET" + fi + if [ -z "$DPDK_SHARED" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; then + rm -rf dpdk/"$TARGET" + fi + if [ ! -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 @@ -214,6 +222,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 @@ -258,11 +271,17 @@ script: - pushd $HOME - echo "Dynamic link.." - ${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_dynamic `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux` - - echo "Static link.." - - ${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_static `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux --static` -static - if [ -z "$CROSS_ARCH" ] ; then - LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" ./odp_hello_inst_dynamic ; - ./odp_hello_inst_static ; + LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" ./odp_hello_inst_dynamic ; + fi + - echo "Static link.." + - | + # it is not possible to do static linking if we only have shared DPDK library. Compiler complains about missing -ldpdk + if [ -z "$TARGET" -o -z "$DPDK_SHARED" ] ; then + ${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_static `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux --static` -static || exit 1 + if [ -z "$CROSS_ARCH" ] ; then + ./odp_hello_inst_static || exit 1; + fi fi - popd - ccache -s