From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 60D3DA034F; Wed, 10 Nov 2021 17:48:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52E8041149; Wed, 10 Nov 2021 17:48:46 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 5B1A341148 for ; Wed, 10 Nov 2021 17:48:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636562924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Dzdbm4w09kbO/QVNBXlzVY+XcEX0bUoGmdk+1DJVEm0=; b=B+F64D1yF5mmbIf6h2hPsxj3ck/554jY1Vg85/iweQwpi/JTqoO+wMuf3yggI2lI2jRfkd 9f+0fN49Ht+/T7Tvunrz/5kymrJXSYH2mBtuE4ANhCS2m9ngrqbQd6r3AeZEvHFc18omSM uP3fFdY4a+5pqkgyGwG92hGzT1pbwCY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-518-yHx5P3s8Mu69TeHjR8zMuA-1; Wed, 10 Nov 2021 11:48:41 -0500 X-MC-Unique: yHx5P3s8Mu69TeHjR8zMuA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D6DDD101F7BB; Wed, 10 Nov 2021 16:48:39 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7920F60854; Wed, 10 Nov 2021 16:48:36 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, thomas@monjalon.net, bluca@debian.org, tredaelli@redhat.com, i.maximets@ovn.org, james.r.harris@intel.com, mohammed@hawari.fr, Aaron Conole , Michael Santana Subject: [PATCH 1/5] ci: test build with minimum configuration Date: Wed, 10 Nov 2021 17:48:10 +0100 Message-Id: <20211110164814.5231-2-david.marchand@redhat.com> In-Reply-To: <20211110164814.5231-1-david.marchand@redhat.com> References: <20211110164814.5231-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Disabling optional libraries was not tested. Add a new target in test-meson-builds.sh and GHA. The Bluefield target is removed from test-meson-builds.sh to save space and compilation time in exchange of the new target. Signed-off-by: David Marchand --- .ci/linux-build.sh | 3 +++ .github/workflows/build.yml | 5 +++++ devtools/test-meson-builds.sh | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index ef0bd099be..e7ed648099 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -87,6 +87,9 @@ OPTS="$OPTS -Dplatform=generic" OPTS="$OPTS --default-library=$DEF_LIB" OPTS="$OPTS --buildtype=debugoptimized" OPTS="$OPTS -Dcheck_includes=true" +if [ "$NO_OPTIONAL_LIBS" = "true" ]; then + OPTS="$OPTS -Ddisable_libs=*" +fi meson build --werror $OPTS ninja -C build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4151cafee7..346cc75c20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} LIBABIGAIL_VERSION: libabigail-1.8 + NO_OPTIONAL_LIBS: ${{ matrix.config.no_optional_libs != '' }} PPC64LE: ${{ matrix.config.cross == 'ppc64le' }} REF_GIT_TAG: none RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} @@ -32,6 +33,10 @@ jobs: - os: ubuntu-18.04 compiler: gcc library: static + - os: ubuntu-18.04 + compiler: gcc + library: shared + no_optional_libs: no-optional-libs - os: ubuntu-18.04 compiler: gcc library: shared diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 9ec8e2bc7e..36ecf63ec6 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -220,6 +220,8 @@ for c in gcc clang ; do done done +build build-x86-no-optional-libs cc skipABI $use_shared -Ddisable_libs=* + # test compilation with minimal x86 instruction set # Set the install path for libraries to "lib" explicitly to prevent problems # with pkg-config prefixes if installed in "lib/x86_64-linux-gnu" later. @@ -258,7 +260,7 @@ export CC="clang" build build-arm64-host-clang $f ABI $use_shared unset CC # some gcc/arm configurations -for f in $srcdir/config/arm/arm64_[bdo]*gcc ; do +for f in $srcdir/config/arm/arm64_[do]*gcc ; do export CC="$CCACHE gcc" targetdir=build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) build $targetdir $f skipABI $use_shared -- 2.23.0