Subject: Segmentation fault in glibc build (after core-updates merge)

From: Brendan Tildesley <[email-masked]>
Date: Mon, 3 Dec 2018 22:04:56 +1100

Ok so it built the second time I tried, so maybe it was just gremlins in
my computer, but im at least documenting this here.

gcc ibm1004.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef
-Wwrite-strings -fmerge-all-constants -fno-stack-protector
-frounding-math -g -Wstrict-prototypes -Wold-style-definition
-fno-math-errno   -fPIC         -I../include
-I/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata 
-I/tmp/guix-build-glibc-2.28.drv-0/build 
-I../sysdeps/unix/sysv/linux/x86_64/64 
-I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86/include
-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
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include
-isystem
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed
-isystem
/gnu/store/3c9a43ifhbjm8lsc1s183y8a8874fz01-linux-libre-headers-4.14.67/include 
-D_LIBC_REENTRANT -include
/tmp/guix-build-glibc-2.28.drv-0/build/libc-modules.h
-DMODULE_NAME=iconvdata -include ../include/libc-symbols.h  -DPIC
-DSHARED     -DTOP_NAMESPACE=glibc -o
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1004.os -MD -MP -MF
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1004.os.dt -MT
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1004.os
gcc ibm1026.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef
-Wwrite-strings -fmerge-all-constants -fno-stack-protector
-frounding-math -g -Wstrict-prototypes -Wold-style-definition
-fno-math-errno   -fPIC         -I../include
-I/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata 
-I/tmp/guix-build-glibc-2.28.drv-0/build 
-I../sysdeps/unix/sysv/linux/x86_64/64 
-I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86/include
-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
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include
-isystem
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed
-isystem
/gnu/store/3c9a43ifhbjm8lsc1s183y8a8874fz01-linux-libre-headers-4.14.67/include 
-D_LIBC_REENTRANT -include
/tmp/guix-build-glibc-2.28.drv-0/build/libc-modules.h
-DMODULE_NAME=iconvdata -include ../include/libc-symbols.h  -DPIC
-DSHARED     -DTOP_NAMESPACE=glibc -o
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1026.os -MD -MP -MF
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1026.os.dt -MT
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1026.os
gcc cp1125.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef
-Wwrite-strings -fmerge-all-constants -fno-stack-protector
-frounding-math -g -Wstrict-prototypes -Wold-style-definition
-fno-math-errno   -fPIC         -I../include
-I/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata 
-I/tmp/guix-build-glibc-2.28.drv-0/build 
-I../sysdeps/unix/sysv/linux/x86_64/64 
-I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86/include
-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
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include
-isystem
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed
-isystem
/gnu/store/3c9a43ifhbjm8lsc1s183y8a8874fz01-linux-libre-headers-4.14.67/include 
-D_LIBC_REENTRANT -include
/tmp/guix-build-glibc-2.28.drv-0/build/libc-modules.h
-DMODULE_NAME=iconvdata -include ../include/libc-symbols.h  -DPIC
-DSHARED     -DTOP_NAMESPACE=glibc -o
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1125.os -MD -MP -MF
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1125.os.dt -MT
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1125.os
In file included from ./8bit-gap.c:117:0,
                 from ibm1163.c:28:
../iconv/skeleton.c: In function ?gconv?:
../iconv/skeleton.c:375:24: internal compiler error: Segmentation fault
 # define FUNCTION_NAME gconv
                        ^
../iconv/skeleton.c:390:1: note: in expansion of macro ?FUNCTION_NAME?
 FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data,
 ^
gcc cp1250.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef
-Wwrite-strings -fmerge-all-constants -fno-stack-protector
-frounding-math -g -Wstrict-prototypes -Wold-style-definition
-fno-math-errno   -fPIC         -I../include
-I/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata 
-I/tmp/guix-build-glibc-2.28.drv-0/build 
-I../sysdeps/unix/sysv/linux/x86_64/64 
-I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86/include
-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
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include
-isystem
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed
-isystem
/gnu/store/3c9a43ifhbjm8lsc1s183y8a8874fz01-linux-libre-headers-4.14.67/include 
-D_LIBC_REENTRANT -include
/tmp/guix-build-glibc-2.28.drv-0/build/libc-modules.h
-DMODULE_NAME=iconvdata -include ../include/libc-symbols.h  -DPIC
-DSHARED     -DTOP_NAMESPACE=glibc -o
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1250.os -MD -MP -MF
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1250.os.dt -MT
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1250.os
gcc cp1251.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef
-Wwrite-strings -fmerge-all-constants -fno-stack-protector
-frounding-math -g -Wstrict-prototypes -Wold-style-definition
-fno-math-errno   -fPIC         -I../include
-I/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata 
-I/tmp/guix-build-glibc-2.28.drv-0/build 
-I../sysdeps/unix/sysv/linux/x86_64/64 
-I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86/include
-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
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include
-isystem
/gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed
-isystem
/gnu/store/3c9a43ifhbjm8lsc1s183y8a8874fz01-linux-libre-headers-4.14.67/include 
-D_LIBC_REENTRANT -include
/tmp/guix-build-glibc-2.28.drv-0/build/libc-modules.h
-DMODULE_NAME=iconvdata -include ../include/libc-symbols.h  -DPIC
-DSHARED     -DTOP_NAMESPACE=glibc -o
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1251.os -MD -MP -MF
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1251.os.dt -MT
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/cp1251.os
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [../o-iterator.mk:9:
/tmp/guix-build-glibc-2.28.drv-0/build/iconvdata/ibm1163.os] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/tmp/guix-build-glibc-2.28.drv-0/glibc-2.28/iconvdata'
make[1]: *** [Makefile:258: iconvdata/others] Error 2
make[1]: Leaving directory '/tmp/guix-build-glibc-2.28.drv-0/glibc-2.28'
make: *** [Makefile:9: all] Error 2
Backtrace:
           4 (primitive-load "/gnu/store/l306q7nnhf2636jjk0gk9a3rqdn?")
In ice-9/eval.scm:
   191:35  3 (_ _)
In srfi/srfi-1.scm:
   863:16  2 (every1 #<procedure 9455c0 at /gnu/store/gfprsx2m62cvq?> ?)
In
/gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu-build-system.scm:
   799:28  1 (_ _)
In
/gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/utils.scm:
    616:6  0 (invoke _ . _)

/gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/utils.scm:616:6:
In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program:
"make" arguments: ("-j" "16") exit-status: 2 term-signal: #f
stop-signal: #f] 491800>)'.
builder for `/gnu/store/0l7q8sv8d70q0sbnvdwz1m4s6gvaqdyc-glibc-2.28.drv'
failed with exit code 1
build of /gnu/store/0l7q8sv8d70q0sbnvdwz1m4s6gvaqdyc-glibc-2.28.drv failed