Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750992 - =sys-libs/glibc-2.32-r2 hang uname with gcc-11
Summary: =sys-libs/glibc-2.32-r2 hang uname with gcc-11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/PR26690
Whiteboard: wait for 2.33 and/or backport small p...
Keywords: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2020-10-24 07:27 UTC by andy
Modified: 2021-07-22 04:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glibc-9999-alias.patch (glibc-9999-alias.patch,971 bytes, patch)
2020-10-25 09:15 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2020-10-24 07:27:56 UTC
after selecting gcc11 and emerge glibc uname starts to hang every time its 
been used when i emerge a package . i dont have much to go on but i report
any way.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-25 09:14:10 UTC
It's a glibc bug: https://sourceware.org/PR26690. Should be fixed in next glibc release.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-25 09:15:57 UTC
Created attachment 668477 [details, diff]
glibc-9999-alias.patch

Meanwhile you can use glibc-9999-alias.patch (or an upstream patch).

You will need to drop it to /etc/portage/patches/sys-libs/glibc.

It should be safe to kill hung uname processes while you are building glibc on a broken system. postage does not check exit status of it.
Comment 3 andy 2020-10-25 09:41:36 UTC
(In reply to Sergei Trofimovich from comment #2)
> Created attachment 668477 [details, diff] [details, diff]
> glibc-9999-alias.patch
> 
> Meanwhile you can use glibc-9999-alias.patch (or an upstream patch).
> 
> You will need to drop it to /etc/portage/patches/sys-libs/glibc.
> 
> It should be safe to kill hung uname processes while you are building glibc
> on a broken system. postage does not check exit status of it.

thanks Sergei

can confirm it is working and on my way to rebuild my system.
Comment 4 Larry the Git Cow gentoo-dev 2020-12-08 00:37:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=973c2804ea92b4acb82e0d61ae9179b0fc15db74

commit 973c2804ea92b4acb82e0d61ae9179b0fc15db74
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-07 22:47:32 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-08 00:37:18 +0000

    sys-libs/glibc: 2.32: cut 3 patchset
    
    This patchset includes a few upstream backports:
    - sh: Add sh4 fpu Implies folder
    - linux: Allow adjtime with NULL argument [BZ #26833]
    - __vfscanf_internal: fix aliasing violation (bug 26690)
    - iconv: Accept redundant shift sequences in IBM1364 [BZ #26224]
    - aarch64: Add unwind information to _start (bug 26853)
    - support: Provide a way to reorder responses within the DNS test server
    - support: Provide a way to clear the RA bit in DNS server responses
    - resolv: Handle transaction ID collisions in parallel queries (bug 26600)
    - resolv: Serialize processing in resolv/tst-resolv-txnid-collision
    - struct _Unwind_Exception alignment should not depend on compiler flags
    - Remove __warn_memset_zero_len [BZ #25399]
    - Remove __warndecl
    - aarch64: Fix DT_AARCH64_VARIANT_PCS handling [BZ #26798]
    
    Two of them are specual (noticed by Gentoo users):
    - "linux: Allow adjtime with NULL argument [BZ #26833]" fixes openntpd
      startup failure.
    - "__vfscanf_internal: fix aliasing violation (bug 26690)" fixes gcc-11
      compatibility.
    
    Reported-by: Tobias Leupold
    Bug: https://bugs.gentoo.org/756316
    Bug: https://sourceware.org/PR26833
    Reported-by: andy
    Bug: https://bugs.gentoo.org/750992
    Bug: https://sourceware.org/PR26690
    Package-Manager: Portage-3.0.11, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/glibc/Manifest             |    1 +
 sys-libs/glibc/glibc-2.32-r4.ebuild | 1513 +++++++++++++++++++++++++++++++++++
 2 files changed, 1514 insertions(+)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-08 23:13:29 UTC
Ended up backporting the patch.
Comment 6 andreavaum 2021-07-22 04:37:55 UTC Comment hidden (spam)