Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1262210rwl; Fri, 24 Mar 2023 08:15:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2bP1Ic+EHOj9LuEix2r/DDKlLlZWPnoxj+TqbZch5v4nE1wAbvNqbZu3/g/TLJcMraOve X-Received: by 2002:a17:907:1c21:b0:8dd:5710:a017 with SMTP id nc33-20020a1709071c2100b008dd5710a017mr4120180ejc.4.1679670929379; Fri, 24 Mar 2023 08:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679670929; cv=none; d=google.com; s=arc-20160816; b=oV1wsIbSBifVNx8EZK6FxNT+/S3V341pnEZ1hYMVos3YfQRIR9lz8FDl03fTrGZBIF 8cXsipjc6E7phYavN9AX/Pfy2pPkogcjqupA9HW5iERwmPj9CPcZqDZpucGS6QeKNDfp yM6a3MMxG4B9LOiU1oaXe2vCrVl8jq0p0GgXwwW5OrCRPAmb/fknTzpCiam4rOm0iFn3 sbRYJMu46YGXBfsXh5rdzoMeNIYU+Jvho7brHwAMhjdLHF00IVuaW+xMXhe45t5zMCBA wPr83Xoe35jBp85on+aXCzgPxY06vEp+mRW3lNxGWe5RCsN5IwvuhfMsBUvn2tnEvh1e Qu5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=garrpPpyPrH5ITcsNui8xR5YxYQS0DHm03MGz7N+1ig=; b=YSFP0jY0vhD6//1nY9wDD6RMWBu43ke1io++j2mJ4Q8/t2c6VqFVSxQHSFwfNd7+To wKEDGPmIut0gLM2E3gFA7PpEqEWfNwz+a7nzR4UE6EXLK/hG95wHUgAZGmDia1+xhQnD Cphku+pd/BIphLMPcr73tDdpf8Yi7hJb+T+DGoecBM+LesVc9A2qQgRMI9WxdeIQbhvx rsdIzexwVWQMQVPfjd7VPwgV9U0oxxvTgkaQi85mkjydL1ILVFVJMsGFbXil5hkvJoFu GCc2l7U78Xi3OTMv4+zUvMauPYUhEAgk3zgjMRtqaWrNFwGoGgq4IdDeJPfc3JtH35tK YJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q7XyjBSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b0093defbd6286si2665166ejc.1037.2023.03.24.08.15.04; Fri, 24 Mar 2023 08:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q7XyjBSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232381AbjCXPMR (ORCPT + 99 others); Fri, 24 Mar 2023 11:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbjCXPMM (ORCPT ); Fri, 24 Mar 2023 11:12:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D7711ACCF; Fri, 24 Mar 2023 08:11:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DA051B82498; Fri, 24 Mar 2023 15:11:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A886C433EF; Fri, 24 Mar 2023 15:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679670712; bh=LXkcBaVN4sD3aA/Yu8oqsBZwSZvmPG3nbf3lXKaMxBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q7XyjBSlZLCbflyBFYLN3PU1XLSRlIcWMtf8/jETGeeiJziAIM3Fk7N125iH5TCXV 07zvCLWWzvRJB1qTr+KeCY2aqKpdfVyzQvX3av2JjOk1SQmw2S3h9NPOTkzVrH93Wi pdVph57fEjSZZR9pgbMB1B2QrmZkmPsGnUjvGfAQznBeyjeIRlMc0RJVcRJp9CH7LY lng/crNCS0C3rVCPLaGeea9dVE5XIXBZi9agCNDETO9DYVFjtMWXwOnj748JQ6DpO7 xmA8kzxky13rYck3GGP0hNCxB+vOh2gWmnnEp55FN5jwYTObGv4srpeLDgEfNFB9AY CqKmZdnmiCG0A== Date: Fri, 24 Mar 2023 08:11:50 -0700 From: Nathan Chancellor To: Kalle Valo Cc: Linus Torvalds , Linux Kernel Mailing List , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-toolchains@vger.kernel.org, llvm@lists.linux.dev Subject: Re: Linux 6.3-rc3 Message-ID: <20230324151150.GC428955@dev-arch.thelio-3990X> References: <20230320180501.GA598084@dev-arch.thelio-3990X> <20230320185337.GA615556@dev-arch.thelio-3990X> <87pm91uf9c.fsf@kernel.org> <20230322163637.GA918620@dev-arch.thelio-3990X> <87wn36ctdi.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wn36ctdi.fsf@kernel.org> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 12:54:01PM +0200, Kalle Valo wrote: > Nathan Chancellor writes: > > > On Wed, Mar 22, 2023 at 02:44:47PM +0200, Kalle Valo wrote: > >> Nathan Chancellor writes: > >> > >> > Perhaps these would make doing allmodconfig builds with clang more > >> > frequently less painful for you? > >> > > >> > https://lore.kernel.org/llvm/20230319235619.GA18547@dev-arch.thelio-3990X/ > >> > >> Thank you, at least for me this is really helpful. > > > > Really glad to hear! I hope this helps make testing and verifying > > changes with clang and LLVM easier for developers and maintainers. > > It really does. And I hope you are able to update these packages in > future as well so that it would be easy to get the latest clang. That is the current plan (I will push 16.0.1, 16.0.2, etc. as they are released), I have a relatively automated process for this going forward. > >> I tried now clang for the first time but seeing a strange problem. > >> > >> I prefer to define the compiler in GNUmakefile so it's easy to change > >> compilers and I don't need to remember the exact command line. So I have > >> this in the top level GNUmakefile (all the rest commented out): > >> > >> LLVM=/opt/clang/llvm-16.0.0/bin/ > >> > >> If I run 'make oldconfig' it seems to use clang but after I run just > >> 'make' it seems to switch back to the host GCC compiler and ask for GCC > >> specific config questions again. Workaround for this seems to be adding > >> 'export LLVM' to GNUmakefile, after that also 'make' uses clang as > >> expected. > > > > Interesting... I just tested with a basic GNUmakefile and everything > > seems to work fine without an export. At the same time, the export > > should not hurt anything, so as long as it works, that is what matters. > > Sure, once I figured out the quirks I can workaround them. I was just > hoping that other users would not have to go through the same hassle as > I did :) > > > If you have any further issues, please do not hesitate to reach out! > > This is nitpicking but it would be nice if the tarball contents wouldn't > conflict with each other. Now both llvm-16.0.0-aarch64.tar.gz and > llvm-16.0.0-x86_64.tar extract to the same directory llvm-16.0.0 with > same binary names. It would be much better if they would extract to > llvm-16.0.0-aarch64 and llvm-16.0.0-x86_64, respectively. > > For example, Arnd's crosstool packages don't conflict with each other: > > https://mirrors.edge.kernel.org/pub/tools/crosstool/ I could certainly do that but what is the use case for extracting both? You cannot run the aarch64 version on an x86_64 host and vice versa, so why bother extracting them? I had figured the architecture would be irrelevant once installed on the host, so I opted only to include it in the tarball name. Perhaps I should make it clearer that these are the host architectures, not the target architectures (because clang is multi-targeted, unlike GCC)? > And maybe request a similar llvm directory under pub/tools to make it > more official? :) Yes, I was talking that over with Nick recently, as having it under a group on kernel.org would make taking over maintainership easier should something happen to me :) Thanks for all the feedback so far, it is much appreciated! Cheers, Nathan