Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is my toolchain damaged?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
richard77
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 275

PostPosted: Thu Mar 21, 2019 9:32 pm    Post subject: Is my toolchain damaged? Reply with quote

During world update, I got a failure for dev-qt/qtcore-5.11.3-r2:

Code:

/usr/include/bits/mathcalls.h:276:1: internal compiler error: Segmentation fault
 __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
 ^~~~~~~~~~

Build fails exactly in the same point both with gcc-7.3 and 8.2.
For a lack of better ideas and not being able to find any clue, I tried to recompile glibc (since /usr/include/bits/mathcalls.h belongs to it), which failed:
Code:
x86_64-pc-linux-gnu-gcc -m64 -march=native -pipe -O2 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed ../sysdeps/x86_64/multiarch/strncpy-c.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Wundef -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -frounding-math -fstack-protector-all -march=native -pipe -Wstrict-prototypes -Wold-style-definition      -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/string  -I/home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed -isystem /usr/include  -D_LIBC_REENTRANT -include /home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o /home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/string/strncpy-c.o -MD -MP -MF /home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/string/strncpy-c.o.dt -MT /home/portage_dirs/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/string/strncpy-c.o
{standard input}: Assembler messages:
{standard input}: Internal error (Segmentation fault).
Please report this bug.

Now I'm stuck. Is my toolchain borked? How can I fix it?
_________________
Fletto i muscoli e sono nel vuoto
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6957
Location: Saint Amant, Acadiana

PostPosted: Fri Mar 22, 2019 1:22 am    Post subject: Reply with quote

Well, I'd start making sure the hard drive is not failing. Perhaps boot from an external media and run some tests on it. Then you could run qcheck, see if it finds any damaged packages. Finally, there are binary packages for repair jobs: http://packages.gentooexperimental.org/packages/
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
richard77
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 275

PostPosted: Sun Mar 24, 2019 9:19 pm    Post subject: Reply with quote

Hi, thanks.
I checked the HD, is ok. The culprit was the RAM (one defective bit at approx 7 GB).
Initially I ruled out an hardware problem because firefox failed twice in the same line, probably it was a corrupted cache page.

I discovered is possible to mask a ram zone with memmap kernel parameter. For reference (since I had few issues discovering the right syntax): if you edit grub command line at boot the syntax is: mm\$MM (where mm is the dimension of the excluded zone and MM the starting address, e.g. "memmap=64k\$0x21a2b9b9c", note that you have to escape the "$"). IF you want to add to GRUB_CMDLINE_LINUX (at /etc/default/grub) you have to escape \$ to \\\$: GRUB_CMDLINE_LINUX="mmap=64k\\\$0x21a2b9b9c".
_________________
Fletto i muscoli e sono nel vuoto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum