From unknown Mon Aug 11 12:54:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53925] [PATCH 0/2] gnu: clang: Build and link as shared libraries. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 19:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53925@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16445224025953 (code B ref -1); Thu, 10 Feb 2022 19:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2022 19:46:42 +0000 Received: from localhost ([127.0.0.1]:57186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIFOs-0001Xw-Ay for submit@debbugs.gnu.org; Thu, 10 Feb 2022 14:46:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:50212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIFOq-0001Xl-2l for submit@debbugs.gnu.org; Thu, 10 Feb 2022 14:46:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIFOp-00070n-QI for guix-patches@gnu.org; Thu, 10 Feb 2022 14:46:39 -0500 Received: from [2607:f8b0:4864:20::1044] (port=42545 helo=mail-pj1-x1044.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIFOn-00029f-Gn for guix-patches@gnu.org; Thu, 10 Feb 2022 14:46:39 -0500 Received: by mail-pj1-x1044.google.com with SMTP id h7-20020a17090a648700b001b927560c2bso5428739pjj.1 for ; Thu, 10 Feb 2022 11:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=DceYFAd5By6GLsfuI7tzGfPkxEIVo38oLIxi8oHhnBY=; b=hIMja1AJH6FNGosPFZmrwlLuwAe28mdQkuwcz4ObsP/qSVqwzvP2zOozhQTK4b3qRU kOQ+kqDONpg1MwaJT+rjiRUgQ5p1p8A6fcyWt8qPZTXyP4I2/hDIrb93dlF/ob4gmws4 VC/qtqsZepZ9U80ZPHSvfWob4lmEHNI6e7mbbIlaxG7valsd37LZojRuztrHjSXezygz vDUoKT/dLi9SUoXSVIfQhyqxbw6UubxC8CHGtxRxm97q9Ab0iGY63Gi8QD1pc/Lan1yO m6hI+omBRtlCQka31pqK4ufxU+fSAN0hUY+0GvxL4O4QQgFl564Y1/Xq+44TvtEd1xb8 fZ4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DceYFAd5By6GLsfuI7tzGfPkxEIVo38oLIxi8oHhnBY=; b=vI5iZsswKTTM87yBkxzdQBCFzSRR40Tid4TY1jui9xhBaBi4ctHZ1kBAKBndAXbyM9 XofweIxci6AeIDQR8h0KpROpSRoFehcmWM4Bi6xB6Biu7u1RXm8qyQ+iPN29pjNZgtAs rxFuzu/CaPyibBtD+xpSjDpSNUIYhII8Ba0DcHIZVFQEfNPRHeSbiB45iBYw7s8wK+Qq /jLnNaMGp83aXJP3luEwH9LE6S2pYe2IWCHxqWwEHgFLCKBSDkWtha4yO9afGmGCxmv3 CJ9H5499cNCRE4TA4UopmYqmaDrTxSd86E1nMt0QfoKVh8EUQpqzovuKWYGpaNDaRayF 8OTw== X-Gm-Message-State: AOAM532pHZ+usqhCUxnHE78tuUkvs10Hko2yC6KGoPQoQh+jD12Op27j Pxw0gO3mmNpCAv4vtbFlXdGLYBvaSC7G8d+8H+9Vz8JE2O4uUC+gQWs= X-Google-Smtp-Source: ABdhPJxt5aoe9OVDolohbNK8GajKqXebrqAGYynfoAfU65q+o4dMXR5gkQ0UjVFqnFkUZeJXgP6KIeQM1XinW9tKES0= X-Received: by 2002:a17:902:d34b:: with SMTP id l11mr8937631plk.137.1644522394189; Thu, 10 Feb 2022 11:46:34 -0800 (PST) MIME-Version: 1.0 From: Greg Hogan Date: Thu, 10 Feb 2022 14:46:23 -0500 Message-ID: Content-Type: multipart/mixed; boundary="00000000000021b9b005d7af3505" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1044 (failed) Received-SPF: none client-ip=2607:f8b0:4864:20::1044; envelope-from=code@greghogan.com; helo=mail-pj1-x1044.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --00000000000021b9b005d7af3505 Content-Type: multipart/alternative; boundary="00000000000021b9ae05d7af3503" --00000000000021b9ae05d7af3503 Content-Type: text/plain; charset="UTF-8" clang-tools-extra has been moved to a separate "extra" output due to the size of the statically linked binaries. Unfortunately, this prevents tools from finding the header files stored in the default clang "out" output: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 1 Feb 08 2022 14:30:38 (current) guix 59892f1 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 59892f105585a98bcaaa4abc99142944cb171acf $ cat main.cpp #include int main() { std::cout << "Hello, World!" << std::endl; return 0; } $ guix shell clang clang:extra $ clang-tidy main.cpp -- 1776 warnings and 1 error generated. Error while processing /efs/devel/hello/src/main.cpp. /gnu/store/i86pbiqnnz0c2313616jdbsbdgp7qvav-profile/include/wchar.h:35:10: error: 'stddef.h' file not found [clang-diagnostic-error] #include ^~~~~~~~~~ Suppressed 1776 warnings (1776 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. Found compiler error(s). --8<---------------cut here---------------end--------------->8--- After applying the attached patch the tool does find the necessary header file (at /gnu/store/*-clang-13.0.1/lib/clang/13.0.1/include/stddef.h): --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell clang $ clang-tidy main.cpp -- 1971 warnings generated. Suppressed 1971 warnings (1971 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. --8<---------------cut here---------------end--------------->8--- The patch builds clang with dynamic linkage and removes the separate output. The new size of the full complement of dynamically linked libraries and binaries is one-third the size of the original clang with extras excluded. --8<---------------cut here---------------start------------->8--- $ guix size clang store item total self /gnu/store/ylbcqp3yjha97g450g33cz9grsg0ic2w-clang-13.0.1 1247.5 628.0 50.3% ... total: 1247.5 MiB $ ./pre-inst-env guix size clang store item total self /gnu/store/fxf9gyx7c790kbbzhyyamdf27g8yjb9v-clang-13.0.1 842.1 222.6 26.4% ... total: 842.1 MiB --8<---------------cut here---------------end--------------->8--- I successfully built all dependent packages of the affected clang versions (clang@10 through 13) except c-vise-2.4.0, for which I have included a patch, and the following packages currently failing on master: clang-toolchain-8.0.0 dub@1.7.2 gtkd@3.9.0 icedove-wayland@91.5 itk-snap@3.8.0 java-pep-adapter-2.1.23 rdmd@2.077.1 rust-aom-sys-0.3.0 rust-bindgen-0.52.0 rust-bindgen-0.55.1 rust-clang-sys-0.26.4 rust-sequoia-openpgp-0.9.0 scregseg-0.1.1 Greg --00000000000021b9ae05d7af3503 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
clang-tools-extra has been moved to a separate "= extra" output due to the size of the statically linked binaries. Unfor= tunately, this prevents tools from finding the header files stored in the d= efault clang "out" output:

--8<-= --------------cut=C2=A0here---------------s= tart------------->8---
$ guix describe
Gener= ation 1 Feb 08 2022 14:30:38 (current)
=C2=A0 guix 59892f1
=C2=A0 =C2= =A0 repository URL: h= ttps://git.savannah.gnu.org/git/guix.git
=C2=A0 =C2=A0 branch: maste= r
=C2=A0 =C2=A0 commit: 59892f105585a98bcaaa4abc99142944cb171acf

$ cat main.cpp
#include <iostream>= ;

int main() {
=C2=A0 =C2=A0 std::cout << "Hello, Worl= d!" << std::endl;
=C2=A0 =C2=A0 return 0;
}
=
$ guix shell clang clang:extra

= $ clang-tidy main.cpp --
1776 warnings and 1 error generated.=
Error while processing /efs/devel/hello/src/main.cpp.
/gn= u/store/i86pbiqnnz0c2313616jdbsbdgp7qvav-profile/include/wchar.h:35:10: err= or: 'stddef.h' file not found [clang-diagnostic-error]
#include = <stddef.h>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~
Suppres= sed 1776 warnings (1776 in non-user code).
Use -header-filter=3D.* to di= splay errors from all non-system headers. Use -system-headers to display er= rors from system headers as well.
Found compiler error(s).
--8<---------------cut=C2=A0here-------= --------end--------------->8---

After apply= ing the attached patch the tool does find the necessary header file (at /gn= u/store/*-clang-13.0.1/lib/clang/13.0.1/include/stddef.h):
--8<---------------cut=C2=A0here= ---------------start------------->8---
$ ./pre-inst-env guix she= ll clang

$ clang-tidy main.cpp --
1971 warnings generated.
Suppressed 1971 warnings (1971 in non-user co= de).
Use -header-filter=3D.* to display errors from all non-system heade= rs. Use -system-headers to display errors from system headers as well.
<= /div>
--8<---------------cut=C2=A0he= re---------------end--------------->8---

<= div>The patch builds clang with dynamic linkage and removes the separate ou= tput. The new size of the full complement of dynamically linked libraries a= nd binaries is one-third the size of the original clang with extras exclude= d.

--8<---------------cut=C2=A0here---------------start------------->8---
$ guix size clang
store item =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 total =C2=A0 =C2=A0self
/gnu/store/ylbcqp3yjha97g450g3= 3cz9grsg0ic2w-clang-13.0.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01247.5 =C2=A0 = 628.0 =C2=A050.3%
...
total: 1247.5 MiB

$ ./pre-inst-env guix size clang
store item =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 total =C2=A0 =C2=A0self
/gnu/store/fxf9gyx7c790kbbz= hyyamdf27g8yjb9v-clang-13.0.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 842.1 =C2= =A0 222.6 =C2=A026.4%
...
total: 842.1 MiB
--8= <---------------cut=C2=A0here-----------= ----end--------------->8---

I successfully = built all dependent packages of the affected clang versions (clang@10 throu= gh 13) except c-vise-2.4.0, for which I have included a patch, and the foll= owing packages currently failing on master:
=C2=A0 clang-toolchai= n-8.0.0
=C2=A0 dub@1.7.2
=C2=A0 gtkd@3.9.0
=C2=A0 icedove-w= ayland@91.5
=C2=A0 itk-snap@3.8.0
=C2=A0 java-pep-adapter-2.1.23
= =C2=A0 rdmd@2.077.1
=C2=A0 rust-aom-sys-0.3.0
=C2=A0 rust-bindgen-0.5= 2.0
=C2=A0 rust-bindgen-0.55.1
=C2=A0 rust-clang-sys-0.26.4
=C2=A0= rust-sequoia-openpgp-0.9.0
=C2=A0 scregseg-0.1.1

Greg=
--00000000000021b9ae05d7af3503-- --00000000000021b9b005d7af3505 Content-Type: application/x-patch; name="0002-gnu-c-vise-Fix-linkage.patch" Content-Disposition: attachment; filename="0002-gnu-c-vise-Fix-linkage.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzg1z6cv1 RnJvbSAwOTI1MmRlZjczOTI3NWFiNzVjMjc2Y2NkZmQxNDM0NWFlY2EwMTBlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHcmVnIEhvZ2FuIDxjb2RlQGdyZWdob2dhbi5jb20+CkRhdGU6 IFdlZCwgOSBGZWIgMjAyMiAyMToxMTowOSArMDAwMApTdWJqZWN0OiBbUEFUQ0ggMi8yXSBnbnU6 IGMtdmlzZTogRml4IGxpbmthZ2UuCgoqIGdudS9wYWNrYWdlcy9kZWJ1Zy5zY20gKGMtdmlzZSlb YXJndW1lbnRzXVsjOnBoYXNlc106CkZpeCBsaW5rYWdlIHRvIGNsYW5nIGFuZCBsbHZtIHNoYXJl ZCBsaWJyYXJpZXMuCi0tLQogZ251L3BhY2thZ2VzL2RlYnVnLnNjbSB8IDUgKysrKysKIDEgZmls ZSBjaGFuZ2VkLCA1IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9nbnUvcGFja2FnZXMvZGVi dWcuc2NtIGIvZ251L3BhY2thZ2VzL2RlYnVnLnNjbQppbmRleCA5NDMxMmU3YzA1Li4yNGQxN2Q5 NWIwIDEwMDY0NAotLS0gYS9nbnUvcGFja2FnZXMvZGVidWcuc2NtCisrKyBiL2dudS9wYWNrYWdl cy9kZWJ1Zy5zY20KQEAgLTE5OSw2ICsxOTksMTEgQEAgKGRlZmluZS1wdWJsaWMgYy12aXNlCiAg ICAgKGFyZ3VtZW50cwogICAgICBgKCM6cGhhc2VzCiAgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0 YW5kYXJkLXBoYXNlcworICAgICAgICAgKGFkZC1hZnRlciAndW5wYWNrICdmaXgtbGlua2FnZQor ICAgICAgICAgICAobGFtYmRhIF8KKyAgICAgICAgICAgIChzdWJzdGl0dXRlKiAiY2xhbmdfZGVs dGEvQ01ha2VMaXN0cy50eHQiCisgICAgICAgICAgICAgICgoIlxcJFxce0xMVk1fTElOS19MTFZN X0RZTElCXFx9IikgIlRydWUiKQorICAgICAgICAgICAgICAoKCIgIExMVk0iKSAiICBMTFZNU3Vw cG9ydCIpKSkpCiAgICAgICAgICAoYWRkLWJlZm9yZSAnYnVpbGQgJ2hhcmRjb2RlLXBhdGhzCiAg ICAgICAgICAgIChsYW1iZGEgXwogICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJjdmlzZS5weSIK LS0gCjIuMzQuMAoK --00000000000021b9b005d7af3505 Content-Type: application/x-patch; name="0001-gnu-clang-Build-and-link-as-shared-libraries.patch" Content-Disposition: attachment; filename="0001-gnu-clang-Build-and-link-as-shared-libraries.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzg1z6ak0 RnJvbSBhZDJlNDI5MDVkYmQwYjI3MGYyMWRlNGViOGUyZTI2NDRhYTc5MWEzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHcmVnIEhvZ2FuIDxjb2RlQGdyZWdob2dhbi5jb20+CkRhdGU6 IFR1ZSwgOCBGZWIgMjAyMiAxODozMjoyOSArMDAwMApTdWJqZWN0OiBbUEFUQ0ggMS8yXSBnbnU6 IGNsYW5nOiBCdWlsZCBhbmQgbGluayBhcyBzaGFyZWQgbGlicmFyaWVzLgoKKiBnbnUvcGFja2Fn ZXMvbGx2bS5zY20gKGNsYW5nKVthcmd1bWVudHNdPCM6cGhhc2VzPjoKUmVtb3ZlIHRoZSBzZXBh cmF0ZSAiZXh0cmEiIG91dHB1dCBhbmQgYnVpbGQgdGhlIG1haW4gcGFja2FnZSBhbmQKY2xhbmct dG9vbHMtZXh0cmFzIHdpdGggc2hhcmVkIGxpYnJhcnkgbGlua2FnZS4KLS0tCiBnbnUvcGFja2Fn ZXMvbGx2bS5zY20gfCA1NCArKystLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tCiAxIGZpbGUgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA1MSBkZWxldGlvbnMoLSkKCmRp ZmYgLS1naXQgYS9nbnUvcGFja2FnZXMvbGx2bS5zY20gYi9nbnUvcGFja2FnZXMvbGx2bS5zY20K aW5kZXggYjZkNTI0MDJhOC4uZWI5NDliZWQxYiAxMDA2NDQKLS0tIGEvZ251L3BhY2thZ2VzL2xs dm0uc2NtCisrKyBiL2dudS9wYWNrYWdlcy9sbHZtLnNjbQpAQCAtMTg4LDcgKzE4OCw2IEBAIChk ZWZpbmUqIChjbGFuZy1mcm9tLWxsdm0gbGx2bSBjbGFuZy1ydW50aW1lIGhhc2gKICAgICA7OyBk b2Vzbid0IHNlZW0gdG8gYmUgYW55IHdheSB0byBkbyB0aGlzIHdpdGggY2xhbmcncyBhdXRvdG9v bHMtYmFzZWQKICAgICA7OyBidWlsZCBzeXN0ZW0uCiAgICAgKGJ1aWxkLXN5c3RlbSBjbWFrZS1i dWlsZC1zeXN0ZW0pCi0gICAgKG91dHB1dHMgKGlmIHRvb2xzLWV4dHJhICcoIm91dCIgImV4dHJh IikgJygib3V0IikpKQogICAgIChuYXRpdmUtaW5wdXRzIChwYWNrYWdlLW5hdGl2ZS1pbnB1dHMg bGx2bSkpCiAgICAgKGlucHV0cwogICAgICBgKCgibGlieG1sMiIgLGxpYnhtbDIpCkBAIC0yMjks NTYgKzIyOCw5IEBAIChkZWZpbmUqIChjbGFuZy1mcm9tLWxsdm0gbGx2bSBjbGFuZy1ydW50aW1l IGhhc2gKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN0 cmluZy1kZWxldGUgI1wtIChwYWNrYWdlLXZlcnNpb24gbGx2bSkpCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIuc3JjIikKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ0b29scy9leHRyYSIpCi0gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICN0KSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgIChhZGQt YWZ0ZXIgJ2luc3RhbGwgJ21vdmUtZXh0cmEtdG9vbHMKLSAgICAgICAgICAgICAgICAgICAgICAg ICAgICAobGFtYmRhKiAoIzprZXkgb3V0cHV0cyAjOmFsbG93LW90aGVyLWtleXMpCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICA7OyBNb3ZlIHRoZSBleHRyYSB0b29scyB0byB0aGUgImV4 dHJhIiBvdXRwdXQuCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBUaGVzZSBwcm9n cmFtcyBhbG9uZSB3ZWlnaCBpbiBhdCAyOTYgTWlCLAotICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgOzsgYmVjYXVzZSB0aGV5IHN0YXRpY2FsbHktbGluayBhIHdob2xlIGJ1bmNoIG9mCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBDbGFuZyBsaWJyYXJpZXMuCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAobGV0KiAoKG91dCAgIChhc3NvYy1yZWYgb3V0cHV0cyAi b3V0IikpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGV4dHJhIChhc3Nv Yy1yZWYgb3V0cHV0cyAiZXh0cmEiKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAoYmluICAgKHN0cmluZy1hcHBlbmQgb3V0ICIvYmluIikpCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKGJpbiogIChzdHJpbmctYXBwZW5kIGV4dHJhICIvYmluIikp Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxpYiAgIChzdHJpbmctYXBw ZW5kIG91dCAiL2xpYiIpKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGRlZmlu ZSAobW92ZSBwcm9ncmFtKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChyZW5h bWUtZmlsZSAoc3RyaW5nLWFwcGVuZCBiaW4gIi8iIHByb2dyYW0pCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kIGJpbiogIi8iCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHByb2dyYW0pKSkKLQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobWtkaXIt cCBiaW4qKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yLWVhY2ggbW92ZQot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJygiY2xhbmctYXBwbHkt cmVwbGFjZW1lbnRzIgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAiY2xhbmctY2hhbmdlLW5hbWVzcGFjZSIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgImNsYW5nZCIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgImNsYW5nLWRvYyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgImNsYW5nLWluY2x1ZGUtZml4ZXIiCi0gICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICJjbGFuZy1tb3ZlIgotICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiY2xhbmctcXVlcnkiCi0gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICJjbGFuZy1yZW9yZGVyLWZpZWxkcyIKLSAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImNsYW5nLXRpZHkiCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJmaW5kLWFsbC1zeW1ib2xzIgot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibW9kdWxhcml6ZSIK LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInBwLXRyYWNlIikp Ci0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgUmVtb3ZlIE1pQnMgb2YgLmEg ZmlsZXMgY29taW5nIGZyb20KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgJ2Ns YW5nLXRvb2xzLWV4dHJhJy4KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvci1l YWNoIChsYW1iZGEgKGNvbXBvbmVudCkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKGRlbGV0ZS1maWxlCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCBsaWIgIi9saWJjbGFuZyIKLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBvbmVu dCAiLmEiKSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKCJB cHBseVJlcGxhY2VtZW50cyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIkNoYW5nZU5hbWVzcGFjZSIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIkRhZW1vbiIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIkRhZW1vblR3ZWFrcyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIkRvYyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIkluY2x1ZGVGaXhlciIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIkluY2x1ZGVGaXhlclBsdWdpbiIKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIk1vdmUiKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKGZvci1lYWNoIGRlbGV0ZS1maWxlCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAoZmluZC1maWxlcwotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGxpYgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICJeKGxpYmZpbmRBbGxTeW1ib2xzfGxpYmNsYW5nVGlkeSkiKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgOzsgQnVpbGQgYW5kIGxpbmsgdG8gc2hhcmVkIGxpYnJhcmllcy4KKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJjbWFrZS9tb2R1bGVz L0FkZENsYW5nLmNtYWtlIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgoIkJV SUxEX1NIQVJFRF9MSUJTIikgIlRydWUiKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgI3QpKSkpCiAgICAgICAgICAgICAgICAgICAgICAgICAnKCkpCiAgICAgICAgICAgICAgICAg ICAoYWRkLWFmdGVyICd1bnBhY2sgJ2FkZC1taXNzaW5nLXRyaXBsZXRzCi0tIAoyLjM0LjAKCg== --00000000000021b9b005d7af3505-- From unknown Mon Aug 11 12:54:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Greg Hogan Subject: bug#53925: closed (Re: bug#53925: [PATCH 0/2] gnu: clang: Build and link as shared libraries.) Message-ID: References: <871r02x0sd.fsf@gnu.org> X-Gnu-PR-Message: they-closed 53925 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 53925@debbugs.gnu.org Date: Wed, 16 Feb 2022 15:57:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1645027021-7074-1" This is a multi-part message in MIME format... ------------=_1645027021-7074-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53925: [PATCH 0/2] gnu: clang: Build and link as shared libraries. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53925@debbugs.gnu.org. --=20 53925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53925 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1645027021-7074-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53925-done) by debbugs.gnu.org; 16 Feb 2022 15:57:00 +0000 Received: from localhost ([127.0.0.1]:49272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKMfs-0001ps-HR for submit@debbugs.gnu.org; Wed, 16 Feb 2022 10:57:00 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:59698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKMfq-0001pe-KM for 53925-done@debbugs.gnu.org; Wed, 16 Feb 2022 10:56:59 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E91B1A27; Wed, 16 Feb 2022 16:56:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id puJvgpc0GhjJ; Wed, 16 Feb 2022 16:56:51 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B6D952D0; Wed, 16 Feb 2022 16:56:50 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Greg Hogan Subject: Re: bug#53925: [PATCH 0/2] gnu: clang: Build and link as shared libraries. References: Date: Wed, 16 Feb 2022 16:56:50 +0100 In-Reply-To: (Greg Hogan's message of "Thu, 10 Feb 2022 14:46:23 -0500") Message-ID: <871r02x0sd.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-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: E91B1A27 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53925-done Cc: 53925-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, Greg Hogan skribis: > The patch builds clang with dynamic linkage and removes the separate > output. The new size of the full complement of dynamically linked librari= es > and binaries is one-third the size of the original clang with extras > excluded. That=E2=80=99s indeed much better than the extra output, in addition to fix= ing bugs (also reported at ). Pushed as 6481dbda5100e9b0ff9c5221280d2c0cadd663b7. Thanks! Ludo=E2=80=99. ------------=_1645027021-7074-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Feb 2022 19:46:42 +0000 Received: from localhost ([127.0.0.1]:57186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIFOs-0001Xw-Ay for submit@debbugs.gnu.org; Thu, 10 Feb 2022 14:46:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:50212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIFOq-0001Xl-2l for submit@debbugs.gnu.org; Thu, 10 Feb 2022 14:46:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIFOp-00070n-QI for guix-patches@gnu.org; Thu, 10 Feb 2022 14:46:39 -0500 Received: from [2607:f8b0:4864:20::1044] (port=42545 helo=mail-pj1-x1044.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIFOn-00029f-Gn for guix-patches@gnu.org; Thu, 10 Feb 2022 14:46:39 -0500 Received: by mail-pj1-x1044.google.com with SMTP id h7-20020a17090a648700b001b927560c2bso5428739pjj.1 for ; Thu, 10 Feb 2022 11:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=DceYFAd5By6GLsfuI7tzGfPkxEIVo38oLIxi8oHhnBY=; b=hIMja1AJH6FNGosPFZmrwlLuwAe28mdQkuwcz4ObsP/qSVqwzvP2zOozhQTK4b3qRU kOQ+kqDONpg1MwaJT+rjiRUgQ5p1p8A6fcyWt8qPZTXyP4I2/hDIrb93dlF/ob4gmws4 VC/qtqsZepZ9U80ZPHSvfWob4lmEHNI6e7mbbIlaxG7valsd37LZojRuztrHjSXezygz vDUoKT/dLi9SUoXSVIfQhyqxbw6UubxC8CHGtxRxm97q9Ab0iGY63Gi8QD1pc/Lan1yO m6hI+omBRtlCQka31pqK4ufxU+fSAN0hUY+0GvxL4O4QQgFl564Y1/Xq+44TvtEd1xb8 fZ4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DceYFAd5By6GLsfuI7tzGfPkxEIVo38oLIxi8oHhnBY=; b=vI5iZsswKTTM87yBkxzdQBCFzSRR40Tid4TY1jui9xhBaBi4ctHZ1kBAKBndAXbyM9 XofweIxci6AeIDQR8h0KpROpSRoFehcmWM4Bi6xB6Biu7u1RXm8qyQ+iPN29pjNZgtAs rxFuzu/CaPyibBtD+xpSjDpSNUIYhII8Ba0DcHIZVFQEfNPRHeSbiB45iBYw7s8wK+Qq /jLnNaMGp83aXJP3luEwH9LE6S2pYe2IWCHxqWwEHgFLCKBSDkWtha4yO9afGmGCxmv3 CJ9H5499cNCRE4TA4UopmYqmaDrTxSd86E1nMt0QfoKVh8EUQpqzovuKWYGpaNDaRayF 8OTw== X-Gm-Message-State: AOAM532pHZ+usqhCUxnHE78tuUkvs10Hko2yC6KGoPQoQh+jD12Op27j Pxw0gO3mmNpCAv4vtbFlXdGLYBvaSC7G8d+8H+9Vz8JE2O4uUC+gQWs= X-Google-Smtp-Source: ABdhPJxt5aoe9OVDolohbNK8GajKqXebrqAGYynfoAfU65q+o4dMXR5gkQ0UjVFqnFkUZeJXgP6KIeQM1XinW9tKES0= X-Received: by 2002:a17:902:d34b:: with SMTP id l11mr8937631plk.137.1644522394189; Thu, 10 Feb 2022 11:46:34 -0800 (PST) MIME-Version: 1.0 From: Greg Hogan Date: Thu, 10 Feb 2022 14:46:23 -0500 Message-ID: Subject: [PATCH 0/2] gnu: clang: Build and link as shared libraries. To: guix-patches@gnu.org Content-Type: multipart/mixed; boundary="00000000000021b9b005d7af3505" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1044 (failed) Received-SPF: none client-ip=2607:f8b0:4864:20::1044; envelope-from=code@greghogan.com; helo=mail-pj1-x1044.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --00000000000021b9b005d7af3505 Content-Type: multipart/alternative; boundary="00000000000021b9ae05d7af3503" --00000000000021b9ae05d7af3503 Content-Type: text/plain; charset="UTF-8" clang-tools-extra has been moved to a separate "extra" output due to the size of the statically linked binaries. Unfortunately, this prevents tools from finding the header files stored in the default clang "out" output: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 1 Feb 08 2022 14:30:38 (current) guix 59892f1 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 59892f105585a98bcaaa4abc99142944cb171acf $ cat main.cpp #include int main() { std::cout << "Hello, World!" << std::endl; return 0; } $ guix shell clang clang:extra $ clang-tidy main.cpp -- 1776 warnings and 1 error generated. Error while processing /efs/devel/hello/src/main.cpp. /gnu/store/i86pbiqnnz0c2313616jdbsbdgp7qvav-profile/include/wchar.h:35:10: error: 'stddef.h' file not found [clang-diagnostic-error] #include ^~~~~~~~~~ Suppressed 1776 warnings (1776 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. Found compiler error(s). --8<---------------cut here---------------end--------------->8--- After applying the attached patch the tool does find the necessary header file (at /gnu/store/*-clang-13.0.1/lib/clang/13.0.1/include/stddef.h): --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell clang $ clang-tidy main.cpp -- 1971 warnings generated. Suppressed 1971 warnings (1971 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. --8<---------------cut here---------------end--------------->8--- The patch builds clang with dynamic linkage and removes the separate output. The new size of the full complement of dynamically linked libraries and binaries is one-third the size of the original clang with extras excluded. --8<---------------cut here---------------start------------->8--- $ guix size clang store item total self /gnu/store/ylbcqp3yjha97g450g33cz9grsg0ic2w-clang-13.0.1 1247.5 628.0 50.3% ... total: 1247.5 MiB $ ./pre-inst-env guix size clang store item total self /gnu/store/fxf9gyx7c790kbbzhyyamdf27g8yjb9v-clang-13.0.1 842.1 222.6 26.4% ... total: 842.1 MiB --8<---------------cut here---------------end--------------->8--- I successfully built all dependent packages of the affected clang versions (clang@10 through 13) except c-vise-2.4.0, for which I have included a patch, and the following packages currently failing on master: clang-toolchain-8.0.0 dub@1.7.2 gtkd@3.9.0 icedove-wayland@91.5 itk-snap@3.8.0 java-pep-adapter-2.1.23 rdmd@2.077.1 rust-aom-sys-0.3.0 rust-bindgen-0.52.0 rust-bindgen-0.55.1 rust-clang-sys-0.26.4 rust-sequoia-openpgp-0.9.0 scregseg-0.1.1 Greg --00000000000021b9ae05d7af3503 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
clang-tools-extra has been moved to a separate "= extra" output due to the size of the statically linked binaries. Unfor= tunately, this prevents tools from finding the header files stored in the d= efault clang "out" output:

--8<-= --------------cut=C2=A0here---------------s= tart------------->8---
$ guix describe
Gener= ation 1 Feb 08 2022 14:30:38 (current)
=C2=A0 guix 59892f1
=C2=A0 =C2= =A0 repository URL: h= ttps://git.savannah.gnu.org/git/guix.git
=C2=A0 =C2=A0 branch: maste= r
=C2=A0 =C2=A0 commit: 59892f105585a98bcaaa4abc99142944cb171acf

$ cat main.cpp
#include <iostream>= ;

int main() {
=C2=A0 =C2=A0 std::cout << "Hello, Worl= d!" << std::endl;
=C2=A0 =C2=A0 return 0;
}
=
$ guix shell clang clang:extra

= $ clang-tidy main.cpp --
1776 warnings and 1 error generated.=
Error while processing /efs/devel/hello/src/main.cpp.
/gn= u/store/i86pbiqnnz0c2313616jdbsbdgp7qvav-profile/include/wchar.h:35:10: err= or: 'stddef.h' file not found [clang-diagnostic-error]
#include = <stddef.h>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~
Suppres= sed 1776 warnings (1776 in non-user code).
Use -header-filter=3D.* to di= splay errors from all non-system headers. Use -system-headers to display er= rors from system headers as well.
Found compiler error(s).
--8<---------------cut=C2=A0here-------= --------end--------------->8---

After apply= ing the attached patch the tool does find the necessary header file (at /gn= u/store/*-clang-13.0.1/lib/clang/13.0.1/include/stddef.h):
--8<---------------cut=C2=A0here= ---------------start------------->8---
$ ./pre-inst-env guix she= ll clang

$ clang-tidy main.cpp --
1971 warnings generated.
Suppressed 1971 warnings (1971 in non-user co= de).
Use -header-filter=3D.* to display errors from all non-system heade= rs. Use -system-headers to display errors from system headers as well.
<= /div>
--8<---------------cut=C2=A0he= re---------------end--------------->8---

<= div>The patch builds clang with dynamic linkage and removes the separate ou= tput. The new size of the full complement of dynamically linked libraries a= nd binaries is one-third the size of the original clang with extras exclude= d.

--8<---------------cut=C2=A0here---------------start------------->8---
$ guix size clang
store item =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 total =C2=A0 =C2=A0self
/gnu/store/ylbcqp3yjha97g450g3= 3cz9grsg0ic2w-clang-13.0.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01247.5 =C2=A0 = 628.0 =C2=A050.3%
...
total: 1247.5 MiB

$ ./pre-inst-env guix size clang
store item =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 total =C2=A0 =C2=A0self
/gnu/store/fxf9gyx7c790kbbz= hyyamdf27g8yjb9v-clang-13.0.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 842.1 =C2= =A0 222.6 =C2=A026.4%
...
total: 842.1 MiB
--8= <---------------cut=C2=A0here-----------= ----end--------------->8---

I successfully = built all dependent packages of the affected clang versions (clang@10 throu= gh 13) except c-vise-2.4.0, for which I have included a patch, and the foll= owing packages currently failing on master:
=C2=A0 clang-toolchai= n-8.0.0
=C2=A0 dub@1.7.2
=C2=A0 gtkd@3.9.0
=C2=A0 icedove-w= ayland@91.5
=C2=A0 itk-snap@3.8.0
=C2=A0 java-pep-adapter-2.1.23
= =C2=A0 rdmd@2.077.1
=C2=A0 rust-aom-sys-0.3.0
=C2=A0 rust-bindgen-0.5= 2.0
=C2=A0 rust-bindgen-0.55.1
=C2=A0 rust-clang-sys-0.26.4
=C2=A0= rust-sequoia-openpgp-0.9.0
=C2=A0 scregseg-0.1.1

Greg=
--00000000000021b9ae05d7af3503-- --00000000000021b9b005d7af3505 Content-Type: application/x-patch; name="0002-gnu-c-vise-Fix-linkage.patch" Content-Disposition: attachment; filename="0002-gnu-c-vise-Fix-linkage.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzg1z6cv1 RnJvbSAwOTI1MmRlZjczOTI3NWFiNzVjMjc2Y2NkZmQxNDM0NWFlY2EwMTBlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHcmVnIEhvZ2FuIDxjb2RlQGdyZWdob2dhbi5jb20+CkRhdGU6 IFdlZCwgOSBGZWIgMjAyMiAyMToxMTowOSArMDAwMApTdWJqZWN0OiBbUEFUQ0ggMi8yXSBnbnU6 IGMtdmlzZTogRml4IGxpbmthZ2UuCgoqIGdudS9wYWNrYWdlcy9kZWJ1Zy5zY20gKGMtdmlzZSlb YXJndW1lbnRzXVsjOnBoYXNlc106CkZpeCBsaW5rYWdlIHRvIGNsYW5nIGFuZCBsbHZtIHNoYXJl ZCBsaWJyYXJpZXMuCi0tLQogZ251L3BhY2thZ2VzL2RlYnVnLnNjbSB8IDUgKysrKysKIDEgZmls ZSBjaGFuZ2VkLCA1IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9nbnUvcGFja2FnZXMvZGVi dWcuc2NtIGIvZ251L3BhY2thZ2VzL2RlYnVnLnNjbQppbmRleCA5NDMxMmU3YzA1Li4yNGQxN2Q5 NWIwIDEwMDY0NAotLS0gYS9nbnUvcGFja2FnZXMvZGVidWcuc2NtCisrKyBiL2dudS9wYWNrYWdl cy9kZWJ1Zy5zY20KQEAgLTE5OSw2ICsxOTksMTEgQEAgKGRlZmluZS1wdWJsaWMgYy12aXNlCiAg ICAgKGFyZ3VtZW50cwogICAgICBgKCM6cGhhc2VzCiAgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0 YW5kYXJkLXBoYXNlcworICAgICAgICAgKGFkZC1hZnRlciAndW5wYWNrICdmaXgtbGlua2FnZQor ICAgICAgICAgICAobGFtYmRhIF8KKyAgICAgICAgICAgIChzdWJzdGl0dXRlKiAiY2xhbmdfZGVs dGEvQ01ha2VMaXN0cy50eHQiCisgICAgICAgICAgICAgICgoIlxcJFxce0xMVk1fTElOS19MTFZN X0RZTElCXFx9IikgIlRydWUiKQorICAgICAgICAgICAgICAoKCIgIExMVk0iKSAiICBMTFZNU3Vw cG9ydCIpKSkpCiAgICAgICAgICAoYWRkLWJlZm9yZSAnYnVpbGQgJ2hhcmRjb2RlLXBhdGhzCiAg ICAgICAgICAgIChsYW1iZGEgXwogICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJjdmlzZS5weSIK LS0gCjIuMzQuMAoK --00000000000021b9b005d7af3505 Content-Type: application/x-patch; name="0001-gnu-clang-Build-and-link-as-shared-libraries.patch" Content-Disposition: attachment; filename="0001-gnu-clang-Build-and-link-as-shared-libraries.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzg1z6ak0 RnJvbSBhZDJlNDI5MDVkYmQwYjI3MGYyMWRlNGViOGUyZTI2NDRhYTc5MWEzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHcmVnIEhvZ2FuIDxjb2RlQGdyZWdob2dhbi5jb20+CkRhdGU6 IFR1ZSwgOCBGZWIgMjAyMiAxODozMjoyOSArMDAwMApTdWJqZWN0OiBbUEFUQ0ggMS8yXSBnbnU6 IGNsYW5nOiBCdWlsZCBhbmQgbGluayBhcyBzaGFyZWQgbGlicmFyaWVzLgoKKiBnbnUvcGFja2Fn ZXMvbGx2bS5zY20gKGNsYW5nKVthcmd1bWVudHNdPCM6cGhhc2VzPjoKUmVtb3ZlIHRoZSBzZXBh cmF0ZSAiZXh0cmEiIG91dHB1dCBhbmQgYnVpbGQgdGhlIG1haW4gcGFja2FnZSBhbmQKY2xhbmct dG9vbHMtZXh0cmFzIHdpdGggc2hhcmVkIGxpYnJhcnkgbGlua2FnZS4KLS0tCiBnbnUvcGFja2Fn ZXMvbGx2bS5zY20gfCA1NCArKystLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tCiAxIGZpbGUgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA1MSBkZWxldGlvbnMoLSkKCmRp ZmYgLS1naXQgYS9nbnUvcGFja2FnZXMvbGx2bS5zY20gYi9nbnUvcGFja2FnZXMvbGx2bS5zY20K aW5kZXggYjZkNTI0MDJhOC4uZWI5NDliZWQxYiAxMDA2NDQKLS0tIGEvZ251L3BhY2thZ2VzL2xs dm0uc2NtCisrKyBiL2dudS9wYWNrYWdlcy9sbHZtLnNjbQpAQCAtMTg4LDcgKzE4OCw2IEBAIChk ZWZpbmUqIChjbGFuZy1mcm9tLWxsdm0gbGx2bSBjbGFuZy1ydW50aW1lIGhhc2gKICAgICA7OyBk b2Vzbid0IHNlZW0gdG8gYmUgYW55IHdheSB0byBkbyB0aGlzIHdpdGggY2xhbmcncyBhdXRvdG9v bHMtYmFzZWQKICAgICA7OyBidWlsZCBzeXN0ZW0uCiAgICAgKGJ1aWxkLXN5c3RlbSBjbWFrZS1i dWlsZC1zeXN0ZW0pCi0gICAgKG91dHB1dHMgKGlmIHRvb2xzLWV4dHJhICcoIm91dCIgImV4dHJh IikgJygib3V0IikpKQogICAgIChuYXRpdmUtaW5wdXRzIChwYWNrYWdlLW5hdGl2ZS1pbnB1dHMg bGx2bSkpCiAgICAgKGlucHV0cwogICAgICBgKCgibGlieG1sMiIgLGxpYnhtbDIpCkBAIC0yMjks NTYgKzIyOCw5IEBAIChkZWZpbmUqIChjbGFuZy1mcm9tLWxsdm0gbGx2bSBjbGFuZy1ydW50aW1l IGhhc2gKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN0 cmluZy1kZWxldGUgI1wtIChwYWNrYWdlLXZlcnNpb24gbGx2bSkpCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIuc3JjIikKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ0b29scy9leHRyYSIpCi0gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICN0KSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgIChhZGQt YWZ0ZXIgJ2luc3RhbGwgJ21vdmUtZXh0cmEtdG9vbHMKLSAgICAgICAgICAgICAgICAgICAgICAg ICAgICAobGFtYmRhKiAoIzprZXkgb3V0cHV0cyAjOmFsbG93LW90aGVyLWtleXMpCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICA7OyBNb3ZlIHRoZSBleHRyYSB0b29scyB0byB0aGUgImV4 dHJhIiBvdXRwdXQuCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBUaGVzZSBwcm9n cmFtcyBhbG9uZSB3ZWlnaCBpbiBhdCAyOTYgTWlCLAotICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgOzsgYmVjYXVzZSB0aGV5IHN0YXRpY2FsbHktbGluayBhIHdob2xlIGJ1bmNoIG9mCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBDbGFuZyBsaWJyYXJpZXMuCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAobGV0KiAoKG91dCAgIChhc3NvYy1yZWYgb3V0cHV0cyAi b3V0IikpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGV4dHJhIChhc3Nv Yy1yZWYgb3V0cHV0cyAiZXh0cmEiKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAoYmluICAgKHN0cmluZy1hcHBlbmQgb3V0ICIvYmluIikpCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKGJpbiogIChzdHJpbmctYXBwZW5kIGV4dHJhICIvYmluIikp Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxpYiAgIChzdHJpbmctYXBw ZW5kIG91dCAiL2xpYiIpKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGRlZmlu ZSAobW92ZSBwcm9ncmFtKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChyZW5h bWUtZmlsZSAoc3RyaW5nLWFwcGVuZCBiaW4gIi8iIHByb2dyYW0pCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kIGJpbiogIi8iCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHByb2dyYW0pKSkKLQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobWtkaXIt cCBiaW4qKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yLWVhY2ggbW92ZQot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJygiY2xhbmctYXBwbHkt cmVwbGFjZW1lbnRzIgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAiY2xhbmctY2hhbmdlLW5hbWVzcGFjZSIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgImNsYW5nZCIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgImNsYW5nLWRvYyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgImNsYW5nLWluY2x1ZGUtZml4ZXIiCi0gICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICJjbGFuZy1tb3ZlIgotICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiY2xhbmctcXVlcnkiCi0gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICJjbGFuZy1yZW9yZGVyLWZpZWxkcyIKLSAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImNsYW5nLXRpZHkiCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJmaW5kLWFsbC1zeW1ib2xzIgot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibW9kdWxhcml6ZSIK LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInBwLXRyYWNlIikp Ci0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgUmVtb3ZlIE1pQnMgb2YgLmEg ZmlsZXMgY29taW5nIGZyb20KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgJ2Ns YW5nLXRvb2xzLWV4dHJhJy4KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvci1l YWNoIChsYW1iZGEgKGNvbXBvbmVudCkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKGRlbGV0ZS1maWxlCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCBsaWIgIi9saWJjbGFuZyIKLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBvbmVu dCAiLmEiKSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKCJB cHBseVJlcGxhY2VtZW50cyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIkNoYW5nZU5hbWVzcGFjZSIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIkRhZW1vbiIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIkRhZW1vblR3ZWFrcyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIkRvYyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIkluY2x1ZGVGaXhlciIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIkluY2x1ZGVGaXhlclBsdWdpbiIKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIk1vdmUiKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKGZvci1lYWNoIGRlbGV0ZS1maWxlCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAoZmluZC1maWxlcwotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGxpYgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICJeKGxpYmZpbmRBbGxTeW1ib2xzfGxpYmNsYW5nVGlkeSkiKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgOzsgQnVpbGQgYW5kIGxpbmsgdG8gc2hhcmVkIGxpYnJhcmllcy4KKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJjbWFrZS9tb2R1bGVz L0FkZENsYW5nLmNtYWtlIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgoIkJV SUxEX1NIQVJFRF9MSUJTIikgIlRydWUiKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgI3QpKSkpCiAgICAgICAgICAgICAgICAgICAgICAgICAnKCkpCiAgICAgICAgICAgICAgICAg ICAoYWRkLWFmdGVyICd1bnBhY2sgJ2FkZC1taXNzaW5nLXRyaXBsZXRzCi0tIAoyLjM0LjAKCg== --00000000000021b9b005d7af3505-- ------------=_1645027021-7074-1--