From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uHJ6D438/2B9LQAAgWs5BA (envelope-from ) for ; Tue, 27 Jul 2021 14:31:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4OBHC438/2CldwAA1q6Kng (envelope-from ) for ; Tue, 27 Jul 2021 12:31:09 +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 C2FD9BD18 for ; Tue, 27 Jul 2021 14:31:08 +0200 (CEST) Received: from localhost ([::1]:43036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8MEl-0002cA-NF for larch@yhetil.org; Tue, 27 Jul 2021 08:31:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8MEg-0002c0-SC for guix-patches@gnu.org; Tue, 27 Jul 2021 08:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8MEg-0006CF-KO for guix-patches@gnu.org; Tue, 27 Jul 2021 08:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8MEg-0003v3-Fc for guix-patches@gnu.org; Tue, 27 Jul 2021 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49569] [PATCH] gnu: Add make-single-arch-llvm procedure. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Jul 2021 12:31: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 49569@debbugs.gnu.org Received: via spool by 49569-submit@debbugs.gnu.org id=B49569.162738905315050 (code B ref 49569); Tue, 27 Jul 2021 12:31:02 +0000 Received: (at 49569) by debbugs.gnu.org; 27 Jul 2021 12:30:53 +0000 Received: from localhost ([127.0.0.1]:52666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8MEW-0003ug-Mi for submit@debbugs.gnu.org; Tue, 27 Jul 2021 08:30:52 -0400 Received: from flashner.co.il ([178.62.234.194]:50538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8MER-0003uO-KT for 49569@debbugs.gnu.org; Tue, 27 Jul 2021 08:30:50 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id E8FF240224; Tue, 27 Jul 2021 12:30:40 +0000 (UTC) Date: Tue, 27 Jul 2021 15:29:29 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49569@debbugs.gnu.org References: <77ec80a001bb04229289f1e3efff7633c94c71dc.1626343320.git.efraim@flashner.co.il> <87a6m981kd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DdIaWFrhKJQMmFIM" Content-Disposition: inline In-Reply-To: <87a6m981kd.fsf@gnu.org> 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627389069; 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; bh=mmRnZLpCctv3mNjUE1K2ff8nOX92W6K9pk+jX3xoSwY=; b=hsMZMA5Sezwc9jLYnwh1weRgTHm4CCgl/FOD/xQZFzsuSx+poatN/ZokcOtGzMRgrZGs7A 9FzhQY8hyX7rU1ePrGjQmToLRgubMd95LOVI2eLkEttRpI7Ys7vtRb+H9dPdkdhcJtbJjU GoXlVyMALD8tA1p/Oc20BQ+rPA5VsQ8JNhkpv8beQq9xh58/ZAtV6LyLNJgbQm6pe1NFT9 RJGO4PxNSWfIGQccy/F1wHKgEhW6pOZ0Z5ov/ha3PZZLpekUqtGykaEdeTRQ+tePZXvmnL wJ6BYhnzXGN49vQfykY0w69f5ZvmghGDfFGrpxlCZ7mTNnkeD7P06EEiYfW7lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627389069; a=rsa-sha256; cv=none; b=cVSFGFqDWGGU6Z4yms5TuJMgtSCx7qkvy2mPMygFdo4lBvjug6/Ub35hL7qglzS+p6LA2v 0FCz/8J3HLvYMCTXGC7qz9BV+br6+hSvrTOlZIYY95QjJr6BkNEtxN252C2QVecT4GHPzs CbWxF5efpgLpEgkAXteXw+slaS6xwXNhYu1/kkqn9S2FvMIrUgIvZ8TpxUArL4JpH3z4Jt ygM1j8VaIfNX10vzymn8PURs438N4XjKzGOfD/+0fsQCFnov2A4I8vyqQWLw+Pt1vhbWo1 gA9tFPtbzcWti3WF0X4r58ID8p1vIxSzHEPeK8rxWL2rjFPr5+fSz/ZwR4sglw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: C2FD9BD18 X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8nrl7cojVfxy --DdIaWFrhKJQMmFIM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > For Mesa perhaps we could maybe have a variant that=E2=80=99s even more > stripped? >=20 > The downside of this is that we risk having several LLVM copies on > typical installations. >=20 > Thoughts? >=20 > Thanks, > Ludo=E2=80=99. 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. 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 --=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 --DdIaWFrhKJQMmFIM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmD//CgACgkQQarn3Mo9 g1EW5Q//ayy0RkOmKyvc8SdttL6W7bUVUrfOWsIJyRRX+iGg/Mlt51ioqGPYwE6+ GMfiC+5iO/CSUpGewyZDZywCLPKH1GSKYDW1aZ+GLAcEs9V5zznFurGo4zj4Pry6 fWIRLjo9UOnwIEFaSmURitK7F6PyQyuBEu0lJw1IUdjMqLxzEYhQrHHTCYbkVFQm pig7l/Bj1unfuIGNlHTuS1f7cCLgYEDJopthvgPdIq+ekUi8+fMaDu78B+/PzMfM Gjzs7I4noiYfdU0HWAWZxTGFEqwONCHxOPQ3oiA3fSgdSMlyjbDRCcfyCxNLiHfc ZVEOWBhM/t+lK19uA8+fxg0yhDcHxXLN2pj50ZKWTYsDOl07+PFoEF1UBerDCH0B acGxmiEiVqgOe5LxfiYDb0iLbwKWdl5lDiI7BtAzDC612/CaF9OMLYInSSPIvRxe edvjj+FrlBMIzBqfam6RGOJwXowOGoCwRDj3hO8rQWHkuwsat1L5AHbG6JE33XOg y8zqavrRAU+r/kY38fErdVLoZabUm+OvaJVYlfSiz8UeGrs4GghAfA/14lEIedL2 7OLTmEg6XHnKrw6vvuxMeDum2MrplwgVW7umYaA2ep4tNHwMpu/gkyE5BiI2d7/u Wc1rgYr8/E4mLecxhEIfT+v2l9WA/v+ghJLmWpiWW1H5MD01hHg= =6+C0 -----END PGP SIGNATURE----- --DdIaWFrhKJQMmFIM--