Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677474 - sys-libs/glibc-2.28-r5 : ../.../tls.h:57:1: error: static assertion failed: offset of _private_ss != <snip>
Summary: sys-libs/glibc-2.28-r5 : ../.../tls.h:57:1: error: static assertion failed: o...
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-07 22:33 UTC by Toralf Förster
Modified: 2019-02-07 23:02 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.62 KB, text/plain)
2019-02-07 22:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,1.27 KB, text/plain)
2019-02-07 22:33 UTC, Toralf Förster
Details
environment (environment,133.05 KB, text/plain)
2019-02-07 22:33 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.07 KB, application/x-bzip)
2019-02-07 22:33 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.17 KB, application/x-bzip)
2019-02-07 22:33 UTC, Toralf Förster
Details
sys-libs:glibc-2.28-r5:20190207-220056.log (sys-libs:glibc-2.28-r5:20190207-220056.log,53.51 KB, text/plain)
2019-02-07 22:33 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,42.02 KB, application/x-bzip)
2019-02-07 22:33 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-07 22:33:37 UTC
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:1:
../sysdeps/i386/nptl/tls.h:57:1: error: static assertion failed: "offset of __private_ss != 0x30"
 _Static_assert (offsetof (tcbhead_t, __private_ss) == 0x30,
 ^~~~~~~~~~~~~~
In file included from ../nptl/descr.h:24,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop_libressl_20190207-191529

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)





emerge -qpvO sys-libs/glibc
[ebuild     U ] sys-libs/glibc-2.28-r5 [2.27-r6] USE="headers-only* multiarch (multilib) -audit -caps (-cet) (-compile-locales) -doc -gd -nscd -profile (-selinux) -suid -systemtap -test% (-vanilla) (-hardened%)"
Comment 1 Toralf Förster gentoo-dev 2019-02-07 22:33:40 UTC
Created attachment 564140 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-07 22:33:43 UTC
Created attachment 564142 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-07 22:33:46 UTC
Created attachment 564144 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-07 22:33:48 UTC
Created attachment 564146 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-07 22:33:51 UTC
Created attachment 564148 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-07 22:33:54 UTC
Created attachment 564150 [details]
sys-libs:glibc-2.28-r5:20190207-220056.log
Comment 7 Toralf Förster gentoo-dev 2019-02-07 22:33:56 UTC
Created attachment 564152 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-07 22:44:16 UTC
For some reason for 32-bit ABI -m32 is not passed to gcc and glibc exposed on first assert:

 *             ABI:   x86
 *          CBUILD:   x86_64-pc-linux-gnu
 *           CHOST:   x86_64-pc-linux-gnu
 *         CTARGET:   x86_64-pc-linux-gnu
 *      CBUILD_OPT:   i686-pc-linux-gnu
 *     CTARGET_OPT:   i686-pc-linux-gnu
 *              CC:   
 *             CXX:   
 *              LD:   
...
 *       Manual CC:   x86_64-pc-linux-gnu-gcc -pipe -march=native -O2 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed
 *      Manual CXX:   x86_64-pc-linux-gnu-g++ -m32 -pipe -march=native -O2 -fno-strict-aliasing
...
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-07 22:50:27 UTC
I think -m32 injection omitted here:

>>> Configuring source in /var/tmp/portage/sys-libs/glibc-2.28-r5/work/glibc-2.28 ...
 * Skip CC ABI injection. We can't use (cross-)compiler yet.
 * Skip CC ABI injection. We can't use (cross-)compiler yet.

It happens due to USE=headers-only on a native system.
Comment 10 Larry the Git Cow gentoo-dev 2019-02-07 23:02:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a821c3499a6f99b780eec2d5dd81c785535600c

commit 3a821c3499a6f99b780eec2d5dd81c785535600c
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-02-07 23:01:12 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-02-07 23:02:38 +0000

    sys-libs/glibc: ignore USE=headers-only for native case, bug #677474
    
    Let's not allow users to "deinstall" native glibc.
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/677474
    Package-Manager: Portage-2.3.59, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/glibc/glibc-2.27-r6.ebuild | 4 ++--
 sys-libs/glibc/glibc-2.28-r5.ebuild | 2 +-
 sys-libs/glibc/glibc-2.29.ebuild    | 2 +-
 sys-libs/glibc/glibc-9999.ebuild    | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26aa836f4404981b7c3441a5bc9cb5a556c363ba

commit 26aa836f4404981b7c3441a5bc9cb5a556c363ba
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-02-07 22:59:12 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-02-07 23:02:37 +0000

    toolchain-glibc.eclass: ignore USE=headers-only for native case, bug #677474
    
    Let's not allow users to deinstall native glibc.
    
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/677474
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 eclass/toolchain-glibc.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)