Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38241C11F68 for ; Fri, 2 Jul 2021 15:20:00 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 446F961206 for ; Fri, 2 Jul 2021 15:19:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 446F961206 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5150E80C68; Fri, 2 Jul 2021 17:19:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="IZeLtSz1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C5895814A4; Fri, 2 Jul 2021 17:19:55 +0200 (CEST) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CF2CE803B9 for ; Fri, 2 Jul 2021 17:19:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72d.google.com with SMTP id c3so8685724qkc.3 for ; Fri, 02 Jul 2021 08:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pzb/R2hFxFMYVcAwoiVieDPvM1bw9anbA2CIRQvQHao=; b=IZeLtSz1O5NLxJT5H4VtzkS4C2GMIVYngbNfmHKVzj7jbk9nQdRMCbZS68snRM9HWt Gpz7W36HMuFGWjMWJgV/JsSYrY7lNo//N1Phng+lXYzU8ywQe6CIFx8wuNpRcGkpqvNg GNl1GtWEIpckpZAB+SM4XwnXYEX5SNy/xYKvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pzb/R2hFxFMYVcAwoiVieDPvM1bw9anbA2CIRQvQHao=; b=N+YRPwvLgFd5E/T74+gXsXBmjXZbFu87SYsvDisIAQPo4L99/W8SQ8fYgL07uLrVJF hC812KNyPtW6CIxlqiMjsahJANZ4OcZDEnttraFsmzb83fvOn5eYRKLjbdBNvX4bG7bE R3RM2sIbL2/sUUd0Ud0T4faibcoUpz+2YURV5zZz9BwXKD0+7g3Y9OKtCQbPO0lkFgjU fcAVrH+hj/PNqWinduVoYLSN289o0e7WlPfSP3uFamcj6t+TR6limH3uOBiS+dzD1cfX f9JCDgkrU7eq9u7HIOPycKEOg7KNIWXPbeWusg3k2ZCrAQ7ps4cErOUsVv2513hLFrhH NXvA== X-Gm-Message-State: AOAM530dbeR8mKMxozDHQcunPKUwWESmj8xI44u5CAbfMCFrLePkXjUs 5mLN5nHo5KRtRmRJMgDIxJ4nCw== X-Google-Smtp-Source: ABdhPJwWRtWQt16fQFgsx1eX6fRk9EnSzYUNS5MUxH+XzHWQZDT3ii1aFavJNUhdvNEal8Q2gONy2Q== X-Received: by 2002:a37:8183:: with SMTP id c125mr357836qkd.134.1625239190681; Fri, 02 Jul 2021 08:19:50 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-91af-d604-26f4-428b.res6.spectrum.com. [2603:6081:7b01:cbda:91af:d604:26f4:428b]) by smtp.gmail.com with ESMTPSA id b25sm1500792qkk.111.2021.07.02.08.19.49 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Jul 2021 08:19:49 -0700 (PDT) Date: Fri, 2 Jul 2021 11:19:47 -0400 From: Tom Rini To: Bin Meng Cc: U-Boot Mailing List , Heinrich Schuchardt , Simon Glass , Rick Chen Subject: Re: [PATCHv4] Azure/GitLab: Move to gcc-11.1.0 and LLVM-11 Message-ID: <20210702151947.GY9516@bill-the-cat> References: <20210702144158.21721-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aJRKNOhtX8M0PCPm" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --aJRKNOhtX8M0PCPm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 02, 2021 at 10:59:39PM +0800, Bin Meng wrote: > On Fri, Jul 2, 2021 at 10:42 PM Tom Rini wrote: > > > > - Move to gcc-11.1.0 builds from kernel.org for supported platforms and > > LLVM-11 for those tests. > > - As Heinrich has noted, the RISC-V platform specification has a profile > > OS-A for running rich operating systems like Linux and BSD. This prof= ile > > requires 64bit and UEFI conforming to the EBBR. Only the 'embedded' > > profile may use 32bit. Given this, drop grub for 32bit RISC-V as it = no > > longer compiles with gcc-11.1 and upstream is unlikely to fix it: > > https://www.mail-archive.com/grub-devel@gnu.org/msg30736.html > > - Update to grub-2.06 release to address other issues of building with > > gcc-11.1. > > - Update to newer Xtensa (gcc-9.2.0) and ARC (gcc-10.2) toolchains > > > > Cc: Heinrich Schuchardt > > Cc: Bin Meng > > Cc: Simon Glass > > Cc: Rick Chen > > Signed-off-by: Tom Rini > > --- > > Changes in v4: > > - Given Heinrich's explanation, continue dropping grub for riscv32 and > > explain why we can better in the commit message. > > - The x86 build problem noted in v3 has been fixed, thanks Bin! > > > > Changes in v3: > > - Post the right patch this time. > > - Switch to gcc-11.1.0 builds rather than pre-release > > - grub-2.06 is out, use that rather than -rc1 > > - Update Xtensa and ARC toolchains. > > - Note that right now this causes x86 to fail to link, which I did not > > see with gcc-11.0 tests. > > > > Changes in v2: > > - None, I re-sent v1 by accident > > --- > > .azure-pipelines.yml | 3 +- > > .gitlab-ci.yml | 3 +- > > tools/docker/Dockerfile | 85 +++++++++++++++++------------------------ > > 3 files changed, 36 insertions(+), 55 deletions(-) > > > > diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml > > index 5ac4d648ec9e..3d4cd76c6061 100644 > > --- a/.azure-pipelines.yml > > +++ b/.azure-pipelines.yml > > @@ -2,7 +2,7 @@ variables: > > windows_vm: vs2017-win2016 > > ubuntu_vm: ubuntu-18.04 > > macos_vm: macOS-10.15 > > - ci_runner_image: trini/u-boot-gitlab-ci-runner:focal-20210416-10Jun2= 021 > > + ci_runner_image: trini/u-boot-gitlab-ci-runner:focal-20210416-14Jun2= 021 > > # Add '-u 0' options for Azure pipelines, otherwise we get "permissi= on > > # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontain= er", > > # since our $(ci_runner_image) user is not root. > > @@ -300,7 +300,6 @@ jobs: > > cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/ > > cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/ > > cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_= riscv64.efi > > - cp /opt/grub/grubriscv32.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_= riscv32.efi > > cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm= 64.efi > > cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.= efi > > virtualenv -p /usr/bin/python3 /tmp/venv > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > index 41a2c18fa180..b7c049825102 100644 > > --- a/.gitlab-ci.yml > > +++ b/.gitlab-ci.yml > > @@ -2,7 +2,7 @@ > > > > # Grab our configured image. The source for this is found at: > > # https://source.denx.de/u-boot/gitlab-ci-runner > > -image: trini/u-boot-gitlab-ci-runner:focal-20210416-10Jun2021 > > +image: trini/u-boot-gitlab-ci-runner:focal-20210416-14Jun2021 > > > > # We run some tests in different order, to catch some failures quicker. > > stages: > > @@ -38,7 +38,6 @@ stages: > > - cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/ > > - cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/ > > - cp /opt/grub/grubriscv64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_riscv6= 4.efi > > - - cp /opt/grub/grubriscv32.efi $UBOOT_TRAVIS_BUILD_DIR/grub_riscv3= 2.efi > > - cp /opt/grub/grubaa64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm64.efi > > - cp /opt/grub/grubarm.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm.efi > > - virtualenv -p /usr/bin/python3 /tmp/venv > > diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile > > index 95951f4bef89..d0e2642da585 100644 > > --- a/tools/docker/Dockerfile > > +++ b/tools/docker/Dockerfile > > @@ -12,24 +12,24 @@ ENV DEBIAN_FRONTEND=3Dnoninteractive > > # Add LLVM repository > > RUN apt-get update && apt-get install -y gnupg2 wget xz-utils && rm -r= f /var/lib/apt/lists/* > > RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add= - > > -RUN echo deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main |= tee /etc/apt/sources.list.d/llvm.list > > +RUN echo deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main |= tee /etc/apt/sources.list.d/llvm.list > > > > -# Manually install the kernel.org "Crosstool" based toolchains for gcc= -7.3 > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-aarch64-linux.tar.xz | tar -C /o= pt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-arm-linux-gnueabi.tar.xz | tar -= C /opt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-i386-linux.tar.xz | tar -C /opt = -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-m68k-linux.tar.xz | tar -C /opt = -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-mips-linux.tar.xz | tar -C /opt = -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-microblaze-linux.tar.xz | tar -C= /opt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-nios2-linux.tar.xz | tar -C /opt= -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-powerpc-linux.tar.xz | tar -C /o= pt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-riscv32-linux.tar.xz | tar -C /o= pt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-riscv64-linux.tar.xz | tar -C /o= pt -xJ > > -RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/9.2.0/x86_64-gcc-9.2.0-nolibc-sh2-linux.tar.xz | tar -C /opt -= xJ > > +# Manually install the kernel.org "Crosstool" based toolchains for gcc= -11.1.0 > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-aarch64-linux.tar.xz | tar -C = /opt -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-arm-linux-gnueabi.tar.xz | tar= -C /opt -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-i386-linux.tar.xz | tar -C /op= t -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-m68k-linux.tar.xz | tar -C /op= t -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-mips-linux.tar.xz | tar -C /op= t -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-microblaze-linux.tar.xz | tar = -C /opt -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-nios2-linux.tar.xz | tar -C /o= pt -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-powerpc-linux.tar.xz | tar -C = /opt -xJ > > +RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/file= s/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-riscv32-linux.tar.xz | tar -C = /opt -xJ >=20 > I believe riscv32 toolchain is no longer needed given it's used for > the grub riscv32 build. U-Boot for riscv32 can be built with the > riscv64 toolchain IIRC. Ah true, thanks! I'll do that in-place before pushing this out, I'll need to re-spin the images anyhow to do this on top of "focal". --=20 Tom --aJRKNOhtX8M0PCPm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmDfLowACgkQFHw5/5Y0 tyxBXQv/Sk+BWIZpJ+Xm3BVI7gtAYmnq0UnWMZnd5xz11UDEEEdykgr9tEXG7M0k /Zil2mr6AF+qAJc812PXAPukI/i+06dQSz+EaAgWWMw7F8bwPPeqBDLs/M3odsNU plFNoUizAKimazVa4PjHOHZ2xKN81YcEbrxFdnHVkch+ns3lfIcdEjox5mHlLYQj 2G7S5Zy1ZdYfDMJqdfMSsRk3JxRa5vozze+K9H3AtJeeoqBbOr1cEqNdZ78QvAxu IgV/2KS0T3dK8/NfEiq1kU7dHzBkBO6lvy/PhD/qz8VjghQg4Bg/RNdqKyz0cXhp ES6ZvPhzBmgYtFB8nIJX4xsh3KSpAIr+oMxPhKSqHtwd5qye3ZsoewyZJUzH4WhM Uk+5RFCHFwj9JaMScFGmy43gzVwfc6N9DmxMDEtxpnfJqXafE6kG1E/Dzlqya3Pm SnOgFWTNfczpMhmeFREna8ZB2b5n1Xya1DHCL9/XOtFBR546ZPox1brbIeSBrmWM bphyRLH/ =tuhP -----END PGP SIGNATURE----- --aJRKNOhtX8M0PCPm--