- Package:
- src:gcc-12
- Source:
- gcc-12
- Submitter:
- Date:
- 2022-07-17 09:51:05 UTC
- Severity:
- important
- Tags:
Hi, gcc-12-12-20220206 in experimental FTBFS on hurd-i386 due to missing patches for gccgo, gnu.h and an yet unresolved bug in src/Makefile.in. Attached are patches needed for a successful build. This bug has been reported by Mathias and assigned upstream, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 but no patches are yet committed. debian_rules.patch.patch patches debian/rules.patch to include the two patches: gcc_config_gnu.h.diff fixing the split-stack problem when building gotools and libgo_go_net_unixsock_readmsg_cloexec.go.diff fixing the build of libgo. The last patch src_Makefile.in.patch, is for src/Makefile.in moving all-target-libgo: maybe-all-target-libbacktrace all-target-libgo: maybe-all-target-libatomic outside of the @unless gcc-bootstrap @endunless gcc-bootstrap pair. This patch is not part of the debian_rules.patch since I'm unsure if this a patch is needed for all architectures or GNU/Hurd only. BTW: Creating a new src/Makefile.in by (cd src; autogen Makefile.def) does still create a buggy Makefile.in. The reason of why some dependencies are within the @unless/@endunless pair is still unknown. configure{,.ac} has the following note: # Do not nest @if/@endif or @unless/@endunless pairs, because # configure will not warn you at all. Googling around did not help much, I've found no documentation of it's use and how to encounter it. Just a reflection: Matthias you are really doing a great job with the gcc releases: Kudos! Thanks!
retitle 1005297 gcc-12-12-29229214: FTBFS on hurd-i386 thanks Attached are patches to successfully build gcc-12-12-20220214-1 from source: debian_rules.patch.patch: Adds hurd-specific patches to to debian/rules.patch. gcc_config_gnu.h.diff: Re-enables split-stack support. The patches below are needed for a successful build of libgo.so.21.0.0: libgo_go_net_unixsock_readmsg_cloexec.go.diff libgo_go_runtime_netpoll_hurd.go.diff libgo_go_runtime_os_hurd.go.diff libgo_go_syscall_exec_bsd.go.diff libgo_go_syscall_exec_hurd.go.diff libgo_go_os_user_cgo_listgroups_unix.go.diff libgo_go_os_user_getgrouplist_unix.go.diff libgo_go_internal_testenv_testenv_unix.go.diff libgo_go_os_exec_internal_fdtest_exists_unix.go.diff Makefile.in.diff: This patch is modified from the upstream patch src_Makefile.in.diff since the Debian-specific patch gm2.diff makes changes to src/Makefile.in before Makefile.in.diff is applied. All patches have been submitted upstream in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 The patch, libgo_go_net_unixsock_readmsg_cloexec.go.diff, has already been committed upstream by Ian. Thanks!
retitle 1005297 gcc-12-12-20220222: FTBFS on hurd-i386 thanks Hello, Unfortunately the patch Makefile.in.diff is needed to for a successful build. Attached here for completeness. Thanks!
the patches are applied upstream, however the build still fails with a linker error.
found 1005297 gcc-12-12-20220302-1 retitle 1005297 gcc-12-12-20220302-1: FTBFS on hurd-i386 tags 1005297 + patch thanks Hi again, Unfortunately the Debian patch Makefile.in.diff is needed to for a successful build. Attached again here for completeness, and should be applied after gm2.diff. For more information about this problem, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104660 In the reply from Richard Biener to this bug the writes: https://gcc.gnu.org/pipermail/gcc-bugs/2022-February/778542.html Thanks!
found 1005297 12-20220313-1 retitle 1005297 12-20220313-1: FTBFS on hurd-i386 thanks Note: gcc-12-12-20220313-1 builds fine with pr104290-followup.diff and Makefile.in.diff. Mathias, In Debian you apply the patch gm2.diff to src/Makefile.in. Why not apply Makefile.in.diff too, to make gcc-12 build on GNU/Hurd until fixed upstream. Or maybe this is a Debian problem?? See upstream bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104660 Thanks!
found 1005297 12-20220319-1 retitle 1005297 gcc-12-12-20220319-1: FTBFS on hurd-i386 thanks Note: gcc-12-12-20220319-1 builds fine with pr104290-followup.diff and Makefile.in.diff. Matthias, In Debian the patch gm2.diff is applied to the generated file src/Makefile.in. Why not apply Makefile.in.diff too, to make gcc-12 build on GNU/Hurd until fixed upstream. Or maybe this is a Debian problem?? See upstream bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104660 Thanks!
We believe that the bug you reported is fixed in the latest version of
gcc-12, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1005297@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-12 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 17 Jul 2022 11:18:47 +0200
Source: gcc-12
Architecture: source
Version: 12.1.0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1005297
Changes:
gcc-12 (12.1.0-6) unstable; urgency=medium
.
* Update to git 20210717 from the gcc-12 branch.
- Fix PR rtl-optimization/105041, PR tree-optimization/105860,
PR target/105930 (x86), PR tree-optimization/106114,
PR target/105991 (PPC), PR target/106122 (x86), PR c++/106102,
PR target/103722 (SH), PR bootstrap/105551, PR target/106097,
PR c++/105626, PR c++/106024, PR c++/105541, PR c++/105779,
PR c++/106024, PR d/106139, PR fortran/104313, PR fortran/103137,
PR fortran/103138, PR fortran/103693, PR fortran/105243,
PR fortran/106121, PR fortran/105954, PR fortran/105691,
PR fortran/105813.
* Apply a hack to build libgo on the Hurd. Closes: #1005297.
Checksums-Sha1:
12842aa62d1d12d2cefcb0b0a8ab316ffa63a4e7 27413 gcc-12_12.1.0-6.dsc
62da5f153beae1809b71f3f2ed6e5c54c1630332 1760432 gcc-12_12.1.0-6.debian.tar.xz
85cea86ea424801a266d1827603c65bcb3512cf5 9449 gcc-12_12.1.0-6_source.buildinfo
Checksums-Sha256:
32797f1140fab39804d8f105f6dd47138dab0770f66064e7123dcaf871d552b8 27413 gcc-12_12.1.0-6.dsc
b435a4aafb800097dd4938b77461e5d07ce5b7da64a1d45104c037533c1b9072 1760432 gcc-12_12.1.0-6.debian.tar.xz
1dcc79605056b8199af02afa3e87a7146b57b7e86efacb8122dbb43972ec3ff6 9449 gcc-12_12.1.0-6_source.buildinfo
Files:
a9fe326185825200e695b620dabdae2c 27413 devel optional gcc-12_12.1.0-6.dsc
d2f88021d3a66f24a6e19385d14fa414 1760432 devel optional gcc-12_12.1.0-6.debian.tar.xz
7b2fd5fae4c0c8932d1a929ab2616462 9449 devel optional gcc-12_12.1.0-6_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmLT1soQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9RuLD/4/C5W2EQTBNJFPGz2N/rsNsySQYUVtFPW0
VQUcVu6+/XPaNf+f3V/o+p+Iu5Gu2d12uEXl2LktFbEXXb4rKssDPLMYY8OwMF5w
m3fXnjEb2ksyQwFf7NISSyoprijrXIQh5210dfbBgpcnPv6XomNZkpRZGzKQOQH1
8/aA8d5IE/2ZS2WMVm+hN7DOmP6Fsjcut0EPnLqEpc1vtNyDi4JuQ7egVk6zld6W
v/i2ZjeItJgXZw6vCkbSUA2pyLQ0MtaZ9J8+ejQPSu8imy0c00hFzcGPN8Zyf5Gp
usnA+6N5UoqCVuqF45MiP3qPf0f8qdKAkb72CBYTea6X97ImiAT/yvxFodnzmvtQ
HV+iQdHEPgXjIQpNYhljc89GelgKdHssCfk4zWxfRrdmvX2alxZOLNruVYn9vm2y
5Eey0aNXGaXxz8KJqBeRQZ8SkRwx/VNC21PXIboeiinPpnxRaeRaqD0cWkffI2Ub
yD+tLYp8w9HbNVpffYrQNaSBX7BmKUkpayHt62OQ/OgLHz9r0OAyCwc6y390Vlam
6ABFDIPX92mfXjkNyD2gtUTtjY+vGE7K/6NaLnMBsYDdH1gZGiJleIRF3wl6kGw6
39VAHYzADzAcui0EBAoy+glUcWzcgPs3jwk8PCYhlDxSnu7U7T3o7TyNI3fDoplM
bgDrmdIDDg==
=XVBG
-----END PGP SIGNATURE-----