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 71E00A04BA; Thu, 1 Oct 2020 15:32:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D317D1DB62; Thu, 1 Oct 2020 15:32:02 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 9573B1DB60 for ; Thu, 1 Oct 2020 15:32:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601559119; 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=kSbpqRbnWOdTIjlJE507oFzFvytFbPuTEmRXs/Xqgwo=; b=QFFRXtBy6wDR1EHTZO+U62uBcTpNQBcF9CK3SS8PQfQ4aFLMJRuVjOoKAmOztZkzh2gkqr cyYgdEb4TbNmF/hSOObTAwMVi+VuK0EibCP146LXZ2cp5dvVhAJFeguiTcir1sKPF9ex6T WB5ymVIcGi3dNDVOoR0QXXiqN9aUPEY= 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-192-NpkVya7ZMImnY6uLM8212Q-1; Thu, 01 Oct 2020 09:31:55 -0400 X-MC-Unique: NpkVya7ZMImnY6uLM8212Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2F2AC1DE13; Thu, 1 Oct 2020 13:31:54 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-113-125.rdu2.redhat.com [10.10.113.125]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9A2019C59; Thu, 1 Oct 2020 13:31:49 +0000 (UTC) From: Aaron Conole To: Juraj =?utf-8?Q?Linke=C5=A1?= Cc: thomas@monjalon.net, david.marchand@redhat.com, maicolgabriel@hotmail.com, dev@dpdk.org References: <1601547609-2843-1-git-send-email-juraj.linkes@pantheon.tech> <1601548239-2990-1-git-send-email-juraj.linkes@pantheon.tech> <1601548239-2990-3-git-send-email-juraj.linkes@pantheon.tech> Date: Thu, 01 Oct 2020 09:31:49 -0400 In-Reply-To: <1601548239-2990-3-git-send-email-juraj.linkes@pantheon.tech> ("Juraj \=\?utf-8\?Q\?Linke\=C5\=A1\=22's\?\= message of "Thu, 1 Oct 2020 12:30:38 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2 2/3] ci: add aarch64 clang cross-compilation 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" Juraj Linke=C5=A1 writes: > Mirror the existing gcc jobs - build static and shared libs. > Use arm64_armv8_linux_clang_ubuntu1804 meson cross file. > > Signed-off-by: Juraj Linke=C5=A1 > --- > .ci/linux-build.sh | 9 +++++++-- > .travis.yml | 22 ++++++++++++++++++++-- > 2 files changed, 27 insertions(+), 4 deletions(-) > > diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh > index d079801d7..137f51e91 100755 > --- a/.ci/linux-build.sh > +++ b/.ci/linux-build.sh > @@ -28,11 +28,16 @@ install_libabigail() { > rm ${version}.tar.gz > } > =20 > -if [ "$AARCH64" =3D "1" ]; then > +if [ "$AARCH64_GCC" =3D "1" ]; then Why do we need to do this? CC_FOR_BUILD and CC should be either 'gcc' or 'clang' - so we could just key off of those instead of having to do this new set of variables, yes? > # convert the arch specifier > OPTS=3D"$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" > fi > =20 > +if [ "$AARCH64_CLANG" =3D "1" ]; then > + # convert the arch specifier > + OPTS=3D"$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu= 1804" > +fi > + > if [ "$BUILD_DOCS" =3D "1" ]; then > OPTS=3D"$OPTS -Denable_docs=3Dtrue" > fi > @@ -53,7 +58,7 @@ OPTS=3D"$OPTS --buildtype=3Ddebugoptimized" > meson build --werror $OPTS > ninja -C build > =20 > -if [ "$AARCH64" !=3D "1" ]; then > +if [ "$AARCH64_GCC" !=3D "1" ] && [ "$AARCH64_CLANG" !=3D 1 ]; then > devtools/test-null.sh > fi > =20 > diff --git a/.travis.yml b/.travis.yml > index d6eeab371..1f769d823 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -18,6 +18,10 @@ _aarch64_packages: &aarch64_packages > - *required_packages > - [gcc-aarch64-linux-gnu, libc6-dev-arm64-cross, pkg-config-aarch64-li= nux-gnu] > =20 > +_aarch64_clang_packages: &aarch64_clang_packages > + - *required_packages > + - [libgcc-8-dev-arm64-cross, libatomic1-arm64-cross, libc6-dev-arm64-c= ross, pkg-config-aarch64-linux-gnu] > + > _build_32b_packages: &build_32b_packages > - *required_packages > - [gcc-multilib] > @@ -69,20 +73,34 @@ jobs: > packages: > - *build_32b_packages > # x86_64 cross-compiling aarch64 jobs > - - env: DEF_LIB=3D"static" AARCH64=3D1 > + - env: DEF_LIB=3D"static" AARCH64_GCC=3D1 > arch: amd64 > compiler: gcc > addons: > apt: > packages: > - *aarch64_packages > - - env: DEF_LIB=3D"shared" AARCH64=3D1 > + - env: DEF_LIB=3D"shared" AARCH64_GCC=3D1 > arch: amd64 > compiler: gcc > addons: > apt: > packages: > - *aarch64_packages > + - env: DEF_LIB=3D"static" AARCH64_CLANG=3D1 > + arch: amd64 > + compiler: clang > + addons: > + apt: > + packages: > + - *aarch64_clang_packages > + - env: DEF_LIB=3D"shared" AARCH64_CLANG=3D1 > + arch: amd64 > + compiler: clang > + addons: > + apt: > + packages: > + - *aarch64_clang_packages > # aarch64 gcc jobs > - env: DEF_LIB=3D"static" > arch: arm64