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,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 59E9BC2B9F4 for ; Thu, 17 Jun 2021 14:45:53 +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 8AC0661040 for ; Thu, 17 Jun 2021 14:45:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AC0661040 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 D767E82A15; Thu, 17 Jun 2021 16:45:49 +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="rlKxKhus"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84CEB82A15; Thu, 17 Jun 2021 16:45:48 +0200 (CEST) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 0730E801DE for ; Thu, 17 Jun 2021 16:45:39 +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-x732.google.com with SMTP id i68so3383422qke.3 for ; Thu, 17 Jun 2021 07:45:38 -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=M5LjzMGb/PEs8kxBhByKeDUtGVAf7JPDj3GMSp3dv4c=; b=rlKxKhusg1DHjdh5N93ky5Bku/XfqsNG8/MPsIXXLVB3EtFtScLftk1S7yXYCaCmWI myFqhs38cB5ruMaYJjPdQ3IQwlYeAYKEs2nPs5x2JTB9cwQj6ftBYcq8IzLYPTn/MZuh f8TrhryAiS9rfLBWzvc4gfdQfHFGVSs+HVaKA= 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=M5LjzMGb/PEs8kxBhByKeDUtGVAf7JPDj3GMSp3dv4c=; b=SiOUV6/ExWT7o995+3fV2SCxB/ppk8PznzqFQMRuienpWuM1du9Wv8+JUSNIb/kysN 1EbHASV9RmYDx5mxiTkx4A+c2fzQwpRdEOHbt+dlHnYYSCFdp4uNphK6tLspD+kjfJgy jBHR+nPRWALuDqPAl8UfBwThdJZgM8vHj4FUxX40AN2GbgbR3SnrQyH0WhZUtmsiySNY uwutwAF2XQsgsi1caFWa67oNQEtPFEPsdZ42c/pbsFgHVn191HeE2QMXz/kFiHFfb0E+ EJgLTXWa1HuUnHdtD+Yvm3IAmCg2eG6nOdL+zWlFo6ZhAAdCVSpT5ULBqtx8NGuLUdJe mRmA== X-Gm-Message-State: AOAM533Pu2oHaaaccXsnJ+5oP7fYIHZEeeDSXpaUG7HEyGsw5gLwif41 jTtNES9XVdIWMMChdpoLUG3kUw== X-Google-Smtp-Source: ABdhPJztv49NBjPgaTO2IJ9r4+XRUQTTqWA/EpynSodsofayeov/vdGugdudqZkLyHnlvR6dxf/fmw== X-Received: by 2002:a05:620a:ccc:: with SMTP id b12mr4243582qkj.196.1623941137839; Thu, 17 Jun 2021 07:45:37 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-8009-22e2-67e2-281e.res6.spectrum.com. [2603:6081:7b01:cbda:8009:22e2:67e2:281e]) by smtp.gmail.com with ESMTPSA id v12sm3383197qtp.41.2021.06.17.07.45.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jun 2021 07:45:37 -0700 (PDT) Date: Thu, 17 Jun 2021 10:45:34 -0400 From: Tom Rini To: Bin Meng Cc: U-Boot Mailing List , Heinrich Schuchardt , Simon Glass , Rick Chen Subject: Re: [RFCv3] Azure/GitLab: Move to gcc-11.1.0 and LLVM-11 Message-ID: <20210617144534.GI9516@bill-the-cat> References: <20210503204859.18756-8-trini@konsulko.com> <20210616200028.19365-1-trini@konsulko.com> <20210617123107.GE9516@bill-the-cat> <20210617141439.GH9516@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="irSWsLPsnJ2dGDB4" 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 --irSWsLPsnJ2dGDB4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 17, 2021 at 10:24:18PM +0800, Bin Meng wrote: > On Thu, Jun 17, 2021 at 10:14 PM Tom Rini wrote: > > > > On Thu, Jun 17, 2021 at 10:09:20PM +0800, Bin Meng wrote: > > > On Thu, Jun 17, 2021 at 8:31 PM Tom Rini wrote: > > > > > > > > On Thu, Jun 17, 2021 at 04:27:11PM +0800, Bin Meng wrote: > > > > > Hi Tom, > > > > > > > > > > On Thu, Jun 17, 2021 at 4:00 AM Tom Rini wro= te: > > > > > > > > > > > > - Move to gcc-11.1.0 builds from kernel.org for supported platf= orms and > > > > > > LLVM-11 for those tests. > > > > > > - grub-2.06 does not build with gcc-11.1.0 on riscv32 as seen h= ere: > > > > > > https://www.mail-archive.com/grub-devel@gnu.org/msg30736.html > > > > > > so drop it. > > > > > > - Update to newer Xtensa (gcc-9.2.0) and ARC (gcc-10.2) toolcha= ins > > > > > > > > > > > > Cc: Heinrich Schuchardt > > > > > > Cc: Bin Meng > > > > > > Cc: Simon Glass > > > > > > Cc: Rick Chen > > > > > > Signed-off-by: Tom Rini > > > > > > --- > > > > > > 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. > > > > > > > > > > Did you mean x86 fails to link with LLVM 11, not GCC 11? > > > > > > > > It fails to run for qemu-x86: > > > > https://source.denx.de/u-boot/u-boot/-/jobs/279345#L39 > > > > And fails to link on other configs: > > > > https://dev.azure.com/u-boot/u-boot/_build/results?buildId=3D2378&v= iew=3Dlogs&j=3D8a1d3be7-a4c9-55b6-774d-e7f1a8f80847&t=3Db2f224a7-1103-5b52-= edbc-3784ae727e03 > > > > > > > > Sorry I forgot to add the CI links. > > > > > > Just had a quick look. The u-boot.rom (qemu-x86_defconfig) built with > > > GCC 11.1.0 does not boot. It fails at the very early stage at > > > fdtdec_prepare_fdt(). It turns out gd->fdt_blob which is set to _end > > > does not point to a valid DT. > > > > > > This may have something to do with: > > > > > > x86_64-linux-ld.bfd: arch/x86/cpu/start.o: warning: relocation in > > > read-only section `.text.start' > > > x86_64-linux-ld.bfd: warning: creating DT_TEXTREL in a PIE > > > > Yeah, I suspect that's the problem. I just don't know where to start > > looking for what to change to address that. >=20 > The following changes seem to fix the issue: >=20 > diff --git a/arch/x86/cpu/u-boot.lds b/arch/x86/cpu/u-boot.lds > index a283c290ee..22fde01e74 100644 > --- a/arch/x86/cpu/u-boot.lds > +++ b/arch/x86/cpu/u-boot.lds > @@ -105,6 +105,7 @@ SECTIONS > /DISCARD/ : { *(.plt*) } > /DISCARD/ : { *(.interp*) } > /DISCARD/ : { *(.gnu*) } > + /DISCARD/ : { *(.note.gnu.property) } >=20 > #ifdef CONFIG_X86_16BIT_INIT > /* >=20 > Not sure if this is something introduced by using --whole-archive? Could be. Thanks for digging in to this part! Do you have any comments / concerns about the dropping grub for riscv32 part of this? --=20 Tom --irSWsLPsnJ2dGDB4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmDLYAsACgkQFHw5/5Y0 tyzi2gwAsq1BBA26fNqAKj/xAMc5gyisnKo5tibRgB++zGLV41aJ9uyscHWSysHC HQKhvZqSteRvheFY4bfFCZT/+pvdq6jJUUA2p1bc2AFWf/DoVvvsWFiRSGRYB7qM n6IHkdzkFgqwD/HKEi3WAd9BzIdMs/9CdLlQSiCpwZcbwqLmbbWJX3zIVjkroLZu v/cDzGk5rwhlMEkz8/+/LblSiPbCdVADe5Sl6P24hK2alb3qQPhWGneUsnGoycyn Nt5+K3MnOajMFVschuy5YGlWEJfSMl6W9NGqcobNyYv4rRVosaHz32Et3APD4ZPR 3lZ6+ypp3Q5z0VGAdDlJ5CULzJKVOeWiEZm5VHSrb8ZYiFZfkocc31Uqd+7QM7WQ PqRmgv7jrWuHPmcFtZ5V/cWk4uaOPJP2EhXD33kV9NDosovWrSwZXb+mOAKW2KaZ 13uM0oChOcLpzlHixNwnCmwDOt6u3Ctuyb3IFfkbcK32CPVD/3xE3tfS2BcM1xfq vAJJuWmh =dBTC -----END PGP SIGNATURE----- --irSWsLPsnJ2dGDB4--