Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] glibc-2.33-r1 crashes out at the start before building.
Date: Wed, 07 Jul 2021 18:52:46
Message-Id: YOX39mUcnjpPJy8h@ACM
In Reply to: Re: [gentoo-user] glibc-2.33-r1 crashes out at the start before building. by Dale
1 Hi, Dale.
2
3 On Wed, Jul 07, 2021 at 13:23:21 -0500, Dale wrote:
4 > Alan Mackenzie wrote:
5 > > Hello, Gentoo.
6
7 > > Would somebody help me here, please.
8
9 > > When I try to emerge glibc-2.33-r1, the very first phase of the build
10 > > crashes out with:
11
12 > > x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed glibc-test.c -o glibc-test
13 > > * Checking that IA32 emulation is enabled in the running kernel ...
14 > > /usr/portage/sys-libs/glibc/glibc-2.33-r1.ebuild: line 608: 199 Segmentation fault "${T}/check-ia32-emulation.elf32"
15 > > [ !! ]
16 > > * ERROR: sys-libs/glibc-2.33-r1::gentoo failed (pretend phase):
17 > > * CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc.
18 > > *
19 > > * Call stack:
20 > > * ebuild.sh, line 127: Called pkg_pretend
21 > > * glibc-2.33-r1.ebuild, line 721: Called sanity_prechecks
22 > > * glibc-2.33-r1.ebuild, line 670: Called die
23 > > * The specific snippet of code:
24 > > * [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
25 > > *
26 > > * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.33-r1::gentoo'`,
27 > > * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.33-r1::gentoo'`.
28 > > * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'.
29 > > * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/die.env'.
30 > > * Working directory: '/var/tmp/portage/sys-libs/glibc-2.33-r1/empty'
31 > > * S: '/var/tmp/portage/sys-libs/glibc-2.33-r1/work/glibc-2.33'
32
33 > >>>> Failed to emerge sys-libs/glibc-2.33-r1, Log file:
34 > >>>> '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'
35 > > What is clearly happening is that the C Compiler is crashing out with a
36 > > segfault. I actually have CONFIG_IA32_EMULATION in my kernel config.
37
38 > > I've tried this with both GCC-10.3.0 and GCC-9.3.0 with the same results
39 > > on both.
40
41 > > What is going wrong? (Horrible thought - maybe my RAM is failing.)
42
43 Well, 20 minutes of memtest86+ doesn't show any errors, thankfully.
44
45 > Could it be that the /usr/src/linux link is pointing to the wrong kernel
46 > directory?  It could be pointing to a old config that doesn't have that
47 > option enabled.  I know I've done that before when rebuilding modules. 
48 > It's amazing how it doesn't work when that link is pointing to the wrong
49 > kernel. 
50
51 Thanks, I've just checked that. The link is indeed pointing to the
52 correct kernel. The only thing odd about it is the kernel has 777
53 permissions rather than 755, dating from April when I was messing with
54 the kernel's soft scrolling. But that couldn't cause gcc to segfault,
55 surely?
56
57 > If it isn't that, maybe someone else will have a better idea. 
58
59 > Dale
60
61 > :-)  :-) 
62
63 --
64 Alan Mackenzie (Nuremberg, Germany).