From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89DADCA100E for ; Fri, 30 Aug 2024 20:09:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CBA1D10E105; Fri, 30 Aug 2024 20:09:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smtpservice.net header.i=@smtpservice.net header.b="2eidskBy"; dkim=pass (2048-bit key; unprotected) header.d=fjasle.eu header.i=@fjasle.eu header.b="IJftvIaS"; dkim=pass (1024-bit key; unprotected) header.d=fjasle.eu header.i=@fjasle.eu header.b="P7Vd6NkS"; dkim-atps=neutral X-Greylist: delayed 607 seconds by postgrey-1.36 at gabe; Fri, 30 Aug 2024 20:09:14 UTC Received: from e3i12.smtp2go.com (e3i12.smtp2go.com [158.120.84.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 90FCD10E105 for ; Fri, 30 Aug 2024 20:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1725047644; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=8ffM0oj/VoAWiRvIYhx2YzkqNpRjhG4e8iNPq0uer6M=; b=2eidskByTSsWDgd+LCHtUHFBwzcj+UaoQt0d3qS20bPhZTH0VKexHxzqIdTRjA8Yb3ErG c9aHWDuxloGp4/iEBeeJ2dpwqpptdtjAPgCtm+PWrCXxS3AAszOE/LFpw1pwW4XqcuMphmT JCR+E0iLDxt2HashjJCwV4NhkeBA+aVM4ddToUfvzFZ2q3zuIVwLi+GC/Od89RzbJD7I82c 6gmF3+fym5f0xapn47hzYitJ/MUByo0hyNFEHFZSXYK0qBW8hbvHSojUX6FDadtDKABoAp6 yLjzeKgvGpyb+0tfrt1qTNXwwPq3Lxb8ETlMbch5JdKsF6S8D3T0TOIAORDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fjasle.eu; i=@fjasle.eu; q=dns/txt; s=s1174286; t=1725047644; h=from : subject : to : message-id : date; bh=8ffM0oj/VoAWiRvIYhx2YzkqNpRjhG4e8iNPq0uer6M=; b=IJftvIaS9leX9whJpufu1xAkcK4qgql2c/mOtvMrHCMkiM8GhikswWi5/lJQdmcyp6Mc9 rpoCsbNnYI6QeCIdNFqgIwuRwl+6ysY5tKyxXqWbcVYNmjdytGorEmH8W09SyDiFiyYDp8P 8WBCd59VXU70RM4W/lGpgbrZg2hITaqd5t3couklg9KQpPTT29joI9ERZhjFG44TTxSv75l 5rC41YA5HazHy40oR2IGrEoTZGygQ7zW976YvyoSznU8ipJuwsh9J2OTedWAnoQckVNPRpD E3pa10UyI3ZE4o4/KucWtRUoDANzJI/f+9iKjyWsU0ABIPWQoYZVqgLaNsAw== Received: from [10.85.249.164] (helo=leknes.fjasle.eu) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1sk7gj-FnQW0hPpdBf-nWmg; Fri, 30 Aug 2024 19:53:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1725047604; bh=VrcLFN5tqkfWY7mTHOYKMf0e0KvomCFsMPrfJDAaMSY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P7Vd6NkS50dZUF4ArGNPd4emC0HPqVDT3dc+nak6w/kyFZyIa7wpU0vTqmsiIkRep lFQ7rFhNaD2Mf9eA7RsNhjnIHPRkgubjb0TmusaqfHzYKQpJgQpvZs4tHW5Z4AT4vC fDqmIJfHaxoaJYo+8KfLKLIUurdYOyn4DfkqTbOE= Received: by leknes.fjasle.eu (Postfix, from userid 1000) id 423D3449B6; Fri, 30 Aug 2024 21:53:24 +0200 (CEST) Date: Fri, 30 Aug 2024 21:53:24 +0200 From: Nicolas Schier To: Daniel Gomez , Masahiro Yamada Cc: Greg Kroah-Hartman , Nathan Chancellor , Lucas De Marchi , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Paul Moore , Stephen Smalley , Ondrej Mosnacek , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Jiri Slaby , Nick Desaulniers , Bill Wendling , Justin Stitt , "linux-kernel@vger.kernel.org" , "linux-kbuild@vger.kernel.org" , "intel-xe@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "speakup@linux-speakup.org" , "selinux@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "linux-serial@vger.kernel.org" , "llvm@lists.linux.dev" , Finn Behrens , "Daniel Gomez (Samsung)" , "gost.dev@samsung.com" Subject: Re: [PATCH 08/12] include: add elf.h support Message-ID: References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> <20240807-macos-build-support-v1-8-4cd1ded85694@samsung.com> <2024080717-cross-retiree-862e@gregkh> <2024080720-skyline-recapture-d80d@gregkh> <20240807-mottled-stoic-degu-d1e4cb@lindesnes> <20240823225450.spuvjs5b5ruujim4@AALNPWDAGOMEZ1.aal.scsc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240823225450.spuvjs5b5ruujim4@AALNPWDAGOMEZ1.aal.scsc.local> X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 1174286m:1174286a9YXZ7r:1174286sfGQOlJjcl X-smtpcorp-track: vl0byxy_CcVV.s14Xk-OJvFci.ixZqoQuamBs X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Sat, Aug 24, 2024 at 12:54:50AM +0200 Daniel Gomez wrote: > On Wed, Aug 07, 2024 at 05:46:03PM +0200, Nicolas Schier wrote: > > On Wed, Aug 07, 2024 at 04:18:54PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Aug 07, 2024 at 02:13:57PM +0000, Daniel Gomez wrote: > > > > > Also, as this is not internal for the kernel, but rather for userspace > > > > > builds, shouldn't the include/ path be different? > > > > > > > > Can you suggest an alternative path or provide documentation that could help > > > > identify the correct location? Perhaps usr/include? > > > > > > That is better than the generic include path as you are attempting to > > > mix userspace and kernel headers in the same directory :( > > > > Please keep in mind, that usr/include/ currently does not hold a single > > header file but is used for dynamically composing the UAPI header tree. > > > > In general, I do not like the idea of keeping a elf.h file here that > > possibly is out-of-sync with the actual system's version (even though > > elf.h should not see that much changes). Might it be more helpful to > > provide a "development kit" for Linux devs that need to build on MacOS > > that provides necessary missing system header files, instead of merging > > those into upstream? > > I took this suggestion and tried pushing a Homebrew formula/package here [1]. > I think I chose a wrong name and maybe something like "development kit" would > have been better. However, would it be possible instead to include the *.rb file > in the scripts/ directory? So users of this can generate the development kit in > their environments. I would maintain the script to keep it in sync with the > required glibc version for the latest kernel version. > > [1] https://github.com/Homebrew/homebrew-core/pull/181885 I think it sounds sensible to hold that formula file in the upstream tree. But I am not sure if scripts/ is the best location. Masahiro, what do you think? Kind regards, Nicolas