Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 51A9DC6FA92 for ; Tue, 27 Sep 2022 15:57:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5233F84DC3; Tue, 27 Sep 2022 17:57:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="TwoXVMEF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5CD7984DC9; Tue, 27 Sep 2022 17:57:36 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 9092A84DB2 for ; Tue, 27 Sep 2022 17:57:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id u28so6304845qku.2 for ; Tue, 27 Sep 2022 08:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=TSqYOnnz+qbjjK4uTaTwS0Lrl28OJqFi/ENUX/r2rd8=; b=TwoXVMEFIvd3VcS0lqaOa7eJu+8x8yq2ZzHUqWuaceHD2UUBqJGw135rmvGvZFnR0p MiV3dZ6N5b1WhrkyCUfCZwfw6DBRcV7SCyvVQosgwTEJBLSGKGAKJ6HKSfXprzn9sxdd bBVqT6mOjUZMdW6CLEc76l9bipr/Xxx/6dmkE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=TSqYOnnz+qbjjK4uTaTwS0Lrl28OJqFi/ENUX/r2rd8=; b=65xdarc3vPMGupBw9oEr3BJp53yTBSzqCjvvJ4MM1m4uvteBOrKIU3ZcPM+cCTjsVO 4hf1phDh4h1OVqyBIAK+U1oiVO0Kx+3qSrM71f6mN/q9V5WruoD3RL44myyZXqF28M+D MlpGRDobh44tkaB+V5z7/JvHw6f6UirMq4KGJ3ZQh6MMQPp6QRG5qUmZPpBNAuivqKeF o0P4oKAvMLhsI9YwL40rbgCWFLw/ER0aq8CKOwBTs3KbaYuD62eUk3qYztzmOCYaj6l4 BbdQ9JHuq/4vex8v0KQLqRK/nUrEzIc0G5RvKrc8uv3Z+R9Fiq6D5pMSHXzDlhjseshe 8NVQ== X-Gm-Message-State: ACrzQf2Oa/G5W5O0Exr429YixPbs9idJl141BIWY6prgudzXxc8bzdYN AUpe3F/8QLkegj6fU6qAxSteyw== X-Google-Smtp-Source: AMsMyM7NV+7mjP4t5MFipgcrqcL3n0Sp+n2e8hOoFPwXrsa/spQFEQcFx+0Yz+w0HMc2JwZp+sO0VQ== X-Received: by 2002:a05:620a:15d2:b0:6cf:2d38:9c0d with SMTP id o18-20020a05620a15d200b006cf2d389c0dmr18366220qkm.426.1664294252302; Tue, 27 Sep 2022 08:57:32 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-5d3f-011a-6fb8-fe6c.res6.spectrum.com. [2603:6081:7b00:6400:5d3f:11a:6fb8:fe6c]) by smtp.gmail.com with ESMTPSA id z25-20020ac81019000000b0035d432f5ba3sm1029353qti.17.2022.09.27.08.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 08:57:31 -0700 (PDT) Date: Tue, 27 Sep 2022 11:57:30 -0400 From: Tom Rini To: Alistair Delva Cc: u-boot@lists.denx.de, Simon Glass , Nick Desaulniers Subject: Re: [PATCH] Makefile: Disable PLATFORM_LIBGCC for LLVM toolchain Message-ID: <20220927155730.GQ3044094@bill-the-cat> References: <20220926204747.862654-1-adelva@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZgsfP6ejcHXtpYqZ" Content-Disposition: inline In-Reply-To: <20220926204747.862654-1-adelva@google.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean --ZgsfP6ejcHXtpYqZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 26, 2022 at 08:47:47PM +0000, Alistair Delva wrote: > The LLVM toolchain does not have or need libgcc, so do not require > it to exist on the library path. Even if "-print-libgcc-file-name" > returned the empty string, -lgcc would be specified. >=20 > This leaves CONFIG_USE_PRIVATE_LIBGCC alone because I did not have > a target/toolchain combination available for testing. >=20 > Signed-off-by: Alistair Delva > Cc: Simon Glass > Cc: Tom Rini > Cc: Nick Desaulniers > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/Makefile b/Makefile > index 8af67ebd63..af06b7aa19 100644 > --- a/Makefile > +++ b/Makefile > @@ -874,8 +874,10 @@ u-boot-main :=3D $(libs-y) > ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y) > PLATFORM_LIBGCC =3D arch/$(ARCH)/lib/lib.a > else > +ifneq ($(cc-name),clang) > PLATFORM_LIBGCC :=3D -L $(shell dirname `$(CC) $(c_flags) -print-libgcc-= file-name`) -lgcc > endif > +endif > PLATFORM_LIBS +=3D $(PLATFORM_LIBGCC) > =20 > ifdef CONFIG_CC_COVERAGE So this one isn't quite right, and will result in some platforms / architectures just failing to build as the handful of functions we get provided by CONFIG_USE_PRIVATE_LIBGCC end up being missing. It's also the case that this is a badly named option, and something we really should figure out how to remove and then always provide the required functions for. What configuration did you end up having this problem on exactly? --=20 Tom --ZgsfP6ejcHXtpYqZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMzHWYACgkQFHw5/5Y0 tyzFtQwAtwZS6vuka0gSHMunIUTl4lCQibOlrFK6TqOah0QZe1iQatqE9PXdNf77 U8N9seJvD7qjUhLllCRFIwWiQXA+ExDUaNxulByBlkDKJJUHYzSeCSFK3drDwFpw Z9WGPzDbXy0iQn/fb8hxC++rUGgYJFAoCEvKX/G6u0eQKKB6dwaHZ/hHPMznGVKz Gx38sfB3dUIaFmPYop1UqY+cKo0BVhwcL0dI0PYx8vrNmM5ao4NKKhey7VdwgcH4 wh94CHurxT8wkZsCe6yLVFab6Mdxfn4ej6YJFd8z7IiZaZWwXNUQk/F74km+fZdd Ekv0qZ6nYTj1IA6FjO+2PQMZGA0eIZZ/3SatzGq50ZMFGkje2K03iD9S6LLDwBi0 bhskMaYRY1bm+7iYufY1RT/rPjtzjrvhrIyk/XiAyHS5FjeSZbh7nLbxC7ejYiGr uudS7toxpaecnI5ql8bYrJ2f1rpcBtXqh2VXaR66W38fanNmvFFUCa6ZZUFfQ/lO vuGS3sHo =FEpN -----END PGP SIGNATURE----- --ZgsfP6ejcHXtpYqZ--