From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oIKPIIswm2OzLgAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 15:34:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kGNkIIswm2Oh0wAAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 15:34:51 +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 466C0DC3C for ; Thu, 15 Dec 2022 15:34:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5pJg-0006v5-G7; Thu, 15 Dec 2022 09:34:32 -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 1p5pJe-0006ta-Dq for guix-devel@gnu.org; Thu, 15 Dec 2022 09:34:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5pJd-0004ed-3l; Thu, 15 Dec 2022 09:34:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aOW7mlNkb4faMokQy25jwl50NenyoNXfhxOpcrkOfFQ=; b=J8YPPnROM4ALveT1imD5 zNyovorgSFXJU/jiVYV4sPk88Ph+hEQD3zm1mKLpW7DCzGuvAF3g7QGQ/IuoBvxwKEtAIn71EfUq8 rqF9HajHV4IzaR+SJGVhI94rXrSNqE3uO7t2k+Yjbzf+k2zmGKiqqY2TOGLQTkHfcVQVLR3fPZYoZ qLPIqMkc8iEYc0XKdItvX23nGdHvE0TJX/GAK2NdQnq79UFrgHFS0qiY+cDhmcwBQsddSoGUF2Ymf WddjGtNpxArjQbjSlTgIizrrYR0xX0gOqO9izFlyBe+rXhKZ0bdGEoZMsx0texjP1nXIdiUz/0f/1 XmAF5/n+BEHkLg==; Received: from [89.207.171.79] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5pJc-0002Lv-Ld; Thu, 15 Dec 2022 09:34:28 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Cc: guix-devel@gnu.org Subject: Re: Experimenting with reduced gcc-lib In-Reply-To: <20221208223129.40687d0b@sybil.lepiller.eu> (Julien Lepiller's message of "Thu, 8 Dec 2022 22:32:54 +0100") References: <20221208223129.40687d0b@sybil.lepiller.eu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Frimaire an 231 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Grillon 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: Thu, 15 Dec 2022 15:34:02 +0100 Message-ID: <87bko4pwh1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=J8YPPnRO; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671114891; a=rsa-sha256; cv=none; b=Eptziq9CLyDLmi1kxhD2iJWeLgDuim7ckbtwXFh7OJ57v/Kc6gwr14E13EnAA+ynYDtnzw YwSdsu5MjqimyDv0McwkW1uOI59ehrZuqgwUTPhuqCjlp7ENxH3HpnhxLhjUfOrYW2l7mc 4zqB7WBrbRUFPwgnSnpp6FXltg+d/thrADZ51TixtG60SUC8EVT9y28A5LiGwzeg7i6Qlj eF9wix7qfPxKiKB9c4NJUmDSwPQLDT7vgKnD3/gGyssgcSyoMwmbjKIlauPV/wFnBDS8ce +deyFa6g8L1PKZfWlPfKxQagUzpJQZjIPw5XmbD7++WYlxCfDN8IEm2j3aBlWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671114891; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aOW7mlNkb4faMokQy25jwl50NenyoNXfhxOpcrkOfFQ=; b=ImmEC+OOq7GCakS0tLgHmjD8G6xIwrfoTVEAcdPyNAnB3eJFyHv0jInHFkpWbgOBGotk6o tGw6rhH9Od3YFgaX8hmzbqkDzY36ttl3DufMtlI3jvVqNkepS5XuZRlRYe48ZozrPu2hLO OlKYpkw2I6TLPGuFDotEMBkJEPNLcVcB9K/kkGIC+VOjhk99yA6Q/ckQMPxkpexz6HjqBQ Zrg/Ucqlah3Mp5ZCvChqEC9e91VY1kquqpMC+StaLTjlnW3WyL2mpd733Xa3LxVXyby6kK J4JuRJ0KsEZcdILZUk6IY6nM2znvjsETnglmAHGKigtCIAYBTmd7E2Dh/OAZsg== X-Migadu-Spam-Score: -7.37 X-Spam-Score: -7.37 X-Migadu-Queue-Id: 466C0DC3C Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=J8YPPnRO; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-TUID: tBzV7QtLsyWM Hello! Julien Lepiller skribis: > Before the patch we get: > > guix size perl > total: 147.7 MiB > > After the patch: > > ./pre-inst-env guix size perl > total: 114.5 MiB Nice! > I don't want to push that patch as is, because libstdc++.so is still in > the gcc-static-lib output and will bring all the useless stuff with it. > C++ programs will bring back the remaining 33.2 MiB. It wouldn=E2=80=99t be worse than the current situation though? > Another possible target is glibc, since the only useful bits in there > are libc.so and ld-linux.so (I think?). This could reduce the closure > of our packs by another ~40 MiB (I think our systems would still need > most of the content of this package). =E2=80=98share/i18n=E2=80=99 is 16=C2=A0MiB and =E2=80=98lib/iconv=E2=80=99= is 8=C2=A0MiB. Now, separating them without introducing loss of functionality may be tricky. > From bff8567b0770455397d44f1ed304a67681b472c9 Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > Date: Thu, 8 Dec 2022 22:29:01 +0100 > Subject: [PATCH] gnu: gcc: Separate lib output. > > * gnu/packages/gcc.scm (gcc-4.7): Replace `lib' output with `static-lib' > and `shared-lib'. > * gnu/packages/commencement.scm (gcc-boot0): Update accordingly. > --- > gnu/packages/commencement.scm | 6 +++--- > gnu/packages/gcc.scm | 39 +++++++++++++++++++++++++---------- > gnu/tests/mail.trs | 0 > 3 files changed, 31 insertions(+), 14 deletions(-) > create mode 100644 gnu/tests/mail.trs Oops? > (outputs '("out" ;commands, etc. (60+ MiB) > - "lib" ;libgcc_s, libgomp, etc. (15+= MiB) > + "shared-lib" ;libgcc_s, libgomp, etc. (5+ = MiB) > + "static-lib" ;object code libraries and in= ternal data files of GCC. (10+ MiB) The convention is to use =E2=80=9Clib=E2=80=9D for shared libraries and =E2= =80=9Cstatic=E2=80=9D for static libraries. Is libgomp in =E2=80=9Clib=E2=80=9D? Is it found when linking with =E2=80= =98-fopenmp=E2=80=99? Thanks for this work; we really need to do something about package sizes! Ludo=E2=80=99.