[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1027840: marked as done (gcc-11: FTBFS on hurd-i386)



Your message dated Tue, 10 Jan 2023 05:35:31 +0000
with message-id <E1pF7IJ-00GFHJ-S8@fasolo.debian.org>
and subject line Bug#1027840: fixed in gcc-11 11.3.0-11
has caused the Debian Bug report #1027840,
regarding gcc-11: FTBFS on hurd-i386
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1027840: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027840
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: gcc-11
Version: 11.3.0-10
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-11-11.3.0-10 in sid FTBFS on hurd-i386 due to failing linkage of
pthread_once (same error already fixed in gcc-12 and gcc-13):
/<<PKGBUILDDIR>>/build/i686-gnu/libstdc++-v3/include/i686-gnu/bits/gthr-
default.h:700: undefined reference to `pthread_once'
and more.

The patch at hand is: libstdc++-hurd.diff, attached here for convenience.

Thanks!

This is notably needed because in glibc 2.34, the move of pthread functions
into libc.so happened for Linux only, not GNU/Hurd.

The pthread_self() function can also always be used fine as it is on
GNU/Hurd.

libstdc++-v3/ChangeLog:

        * config/os/gnu-linux/os_defines.h [!__linux__]
          (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.

--- a/libstdc++-v3/config/os/gnu-linux/os_defines.h
+++ b/libstdc++-v3/config/os/gnu-linux/os_defines.h
@@ -49,22 +49,24 @@
 // version dynamically in case it has changed since libstdc++ was configured.
 #define _GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC __GLIBC_PREREQ(2,23)
 
-#if __GLIBC_PREREQ(2, 27)
-// Since glibc 2.27 pthread_self() is usable without linking to libpthread.
-# define _GLIBCXX_NATIVE_THREAD_ID pthread_self()
-#else
+#ifdef __linux__
+# if __GLIBC_PREREQ(2, 27)
+// Since glibc 2.27 Linux' pthread_self() is usable without linking to libpthread.
+#  define _GLIBCXX_NATIVE_THREAD_ID pthread_self()
+# else
 // Before then it was in libc.so.6 but not libc.a, and always returns 0,
 // which breaks the invariant this_thread::get_id() != thread::id{}.
 // So only use it if we know the libpthread version is available.
 // Otherwise use (__gthread_t)1 as the ID of the main (and only) thread.
-# define _GLIBCXX_NATIVE_THREAD_ID \
-  (__gthread_active_p() ? __gthread_self() : (__gthread_t)1)
-#endif
+#  define _GLIBCXX_NATIVE_THREAD_ID \
+   (__gthread_active_p() ? __gthread_self() : (__gthread_t)1)
+# endif
 
-#if __GLIBC_PREREQ(2, 34)
-// Since glibc 2.34 all pthreads functions are usable without linking to
+# if __GLIBC_PREREQ(2, 34)
+// Since glibc 2.34 all Linux pthreads functions are usable without linking to
 // libpthread.
-# define _GLIBCXX_GTHREAD_USE_WEAK 0
+#  define _GLIBCXX_GTHREAD_USE_WEAK 0
+# endif
 #endif
 
 #endif

--- End Message ---
--- Begin Message ---
Source: gcc-11
Source-Version: 11.3.0-11
Done: Matthias Klose <doko@debian.org>

We believe that the bug you reported is fixed in the latest version of
gcc-11, 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 1027840@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-11 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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 10 Jan 2023 06:08:48 +0100
Source: gcc-11
Architecture: source
Version: 11.3.0-11
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1027840
Changes:
 gcc-11 (11.3.0-11) unstable; urgency=medium
 .
   * Update to git 20230110 from the gcc-11 branch.
     - Fix PR target/106736 (PPC), PR fortran/108131.
   * Fix FTBFS on hurd-i386 (Svante Signell). Closes: #1027840.
   * Bump standards version.
Checksums-Sha1:
 929f65398b8940941956ac46d955059fb4a35e9a 22383 gcc-11_11.3.0-11.dsc
 167069ac85b03d7781252e441b652e41bc6cbc9e 710216 gcc-11_11.3.0-11.debian.tar.xz
 ae60524c5d8b2189dcacf6d00ce4d9cfbb4472cc 8917 gcc-11_11.3.0-11_source.buildinfo
Checksums-Sha256:
 705fb31f3aef62143c43cfdaec15eb2ddc4ede6da856be2b32dc6d0df28b172f 22383 gcc-11_11.3.0-11.dsc
 3cdd3e7ef0165cc1efc1ac023d57ac0abfd14c4913fdc57ee413667d8cb23a68 710216 gcc-11_11.3.0-11.debian.tar.xz
 8a6f421307a9aa53c3f6052dee60d3bce7f08dbb9d0b695cdbfe98f97671e177 8917 gcc-11_11.3.0-11_source.buildinfo
Files:
 944d90fd2ff0f03f9693a7876d3ce5d6 22383 devel optional gcc-11_11.3.0-11.dsc
 d933dd90bd162b77bf5585465d9afb46 710216 devel optional gcc-11_11.3.0-11.debian.tar.xz
 0d7a5052cba0d57fe3a0af377247f7cf 8917 devel optional gcc-11_11.3.0-11_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmO89IoQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9SusEADAB23JpncpmkXNkRFDkh7YiarddJXUyVsy
T/ToYa5c68JNNAPsnEMSaIoNLF+U6Ev4oSXBcyzZ9ih0WFkTXbWPwExoLl7dEm7W
W88+JEuQ1EaequTNXSU797yX+7JV+vkDYS2uZFry2K751nwyy2FdPq7G85Do5sWr
BY+sXej6dRsOj3L+EP394zpqxtwK6PhNyAd8bUqZR50K7H8CrLBj3anctv9vebZi
wD8JQtxCy1vnok+LrIE2XPP6d+4qYOvXuoFThTUXVQZwvuEjwmq6bSqrMTOD0FSd
el9LqFiN0T8RHfipv2CWGqecHLeTWtJzy4hX2oFh/b63E3Rcgn28WuGJwa6JVMst
tOVHi6W9GDckhUX6lWlnFnCiEEZHNB0rXd9mh3s87rJwlw7DX7juM4jnlNnZsEp4
zllSbPu4xY9g5tpMsGtMtAWiNuni9jNVYrvsCmpA4RvQ0Pi1qr8lcIDkBfPshi/v
zcHkFeRLivrEAYWpdrqftbqH+cTkot9kokEcgYFsjf7OYvFkrO2tUK8FnZNBy2LY
CVhgYs3bNkV5giK20Q1A7XVP4mn27vAr3kUDCnQmrr8cK89pJuYObrN2TzijHFYs
ueKnxPO0iWRmkkyRgivCs3plAKKNKnlCF+lPOlB/6rnkkazNKr138o/ZsWgJ0C6d
4xVJzhqFqg==
=Ab4u
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: