From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KKElIMg+AGHMqAAAgWs5BA (envelope-from ) for ; Tue, 27 Jul 2021 19:13:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eCqhG8g+AGEYfAAAB5/wlQ (envelope-from ) for ; Tue, 27 Jul 2021 17:13:44 +0000 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 0CADA14F57 for ; Tue, 27 Jul 2021 19:13:44 +0200 (CEST) Received: from localhost ([::1]:43394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8QeF-0003Va-22 for larch@yhetil.org; Tue, 27 Jul 2021 13:13:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8Qbe-0005j9-PR for guix-patches@gnu.org; Tue, 27 Jul 2021 13:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8Qbe-0002YC-Hp for guix-patches@gnu.org; Tue, 27 Jul 2021 13:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8Qbe-0006w6-CW for guix-patches@gnu.org; Tue, 27 Jul 2021 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49569] [PATCH] gnu: Add make-single-arch-llvm procedure. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Jul 2021 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49569 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 49569@debbugs.gnu.org Received: via spool by 49569-submit@debbugs.gnu.org id=B49569.162740584726625 (code B ref 49569); Tue, 27 Jul 2021 17:11:02 +0000 Received: (at 49569) by debbugs.gnu.org; 27 Jul 2021 17:10:47 +0000 Received: from localhost ([127.0.0.1]:53778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QbP-0006vN-Eb for submit@debbugs.gnu.org; Tue, 27 Jul 2021 13:10:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QbO-0006vA-HK for 49569@debbugs.gnu.org; Tue, 27 Jul 2021 13:10:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55782) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8QbJ-0002Je-2q; Tue, 27 Jul 2021 13:10:41 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45316 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8QbH-0003iY-Kc; Tue, 27 Jul 2021 13:10:40 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <77ec80a001bb04229289f1e3efff7633c94c71dc.1626343320.git.efraim@flashner.co.il> <87a6m981kd.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Thermidor an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Jul 2021 19:10:36 +0200 In-Reply-To: (Efraim Flashner's message of "Tue, 27 Jul 2021 15:29:29 +0300") Message-ID: <87o8an3coj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627406024; 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: content-transfer-encoding:content-transfer-encoding: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; bh=xovrGJ04KbDa3p8BDYY/cKKiB7tqWhJaIUku2UoS+ps=; b=fNu/UezJ73s1q1oAB9u9p+kcim1CqGt4yfJODKsSFEMczr4Gz6gZ1Y+KUa03ypJoQfLq0O v5kyeRSx7GVYag+ekhV2nlEYUUV2kujwiNHkMmMrNSUUbyic1tIYulCQI/4LoObzKIbDdN wKcPAur/0SEVZPmTEj48nZ6c78WItsUfbCCty8+0LDK9pj2hERqxsBzKx/0HrNpY674eFi AVT3bzf+LP6LkkpSO+KBScPzaJ59EmcwnPXNyjnXhf62qr7tY99Spn0lJ98BPCV60ZocN0 hSuX/SNASsEu2SRubfxQITc86j1KhY/CMzhJJY+qq87a2m+cfQpB7tkcQYjnhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627406024; a=rsa-sha256; cv=none; b=ZYp1czFIpFTamKz6FvT/kSNMz8aqpQ23SKy8YoNBhXiZvVAiHpGb+5hORbO1/fSH50s7ce vA5KK97JS+Qv/XyQyHeytM2a6g7hV44CCVT6OUapwXiw6FvOnNpsc/zpzthMVgEQ95i/4h 6PgxcYvZlYSGzoOneYV529DhFTdxVHmKCRsfmOewupaDAbTDEB/g8D/W43+6aA7SwGm/q9 gpCkroOvvGIQIfYOdkLm/OAKef8gdKspkOYvVL/ByAf2l23RJkzIAMx69/SUZbWFdMOg+d G+GTM1aPCGKKp3L4rDyzoHo2GTyCUW2bA40TP/iyfIw4fFzXsyf8TVYlC0dt9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0CADA14F57 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 80rmnWyYD4Xy Efraim Flashner skribis: > On Mon, Jul 26, 2021 at 06:47:14PM +0200, Ludovic Court=C3=A8s wrote: >> Hi, >>=20 >> Efraim Flashner skribis: >>=20 >> > * gnu/packages/llvm.scm (make-single-arch-llvm): New procedure. >> > (llvm-native-12, llvm-native): New variables. >> > --- >> > >> > Using this copy of llvm for packages like mesa will reduce the closure >> > of those packages. I don't suppose it would work as well for compilers >> > like rust which use LLVM for compiling and targeting different >> > architectures. >> > >> > This drops the size of llvm-12 from 167M to 111M. >>=20 >> That=E2=80=99s less impressive than I would have thought. [...] > I think you're mostly shocked by the large numbers, it is a drop of 33%. > > It turns out that llvm-julia uses something similar to only target one > arch, so the idea's there somewhere. We could probably add it in there > too for dlang. Icecat/icedove/mozjs-78 should be OK to switch. And > xf86-video-vmware already has mesa as an input and could likely use a > special llvm-for-mesa version. OK, maybe that=E2=80=99d be an improvement, and indeed, 33% is not negligib= le. > I can look at mesa and see which libraries from llvm it links to and see > about just building those. A first look shows 50 llvm libraries from > mesa and about 150 from llvm@11, with the 4 libraries being > libOSMesa libvulkan_radeon libxatracker libXvMCnouveau Makes sense. Does Mesa require some special GPU compiler backend in addition to the native backend? Thanks, Ludo=E2=80=99.