gcc-12: FTBFS on hurd-i386

Message ID 55b2e9b94567fdba6e88e3a35af8773c2ed772e9.camel@gmail.com
State New, archived
Headers
Series gcc-12: FTBFS on hurd-i386 |

Commit Message

Li, Pan2 via Gcc-patches Oct. 6, 2022, 4:01 p.m. UTC
  Source: gcc-12
Version: 12_12.2.0-5
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd
Affects: gcc-11, gcc-snapshot
X-Debbugs-CC: debian-hurd@lists.debian.org

Hi,

gcc-12-12.2.0-4/5 in sid FTBFS on hurd-i386 due to failing linkage of
pthread_once (same error for gcc-11, gcc-12, gcc-snapshot):
/<<PKGBUILDDIR>>/build/i686-gnu/libstdc++-v3/include/i686-gnu/bits/gthr-
default.h:700: undefined reference to `pthread_once'

Patches have already submitted upstream by Samuel Thibault in August and
September, see
https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600469.html
https://gcc.gnu.org/pipermail/gcc-patches/2022-September/601754.html

Unfortunately upstream is not very responsive. Therefore I have taken the time
to send these patches to Debian in the mean time.

Patches extracted and attached from that mail message are:
1.diff-6.diff. Note that 1.diff does not apply to gcc-12, it is related to the
git repo. This is reflected in attached debian_rules.patch by commenting out
1.diff.

Just a reflection: Matthias you are really doing a great job with the
gcc releases: Kudos!

Thanks!
  

Comments

Jonathan Wakely Oct. 7, 2022, 11:41 a.m. UTC | #1
On 06/10/22 18:01 +0200, Svante Signell via Gcc-patches wrote:
>gcc-12-12.2.0-4/5 in sid FTBFS on hurd-i386 due to failing linkage of
>pthread_once (same error for gcc-11, gcc-12, gcc-snapshot):
>/<<PKGBUILDDIR>>/build/i686-gnu/libstdc++-v3/include/i686-gnu/bits/gthr-
>default.h:700: undefined reference to `pthread_once'
>
>Patches have already submitted upstream by Samuel Thibault in August and
>September, see
>https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600469.html
>https://gcc.gnu.org/pipermail/gcc-patches/2022-September/601754.html
>
>Unfortunately upstream is not very responsive.

That's because the patch is for libstdc++ but wasn't CC'd to the
libstdc++ list as required. I've reviewed it now.
  

Patch

--- a/debian/rules.patch	2022-08-22 09:44:25.000000000 +0200
+++ b/debian/rules.patch	2022-10-03 15:20:30.000000000 +0200
@@ -197,6 +197,12 @@ 
   debian_patches += hurd-changes
   # FIXME: #1005297, PR 104660
   debian_patches += libgo-hurd-hack
+#  debian_patches += 1
+  debian_patches += 2
+  debian_patches += 3
+  debian_patches += 4
+  debian_patches += 5
+  debian_patches += 6
 endif
 
 debian_patches += gcc-ice-dump