From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uMoAEx3wyGPCoQAAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 08:24:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AKjvEh3wyGO7SgEAauVa8A (envelope-from ) for ; Thu, 19 Jan 2023 08:24:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1DFDF13F64 for ; Thu, 19 Jan 2023 08:24:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIPHJ-00012P-5F; Thu, 19 Jan 2023 02:24:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIPHH-00012H-Ai for guix-patches@gnu.org; Thu, 19 Jan 2023 02:24:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIPHG-0003fI-Pz for guix-patches@gnu.org; Thu, 19 Jan 2023 02:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIPHG-0006kP-GG for guix-patches@gnu.org; Thu, 19 Jan 2023 02:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60934] [CORE-UPDATES PATCH] gnu: mesa: Use smaller llvm backend. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Jan 2023 07:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: John Kehayias Cc: 60934@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 60934-submit@debbugs.gnu.org id=B60934.167411303325920 (code B ref 60934); Thu, 19 Jan 2023 07:24:02 +0000 Received: (at 60934) by debbugs.gnu.org; 19 Jan 2023 07:23:53 +0000 Received: from localhost ([127.0.0.1]:42410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIPH7-0006jy-5V for submit@debbugs.gnu.org; Thu, 19 Jan 2023 02:23:53 -0500 Received: from mail-ed1-f52.google.com ([209.85.208.52]:35649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIPH4-0006jk-V5 for 60934@debbugs.gnu.org; Thu, 19 Jan 2023 02:23:51 -0500 Received: by mail-ed1-f52.google.com with SMTP id y19so1766762edc.2 for <60934@debbugs.gnu.org>; Wed, 18 Jan 2023 23:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=MMZmxYBlcJCKlQK+RIrPUScJ/5+0pl6rl6971NlEAZs=; b=ZBFdyJW0e+JvwJ1mKKYBs05ZAJWEnkmF6fRB3AjhmjughV7rPEKPGdJCG5iVzOtUoq E2rH2syODWqZAkOtWutrAyBiLzbmOxWbYpNijyGt9+lV9ptvbh7BBiHJviKjrUuh8vku OqjKb8yzgVxwzw1boyW5iKCjJPBN6OqPJkjpj6dWIVe228ah+CroUEr7gZHX83ayfRsz ZopP/62tlnForIf3jobVJrApEXDZXPWdKsDsaMP7ZmeBNB6+zQjMBVSHczFXJTUkkqUc +jXbFVJkAMK/hKK9FTli+KE/wmpdCfEU4nLPlwJax3zjMX35PrIgj1Q8eVv8QhAcmfLi /fQw== 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 :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MMZmxYBlcJCKlQK+RIrPUScJ/5+0pl6rl6971NlEAZs=; b=X7nYmtXi7jKNVRVB46ymBkNrr0xg1SnFGyzTyyDS4MLm5m+2IHn8Qo7IyEBmWfrj6Y jvgyt4RD+MdOIRiWlkOgSvh2gqV7e/Y+3LAwIAlhJE2odRf/DkxovB0yLSH4IDdKC+MS NZn8WmCMpABUP0M+Q+s7kMX3KeS5QkMVxSrDHUbIDF9GVrK/LGij/SP0d9GKMvseTSg9 MhtsTvJ3TRolBzon2HdixfNbyvCGOUKcvtUO7UgeMogn5TjCYFnsjEW5qhMuRFAB6J0+ ma+J6Axx2bkFEtP2S/R/aPzFnQXv++3OcAWK7y2enPF/V0XEaCSUpPoOQ2R5db2Bl9Po iBXQ== X-Gm-Message-State: AFqh2kqV6SxbgrFGBdQP37TxwWl0xnV0ghcPndo75fH4ymYdVZCrI8Eb eTfqL5sPH/AZC8PzguhWADs= X-Google-Smtp-Source: AMrXdXuKolclXn0swNZEtNHnyXvkGihIxzfoiq/LbrVwiEY63rGPLWuuRIj+UOKocNqMTMt9U24EGg== X-Received: by 2002:aa7:df18:0:b0:47d:ca3a:3b32 with SMTP id c24-20020aa7df18000000b0047dca3a3b32mr10534472edy.9.1674113025009; Wed, 18 Jan 2023 23:23:45 -0800 (PST) Received: from localhost ([2a02:ed3:910:1100:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id v19-20020a509553000000b0046cbcc86bdesm15478407eda.7.2023.01.18.23.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 23:23:44 -0800 (PST) Date: Thu, 19 Jan 2023 09:23:42 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , John Kehayias , 60934@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87cz7bfc6a.fsf@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VEcc8FAfhYsfcahA" Content-Disposition: inline In-Reply-To: <87cz7bfc6a.fsf@protonmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674113052; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=MMZmxYBlcJCKlQK+RIrPUScJ/5+0pl6rl6971NlEAZs=; b=Faukc5fWZJ2AeBmeQUVwVBTNPoaelEHprq3vq+hizg1PGFinKNUotX6q4nXJWqrtwqbHRH xh11B+A+R9wCINJy6cm/M5uCI5KwIG6+jhJjaz0z4b18cUDpbGJnpXFwYBge6jDOhloeyC u8IB1JatbiM4NUStyIDCUQLVxl82mArOMwYhnTCAHNksZCLb2AVI7SvK1yoItp8aAP7wZn Y52ayz67v1qYvML+8P2xHLWZA1QY2i+PmFmALfLgfE8OZz97aWr4hYWkTam7P+E9BQBIDy tRscE+eCxUAOxBVW7nXQMbUNJLnzbgfXwJMSykp2ro7wpXRkntEqVFe5hkUoFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZBFdyJW0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674113052; a=rsa-sha256; cv=none; b=VR4iKXKN4GRY2baJfQfElTqCmfCq0N5in6fOw7GyDQard5hWAfR6vFvPhcPtZnBTOXXltK zXiXTnwy4Wf7j5BrouRo8g6u6bdqpmMnvaMu98306s1CNa+ZQbs/rQmPW50rKKgyySviRD dBDjMgsAWTbf/RQxKq5yrBmDm2z559K1zzSC4P7eYl0MaRImdtyBmR02rzCVIYpkndjKck EgKDvlvT3wyWbv3sPTRT8IXS2O67NHzy8e/8oWalzvla6ZQgxqY0o91b75p+JRAVN/2ncg 9/0koYL4KkiO7kme8GL0gyNmw3FILdyaRgYqo+39ODCmzo5MtVdrT58QeIenlg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.73 X-Spam-Score: -0.73 X-Migadu-Queue-Id: 1DFDF13F64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZBFdyJW0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: Sm5OURsg9SdQ --VEcc8FAfhYsfcahA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2023 at 03:14:46AM +0000, John Kehayias wrote: > Hi Efraim, >=20 > On Wed, Jan 18, 2023 at 04:49 PM, Efraim Flashner wrote: >=20 > > * gnu/packages/gl.scm (mesa)[inputs]: Replace llvm with llvm-for-mesa. > > * gnu/packages/llvm.scm (llvm-for-mesa): New variable. > > --- > > > > I wasn't able to tweak this to be able to build a cross compiled mesa. I > > was able to build and run glxgears on core-updates with this patch > > applied. > > >=20 > Nice! >=20 > Not sure if you already saw my message on guix-devel > https://lists.gnu.org/r/guix-devel/2023-01/msg00218.html but I'll just > repeat the summary: looks like latest mesa wants latest llvm (llvm-15 to > be exact) for current hardware support. I think this is the summary: > https://www.phoronix.com/news/LLVM-15-Branched >=20 > Have you tried with other versions of llvm? >=20 > I haven't checked what version of mesa is in core-updates or any pending > patches, but I can send an update to the latest version if needed. >=20 > I also haven't reviewed/tested this patch, but I do use current mesa via > another channel where I could try it out with this modification for > testing and get back to you. >=20 > Thanks for working on this! > John I was going to start with llvm-15 but currently core-updates only has up to llvm-14 and mesa is currently built there with llvm-13, so that's what I used. I also ran into a number of cross compiling issues while trying to test cross compiling on core-updates so I think I'll try working it on master so it can be more easily tested, and then when it's good I'll commit it to core-updates. I'll also see about a master->core-updates merge. For the next version of the patch I think I'll copy the static libraries to a static output instead of deleting them. I'm not sure exactly where they'd be used, but at least in a different output they won't add to the closure size if we need them and they're available if needed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --VEcc8FAfhYsfcahA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmPI7/4ACgkQQarn3Mo9 g1GpvQ/8DMtoCCx4bH3BwCCuuQjpSL1AzuB35N2BGos4QWYZY5b2V6p1PVKXpaeK uzK9qcxctXSEsUHKsQfWg8TfUPJZf75NOIIszF31gX/K1PcfBCneIaX5qIulT4bw a2tWopwiSkho/q5sexoTgM4WQ5nWX6a8ONu2NmBUWMoUAeA++zLgLyZhdMMXbHRw DPhR+7h8aPRSdxuDFhyyFr/q2l9ahcA8zZKo7z5jAp8f9Oai2I/7ZjpTEcup46a8 ifiiwXS+oE7DpbdkEFH7LRllzOZpqavLmL6cJdhESJoLVewYgfuwDjJyONl2nUtp Z3yeJChl5pMqcvGs6eYmWIi2U8qc8d4CPALKLPMw/dzimWHcn3v+N3QGoYXab9jj w1JGMof5Mviq76zmVS3ywPLodGKe8zAHwpeeBTe3ORqxS5TDGqchyyAby7LmwmCK ZK2mTK6Hx5V02c4MECxafQr3Sx46crCrb098qeCB95SXpkeVVUf+x0Zfrw/CMf5n YK7VWK56PTm9ERP4ElUo9L1W1d1RXdpwObgckD/xT+bXCKd92bM2/IOC3LN4QQge svleIVFhL4kkq+rIYTAljbiDSnlY+p+kRQY8ASzsWzD21Zkg+/GtyiQjMIv8oAvg sjdI6ovAIZRVCjsFDiv7kN0HHlTo//HjIAiUkFicBYp0JWoDUEY= =WEgZ -----END PGP SIGNATURE----- --VEcc8FAfhYsfcahA--