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 MKfMKbVSm2NLPQEAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 18:00:37 +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 +MbkKbVSm2OyOQEAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 18:00:37 +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 4EBC917079 for ; Thu, 15 Dec 2022 18:00:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5raP-0003ok-Bc; Thu, 15 Dec 2022 11:59:57 -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 1p5raM-0003oZ-Jv for guix-devel@gnu.org; Thu, 15 Dec 2022 11:59:54 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5raJ-0002XM-4k; Thu, 15 Dec 2022 11:59:53 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 64350cfb; Thu, 15 Dec 2022 16:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=kK4PdySPM7Uy uHFOZoCfnddcS5MJ1xfZzEjJzFZMq78=; b=WPproUf8pwYhGhHTKBYJf5WSPTX/ rpSwd/BrNH5L40TJ08NEXeIq9j949RhS+/mUuYGn41eesL4C00VkJREbaBdY4R2S ybvSul2MiJ6xl2YOcvoBdqaw71eyHR6TwR4k1YwwZx8Lecr7a6KVquqw16D9yReK 8mzzUpwCIEMHlDv+u7PcAvYMLXcMBhQDG9e+L1FICtdZjhQBi9zh42///kmL10hU JENzgmaennwCMWs8K7qF5bQeQw2wwIQfseXJ0YT7visI8fHhJ0f5cBEpWKSnk8ZS i7+8DH7ueMqLFN1cjso4RJo9owCmwHSueVpirTMmB5rql+aOknaPrK8EiQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 0465c8d0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 15 Dec 2022 16:59:40 +0000 (UTC) Date: Thu, 15 Dec 2022 17:59:38 +0100 From: Julien Lepiller To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= CC: guix-devel@gnu.org Subject: Re: Experimenting with reduced gcc-lib User-Agent: K-9 Mail for Android In-Reply-To: <87bko4pwh1.fsf@gnu.org> References: <20221208223129.40687d0b@sybil.lepiller.eu> <87bko4pwh1.fsf@gnu.org> Message-ID: <3059C8A7-7F80-406A-84F0-DAE02D7D6D75@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671123637; 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=cmqYjg5ZQ0g0frSZgaPSQXXSgS3/xDCq7lQzkdagjDg=; b=OKpaXbfn2a6lN+d4LtqAeWUDZInW1Iup/f5HAGM7ZCJzLgk/obxk8knlRQ0erFMckEzjqK /2gT75p8FEZ3Lvni2GaYuglzIHpNsng9rDGl2KzVIGry5ICs34czKpQNiLtQbwriarT1oK m6co17okg/nWtUSqneNDBJRzKw0BEbauNyoMht11fVruYU1uFZJ8+o2t045Csz4aNHxVV7 GHuZkahdlcfobadPCU8dgcqcMTolxeC2b8dWMjzm3QcfQFA6XPj+Ha1a/Nu1/LuHGb6RRd BANntErawFHp0btnzyYHVuGQHGcYbSsRiVTLnfjFQvq993tJTBL6vwENP+eUVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=WPproUf8; dmarc=pass (policy=none) header.from=lepiller.eu; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671123637; a=rsa-sha256; cv=none; b=Xx2s04w4KR2bL6U6MaocqvhtwmGyMOY2j73VJgy5L1zdEBysdNDkca/7qW0C1ZRMvbRslx f3BFgltX4wiNOlQA6sFBlPyxT3iuuqOUdwotVEm91+4prkwCWbySMboaiz1CCDuR6Nnjcb xDoBx9GYOXCWtnsYlkN6VsTT2/vt6ZIaUKvrDR5CKNRdQ8LvjJANuPA9uw/eCa+fD3w8qs /FgO6GWJ23tgAQWiTkZFZLZqIQvg0BNySyL/5rB3d3X2Slp0g0ufb6GcbV7GY1p8VPfpBb oNsEFwWWidPBmvgIJIF/QM2CTt7W329NDL7E0jm9/nYstGbINuk2A9MHTvOwXQ== X-Spam-Score: -4.53 X-Migadu-Queue-Id: 4EBC917079 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=WPproUf8; dmarc=pass (policy=none) header.from=lepiller.eu; 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" X-Migadu-Spam-Score: -4.53 X-TUID: gDrFEAQH0mDb Le 15 d=C3=A9cembre 2022 15:34:02 GMT+01:00, "Ludovic Court=C3=A8s" a =C3=A9crit=C2=A0: >Hello! > >Julien Lepiller skribis: > >> Before the patch we get: >> >> guix size perl >> total: 147=2E7 MiB >> >> After the patch: >> >> =2E/pre-inst-env guix size perl >> total: 114=2E5 MiB > >Nice! > >> I don't want to push that patch as is, because libstdc++=2Eso is still = in >> the gcc-static-lib output and will bring all the useless stuff with it= =2E >> C++ programs will bring back the remaining 33=2E2 MiB=2E > >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=2Eso and ld-linux=2Eso (I think?)=2E This could reduce the clo= sure >> of our packs by another ~40 MiB (I think our systems would still need >> most of the content of this package)=2E > >=E2=80=98share/i18n=E2=80=99 is 16=C2=A0MiB and =E2=80=98lib/iconv=E2=80= =99 is 8=C2=A0MiB=2E Now, separating them >without introducing loss of functionality may be tricky=2E > >> 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=2E >> >> * gnu/packages/gcc=2Escm (gcc-4=2E7): Replace `lib' output with `static= -lib' >> and `shared-lib'=2E >> * gnu/packages/commencement=2Escm (gcc-boot0): Update accordingly=2E >> --- >> gnu/packages/commencement=2Escm | 6 +++--- >> gnu/packages/gcc=2Escm | 39 +++++++++++++++++++++++++--------= -- >> gnu/tests/mail=2Etrs | 0 >> 3 files changed, 31 insertions(+), 14 deletions(-) >> create mode 100644 gnu/tests/mail=2Etrs > >Oops? Oopsie :) > >> (outputs '("out" ;commands, etc=2E (60+ MiB) >> - "lib" ;libgcc_s, libgomp, etc=2E = (15+ MiB) >> + "shared-lib" ;libgcc_s, libgomp, etc=2E = (5+ MiB) >> + "static-lib" ;object code libraries and = internal data files of GCC=2E (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=2E But using lib introduces a --libdir argument which is used to install stat= ic libs=E2=80=A6 > >Is libgomp in =E2=80=9Clib=E2=80=9D? Is it found when linking with =E2= =80=98-fopenmp=E2=80=99? Well, shared-lib should be renaimed into libgcc, because it's the only lib= rary there=2E Libgomp amd all other libs are in static-lib (which is not well named eith= er ^^')=2E It will be found I think but not tested (it find libstdc++ in th= e same directory)=2E > >Thanks for this work; we really need to do something about package >sizes! > >Ludo=E2=80=99=2E