From unknown Sat Jun 14 05:35:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#77847: guix-daemon fails to build with gcc-15 in Debian Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Apr 2025 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77847 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 77847@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174482829430172 (code B ref -1); Wed, 16 Apr 2025 18:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2025 18:31:34 +0000 Received: from localhost ([127.0.0.1]:41894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u57Xp-0007qa-Vb for submit@debbugs.gnu.org; Wed, 16 Apr 2025 14:31:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56044) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u57Xm-0007lJ-Fy for submit@debbugs.gnu.org; Wed, 16 Apr 2025 14:31:31 -0400 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 1u57X2-0000kj-Pg for bug-guix@gnu.org; Wed, 16 Apr 2025 14:30:53 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u57X0-0006nr-LA for bug-guix@gnu.org; Wed, 16 Apr 2025 14:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1744828233; bh=LVw21ZDgOAtFawF0ebv2Deu9xhVocJ/CGNg8htUB+QA=; h=From:To:Subject:Date:From; b=Yofbpg+a7V92uPwFHit+F9lBqYm6ebnKCLzt1lTDwrruBdA+lykW8eRpZoj/OoQKK zrfEz3IbvqbZa7LQMi2UiXJJy0NvUdjopRF0Z6lsbktGPSIW23F3GmNwftMO22ohmY QXn/Jwlb7az+FXhfoSDmcxKJp2IC83UWkfaWTR66+nOJj68yMsTYLkXR0Fr/qvqDIo Jy62Gvq2xK+wyljEdy0SHDPUnZ4+6rG5UCBZElAsLgdXE4i5Ox9Mjm7N3h3Qjzq+px QM5nPK/05m99XuAP4XfmMJxMEOAlzP5baoyUgaOYqMaGFZ03zC9MwN5wt3WLG4s/2N 2YJpKBf4zZ9Bw== Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) by cascadia.aikidev.net (Postfix) with ESMTPSA id CB95C7871 for ; Wed, 16 Apr 2025 11:30:33 -0700 (PDT) From: Vagrant Cascadian Date: Wed, 16 Apr 2025 11:30:27 -0700 Message-ID: <87bjswrmbg.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) 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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable As reported in Debian: https://bugs.debian.org/1096790 > The full build log can be found at: > http://qa-logs.debian.net/2025/02/16/amd64exp/guix_1.4.0-8_unstable_gccex= p.log.gz > The last lines of the build log are at the end of this report. ... > GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS. > Other Common build failures are new warnings resulting in build failures > with -Werror turned on, or new/dropped symbols in Debian symbols files. > For other C/C++ related build failures see the porting guide at > http://gcc.gnu.org/gcc-15/porting_to.html ... > g++ -DHAVE_CONFIG_H -I. -I./nix -DLOCALEDIR=3D\"/usr/share/locale\" -I./= nix -I./nix/libutil -I./nix -I./nix/libstore > -Wdate-time -D_FORTIFY_SOURCE=3D2 -Wall -std=3Dc++11 -g -O2 -ffile-prefix= -map=3D/build/reproducible-path/guix-1.4.0=3D. > -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=3Dform= at-security -fcf-protection -c -o > nix/nix-daemon/guix_daemon-nix-daemon.o `test -f 'nix/nix-daemon/nix-daem= on.cc' || echo > './'`nix/nix-daemon/nix-daemon.cc > In file included from ./nix/libstore/local-store.hh:8, > from nix/nix-daemon/nix-daemon.cc:3: > ./nix/libstore/store-api.hh:92:5: error: =E2=80=98uint64_t=E2=80=99 does = not name a type > 92 | uint64_t narSize =3D 0; // 0 =3D unknown > | ^~~~~~~~ > ./nix/libstore/store-api.hh:9:1: note: =E2=80=98uint64_t=E2=80=99 is defi= ned in header =E2=80=98=E2=80=99; this is probably fixable by addi= ng > =E2=80=98#include =E2=80=99 > 8 | #include > +++ |+#include > 9 |=20 I have been able to reproduce the issue locally on Debian building guix 1.4.0 with some patches, mostly to disable various test suites and a few guix-daemon security fixes). I suspect this is not specific to how guix or gcc is packaged in Debian, but it is possible! I have not *yet* tested on a more recent guix based on a git snapshot. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZ//3QwAKCRDcUY/If5cW qmrAAP9h/80UF2zJnQXWF9ruj83BuLW8HqxeB/yriuyOtTqJAgEAyJ6VFCCjqYP8 SKjxv9I5SVp40Vu1v0j9hnZTYXwXWwY= =Q4LN -----END PGP SIGNATURE----- --=-=-=--