Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
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:23:28
Message-Id: 6ef37bce-a9c6-4ed3-4515-ff4acffa2a9b@gmail.com
In Reply to: [gentoo-user] glibc-2.33-r1 crashes out at the start before building. by Alan Mackenzie
1 Alan Mackenzie wrote:
2 > Hello, Gentoo.
3 >
4 > Would somebody help me here, please.
5 >
6 > When I try to emerge glibc-2.33-r1, the very first phase of the build
7 > crashes out with:
8 >
9 > x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed glibc-test.c -o glibc-test
10 > * Checking that IA32 emulation is enabled in the running kernel ...
11 > /usr/portage/sys-libs/glibc/glibc-2.33-r1.ebuild: line 608: 199 Segmentation fault "${T}/check-ia32-emulation.elf32"
12 > [ !! ]
13 > * ERROR: sys-libs/glibc-2.33-r1::gentoo failed (pretend phase):
14 > * CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc.
15 > *
16 > * Call stack:
17 > * ebuild.sh, line 127: Called pkg_pretend
18 > * glibc-2.33-r1.ebuild, line 721: Called sanity_prechecks
19 > * glibc-2.33-r1.ebuild, line 670: Called die
20 > * The specific snippet of code:
21 > * [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
22 > *
23 > * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.33-r1::gentoo'`,
24 > * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.33-r1::gentoo'`.
25 > * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'.
26 > * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/die.env'.
27 > * Working directory: '/var/tmp/portage/sys-libs/glibc-2.33-r1/empty'
28 > * S: '/var/tmp/portage/sys-libs/glibc-2.33-r1/work/glibc-2.33'
29 >
30 >>>> Failed to emerge sys-libs/glibc-2.33-r1, Log file:
31 >>>> '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'
32 > What is clearly happening is that the C Compiler is crashing out with a
33 > segfault. I actually have CONFIG_IA32_EMULATION in my kernel config.
34 >
35 > I've tried this with both GCC-10.3.0 and GCC-9.3.0 with the same results
36 > on both.
37 >
38 > What is going wrong? (Horrible thought - maybe my RAM is failing.)
39 >
40
41
42 Could it be that the /usr/src/linux link is pointing to the wrong kernel
43 directory?  It could be pointing to a old config that doesn't have that
44 option enabled.  I know I've done that before when rebuilding modules. 
45 It's amazing how it doesn't work when that link is pointing to the wrong
46 kernel. 
47
48 If it isn't that, maybe someone else will have a better idea. 
49
50 Dale
51
52 :-)  :-) 

Replies