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 B4A15A034E; Tue, 19 Nov 2019 16:15:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6207AA69; Tue, 19 Nov 2019 16:15:53 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8BEDE9E4 for ; Tue, 19 Nov 2019 16:15:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2019 07:15:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,324,1569308400"; d="scan'208";a="357133697" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by orsmga004.jf.intel.com with ESMTP; 19 Nov 2019 07:15:49 -0800 From: Bruce Richardson To: Aaron Conole , Michael Santana Cc: dev@dpdk.org, Bruce Richardson Date: Tue, 19 Nov 2019 15:15:43 +0000 Message-Id: <20191119151543.54309-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ci: add 32-bit travis builds 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" Add a travis job to build for 32-bit on 64-bit systems to catch additional build errors, for example, incorrect use of printf specifiers with uint64_t types. Signed-off-by: Bruce Richardson --- .ci/linux-build.sh | 5 +++++ .travis.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index 6075c440c..c570ba24e 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -23,6 +23,11 @@ if [ "$BUILD_DOCS" = "1" ]; then OPTS="$OPTS -Denable_docs=true" fi +if [ "$BUILD_32BIT" = "1" ]; then + OPTS="$OPTS -Dc_args=-m32 -Dc_link_args=-m32" + export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig" +fi + OPTS="$OPTS --default-library=$DEF_LIB" meson build --werror -Dexamples=all $OPTS ninja -C build diff --git a/.travis.yml b/.travis.yml index 3d6ef2959..7b9fc6898 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,10 @@ extra_packages: &extra_packages - *required_packages - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4] +build_32b_packages: &build_32b_packages + - *required_packages + - [gcc-multilib] + doc_packages: &doc_packages - [doxygen, graphviz, python3-sphinx] @@ -37,6 +41,12 @@ env: matrix: include: + - env: DEF_LIB="static" BUILD_32BIT=1 + compiler: gcc + addons: + apt: + packages: + - *build_32b_packages - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1 compiler: gcc addons: -- 2.21.0