1 |
On Wed, 7 Jul 2021 18:16:44 +0000 |
2 |
Alan Mackenzie <acm@×××.de> wrote: |
3 |
|
4 |
> Hello, Gentoo. |
5 |
> |
6 |
> Would somebody help me here, please. |
7 |
> |
8 |
> When I try to emerge glibc-2.33-r1, the very first phase of the build |
9 |
> crashes out with: |
10 |
> |
11 |
> x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed glibc-test.c -o glibc-test |
12 |
> * Checking that IA32 emulation is enabled in the running kernel ... |
13 |
> /usr/portage/sys-libs/glibc/glibc-2.33-r1.ebuild: line 608: 199 Segmentation fault "${T}/check-ia32-emulation.elf32" |
14 |
> [ !! ] |
15 |
> * ERROR: sys-libs/glibc-2.33-r1::gentoo failed (pretend phase): |
16 |
> * CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc. |
17 |
> * |
18 |
> * Call stack: |
19 |
> * ebuild.sh, line 127: Called pkg_pretend |
20 |
> * glibc-2.33-r1.ebuild, line 721: Called sanity_prechecks |
21 |
> * glibc-2.33-r1.ebuild, line 670: Called die |
22 |
> * The specific snippet of code: |
23 |
> * [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc." |
24 |
> * |
25 |
> * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.33-r1::gentoo'`, |
26 |
> * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.33-r1::gentoo'`. |
27 |
> * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'. |
28 |
> * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/die.env'. |
29 |
> * Working directory: '/var/tmp/portage/sys-libs/glibc-2.33-r1/empty' |
30 |
> * S: '/var/tmp/portage/sys-libs/glibc-2.33-r1/work/glibc-2.33' |
31 |
> |
32 |
> >>> Failed to emerge sys-libs/glibc-2.33-r1, Log file: |
33 |
> |
34 |
> >>> '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log' |
35 |
> |
36 |
> What is clearly happening is that the C Compiler is crashing out with a |
37 |
> segfault. I actually have CONFIG_IA32_EMULATION in my kernel config. |
38 |
> |
39 |
> I've tried this with both GCC-10.3.0 and GCC-9.3.0 with the same results |
40 |
> on both. |
41 |
> |
42 |
> What is going wrong? (Horrible thought - maybe my RAM is failing.) |
43 |
|
44 |
If it happens consistently it's more likely a software problem and |
45 |
not a hardware problem. |
46 |
|
47 |
Try getting a backtrace and instructing dump out of SIGSEGVing glibc-test. |
48 |
|
49 |
The typical session would look like: |
50 |
$ gdb ./glibc-test |
51 |
(gdb) run |
52 |
(gdb) bt |
53 |
(gdb) disassemble |
54 |
|
55 |
-- |
56 |
|
57 |
Sergei |