Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2861889rwb; Fri, 20 Jan 2023 08:13:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvl8Z0ohVw9SilAjPgSWyBZqxP2Zf46BeFI2WLPJMG6GKKAeoqIovYqxhgYjdD+RZYlNFU+ X-Received: by 2002:a17:90a:1912:b0:229:f8c8:92b4 with SMTP id 18-20020a17090a191200b00229f8c892b4mr5248674pjg.28.1674231220964; Fri, 20 Jan 2023 08:13:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674231220; cv=none; d=google.com; s=arc-20160816; b=l5mdDk1q1mAl8fezft2KkOqjFlJ7tFhREwoonkECT4AHLSNw6xK9TqkGXkvo02CGkt W+SNVzT6E/3aGRlyLWOsiCkak8gs4637De7LQOHF6nC5v0Q+BMHacYAyT3bTqFAsRTQn IVloCqSCASBSziow0nuR3CyHMfbz3Enf5uMB2B3RQkZDDNJdN+7LyVdbDLLc6YRXtUqM lXdFplMtbOfs84DS9c03V1XSEJJkjxtGn2YmhIhcYTA0ssidTR2R1TvGWwKVn17nete8 Rnws0SQeGGvlaHHnnr5bIQe8lsGa9CfWor2F9U6U4QjlgooHCvgfjEBmczh7RPqGW/3J G3fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=1/i8XkaZ2kWH/ANJugw9+lV13XFt/Z3piuqR1SILJ8I=; b=nLiFVr8Yjx3dTh99nCmDwwnuiTSDNL11LSPspAgVNXPIttmzOLXDC1lOt9QiQGh1pI kxYtyTEAQloVjuFQnKKhNYwLb6puk/YTcjapUWA1crcZGQjEL/aHeWTwPfLrOYLKloPd oS5t5Tdd7J++qFT4HInzKwFgk2gfAfl1Pjwl54z1TvGam5CiIACE84tt5ebe7qnXA9Pn 9Zmm/H2DD3l9Qkh9WCkvP8bWz7uN5Cm21Vb4owPULPksqO2XLgKIB46a5WthcKzlslPZ YBsjTEiPwj2SY+VvaAMMz9ZOzqhw5bHAjj/iEDgH7/uu+uRVLC9+rPEADybLcRu7426b I4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=Z7ILUxnU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AScM23Xt; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a17090ad34300b0021c2c7f0f93si2702238pjx.66.2023.01.20.08.13.34; Fri, 20 Jan 2023 08:13:40 -0800 (PST) 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=@arndb.de header.s=fm2 header.b=Z7ILUxnU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AScM23Xt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjATPBj (ORCPT + 49 others); Fri, 20 Jan 2023 10:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjATPBh (ORCPT ); Fri, 20 Jan 2023 10:01:37 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD5741B72; Fri, 20 Jan 2023 07:01:36 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 64F0B320077A; Fri, 20 Jan 2023 10:01:33 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 20 Jan 2023 10:01:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1674226892; x=1674313292; bh=1/i8XkaZ2k WH/ANJugw9+lV13XFt/Z3piuqR1SILJ8I=; b=Z7ILUxnUEkzDx9iXK5m79/Qfx6 5NgR1h7GaZSs6m6EjGhB0T2JyLonAq8QbFo+zMdp+sskyZqCcQN4J4MCKdJrvyfA /Zo/6LiA3eGCe2G6FQaiwRiamDyIYyyBsM8EJkVXknTRIEy5lxOjr8jdj6oXA1cx 7H9gGJWGdYNzHnIbeA5V+uqFjz8OHl1jLoaORBjHV+IiuGNpspQ+dRbLsVKOcXmw pybet8+YyK0Pu1iSXizlB0CFOzrqdvJ4JF3UksO8pdnRNeb2Um/Alt0yZzVj1gXv mGDyU2VjAxeLzFSgn56X3lP5U2gT7i7xaZfY+hFG/i+QEtPClr0MyyqtGxeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674226892; x=1674313292; bh=1/i8XkaZ2kWH/ANJugw9+lV13XFt /Z3piuqR1SILJ8I=; b=AScM23Xt6qrpZI1KEsWsxYOn46MGu0a4483EASgzUxif KYkOY2m52kcdjHCovknnMnYQJ99X6orCBhmLWS5xVQNF19oVu15lFoonVHv2dog0 MlegsyeEhaQHG7sDEAMLF52WrEfHd41pMMUH5jWBBBIgD5r/yVwPNdvoZLVRvCZs XG5nbVuootxqzspKIpkBHJUrA/jQbdScKeazemZDA0PLBUbUKMeHPhT8dTcZfYa1 vMGiw2YIYuERhKpZr0F8jFDtOWVZmYE5EkKJ3QGc89GGjO2vTN5126Ne8Xy8EYkt yE05gOqaELiKxFdzrS/8jcqdrHeyoZrmDrqh11FfTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 786ABB60086; Fri, 20 Jan 2023 10:01:31 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0 Mime-Version: 1.0 Message-Id: <9965e2d1-bae8-4ce7-911c-783c772e9ff1@app.fastmail.com> In-Reply-To: <20230120145316.GA4155@tellis.lin.mbt.kalray.eu> References: <20230120141002.2442-1-ysionneau@kalray.eu> <20230120141002.2442-10-ysionneau@kalray.eu> <20230120145316.GA4155@tellis.lin.mbt.kalray.eu> Date: Fri, 20 Jan 2023 16:01:11 +0100 From: "Arnd Bergmann" To: "Jules Maselbas" Cc: "Yann Sionneau" , "Jonathan Corbet" , "Thomas Gleixner" , "Marc Zyngier" , "Rob Herring" , "Krzysztof Kozlowski" , "Will Deacon" , "Peter Zijlstra" , "Boqun Feng" , "Mark Rutland" , "Eric W. Biederman" , "Kees Cook" , "Oleg Nesterov" , "Ingo Molnar" , "Waiman Long" , "Aneesh Kumar" , "Andrew Morton" , "Nicholas Piggin" , "Paul Moore" , "Eric Paris" , "Christian Brauner" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Guillaume Thouvenin" , "Clement Leger" , "Vincent Chardon" , =?UTF-8?Q?Marc_Poulhi=C3=A8s?= , "Julian Vetter" , "Samuel Jones" , "Ashley Lesdalons" , "Thomas Costis" , "Marius Gligor" , "Jonathan Borne" , "Julien Villette" , "Luc Michel" , "Louis Morhet" , "Julien Hascoet" , "Jean-Christophe Pince" , "Guillaume Missonnier" , "Alex Michon" , "Huacai Chen" , "WANG Xuerui" , "Shaokun Zhang" , "John Garry" , "Guangbin Huang" , "Bharat Bhushan" , "Bibo Mao" , "Atish Patra" , "Jason A . Donenfeld" , "Qi Liu" , "Jiaxun Yang" , "Catalin Marinas" , "Mark Brown" , "Janosch Frank" , "Alexey Dobriyan" , "Benjamin Mugnier" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, Linux-Arch , linux-audit@redhat.com, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [RFC PATCH v2 09/31] kvx: Add build infrastructure Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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, Jan 20, 2023, at 15:53, Jules Maselbas wrote: > On Fri, Jan 20, 2023 at 03:39:22PM +0100, Arnd Bergmann wrote: >> On Fri, Jan 20, 2023, at 15:09, Yann Sionneau wrote: >> > - Fix clean target raising an error from gcc (LIBGCC) >> >> I had not noticed this on v1 but: >> >> > +# Link with libgcc to get __div* builtins. >> > +LIBGCC := $(shell $(CC) $(DEFAULT_OPTS) --print-libgcc-file-name) >> >> It's better to copy the bits of libgcc that you actually need >> than to include the whole thing. The kernel is in a weird > It was initialy using KCONFIG_CFLAGS which do not contains valid options > when invoking the clean target. > > I am not exactly sure what's needed by gcc for --print-libgcc-file-name, > my guess is that only the -march option matters, I will double check > internally with compiler peoples. > >> state that is neither freestanding nor the normal libc based >> environment, so we generally want full control over what is >> used. This is particularly important for 32-bit architectures >> that do not want the 64-bit division, but there are probably >> enough other cases as well. To clarify: I meant you should not include libgcc.a at all but add the minimum set of required files as arch/kvx/lib/*.S. Arnd