Created attachment 782123 [details] info.log Command line: crossdev -t powerpc64-unknown-linux-gnu -oS /var/db/repos/crossdev ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ * crossdev version: 20220424 * Host Portage ARCH: amd64 * Host Portage System: x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu) * Target Portage ARCH: ppc64 * Target System: powerpc64-unknown-linux-gnu * Stage: 4 (C/C++ compiler) * USE=multilib: no * Target ABIs: ppc64 * binutils: binutils-[latest] * gcc: gcc-[latest] * headers: linux-headers-[latest] * libc: glibc-[latest] * CROSSDEV_OVERLAY: /var/db/repos/crossdev * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: / * Portage flags: _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * leaving sys-devel/binutils in /var/db/repos/crossdev * leaving sys-devel/gcc in /var/db/repos/crossdev * leaving sys-kernel/linux-headers in /var/db/repos/crossdev * leaving sys-libs/glibc in /var/db/repos/crossdev * leaving sys-devel/gdb in /var/db/repos/crossdev * leaving metadata/layout.conf alone in /var/db/repos/crossdev _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * Log: /var/log/portage/cross-powerpc64-unknown-linux-gnu-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-powerpc64-unknown-linux-gnu-gcc-stage1.log * Emerging cross-gcc-stage1 ... [ ok ] * Log: /var/log/portage/cross-powerpc64-unknown-linux-gnu-linux-headers.log * Emerging cross-linux-headers ... [ ok ] * Log: /var/log/portage/cross-powerpc64-unknown-linux-gnu-glibc.log * Emerging cross-glibc ... * error: glibc failed :( * * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-powerpc64-unknown-linux-gnu-info.log * /var/log/portage/cross-powerpc64-unknown-linux-gnu-glibc.log.xz * /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc*/temp/glibc-config.logs.tar.xz
Created attachment 782126 [details] glibc.log.xz
Created attachment 782129 [details] glibc-config.logs.tar.xz
powerpc64-unknown-linux-gnu-gcc -m64 -ggdb -pipe -O2 ../sysdeps/powerpc/powerpc64/multiarch/strlen.c -c -std=gnu11 -fgnu89-inline -ggdb -pipe -O2 -Wall -Wwrite-strings -Wundef -fmerge-all-constants -frounding-math -fstack-protector-strong -fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno -mlong-double-128 -fpic -ftls-model=initial-exec -U_FORTIFY_SOURCE -DGENTOO_USE_CLONE3 -I../include -I/var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/string -I/var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/be -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu -I../sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/powerpc/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/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch -I../sysdeps/powerpc/powerpc64/be/power4/fpu -I../sysdeps/powerpc/powerpc64/fpu -I../sysdeps/powerpc/powerpc64/be/power4/multiarch -I../sysdeps/powerpc/powerpc64/multiarch -I../sysdeps/powerpc/powerpc64/be/power4 -I../sysdeps/powerpc/powerpc64/power4 -I../sysdeps/powerpc/power4 -I../sysdeps/powerpc/powerpc64/be/fpu/multiarch -I../sysdeps/powerpc/powerpc64/be/fpu -I../sysdeps/powerpc/powerpc64/be/multiarch -I../sysdeps/powerpc/powerpc64/be -I../sysdeps/powerpc/powerpc64 -I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/ldbl-128ibm/include -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.3.0/include -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.3.0/include-fixed -isystem /usr/powerpc64-unknown-linux-gnu/usr/include -D_LIBC_REENTRANT -include /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -o /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/string/strlen.os -MD -MP -MF /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/string/strlen.os.dt -MT /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/string/strlen.os during IPA pass: modref [01m[K../sysdeps/powerpc/powerpc64/multiarch/strlen.c:[m[K In function ‘[01m[K__libc_strlen_ifunc[m[K’: [01m[K../sysdeps/powerpc/powerpc64/multiarch/strlen.c:54:1:[m[K [01;31m[Kinternal compiler error: [m[KSegmentation fault 54 | [01;31m[Klibc_hidden_ver[m[K (__libc_strlen, strlen) | [01;31m[K^~~~~~~~~~~~~~~[m[K 0x7f02b0eabddf ??? /var/tmp/portage/sys-libs/glibc-2.35-r5/work/glibc-2.35/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7f02b0e97351 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f02b0e9740b __libc_start_main_impl ../csu/libc-start.c:389 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. make[2]: *** [/var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/sysd-rules:671: /var/tmp/portage/cross-powerpc64-unknown-linux-gnu/glibc-2.35-r5/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/string/strlen.os] Error 1 make[2]: *** Waiting for unfinished jobs....
I am trying to consistently reproduce but this seems random. Maybe it has to do with the number of jobs. I don't suspect hardware because I do not get this with regular merges. Sometimes the cross-merge completes successfully. I cannot reproduce the ICE by just re-running a GCC command. I have to run with a clean environment for the crash to happen ('make clean' must be run first or just restart the merge). One such crash: powerpc64-unknown-linux-gnu-gcc -ggdb -mtune=970 -msecure-plt -pipe -O2 ../sysdeps/powerpc/powerpc64/multiarch/memcpy.c -c -std=gnu11 -fgnu89-inline -ggdb -mtune=970 -msecure-plt -pipe -O2 -Wall -Wwrite-strings -Wundef -fmerge-all-constants -frounding-math -fstack-protector-strong -fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno -mlong-double-128 -fpic -fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0 -ftls-model=initial-exec -U_FORTIFY_SOURCE -DGENTOO_USE_CLONE3 -I../include -I/usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl/string -I/usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/be -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu -I../sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/powerpc/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/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch -I../sysdeps/powerpc/powerpc64/be/power4/fpu -I../sysdeps/powerpc/powerpc64/fpu -I../sysdeps/powerpc/powerpc64/be/power4/multiarch -I../sysdeps/powerpc/powerpc64/multiarch -I../sysdeps/powerpc/powerpc64/be/power4 -I../sysdeps/powerpc/powerpc64/power4 -I../sysdeps/powerpc/power4 -I../sysdeps/powerpc/powerpc64/be/fpu/multiarch -I../sysdeps/powerpc/powerpc64/be/fpu -I../sysdeps/powerpc/powerpc64/be/multiarch -I../sysdeps/powerpc/powerpc64/be -I../sysdeps/powerpc/powerpc64 -I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/ldbl-128ibm/include -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.3.0/include -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.3.0/include-fixed -isystem /usr/powerpc64-unknown-linux-gnu/usr/include -D_LIBC_REENTRANT -include /usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -o /usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl/string/memcpy.os -MD -MP -MF /usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl/string/memcpy.os.dt -MT /usr/powerpc64-unknown-linux-gnu/tmp/portage/sys-libs/glibc-2.35-r5/work/build-default-powerpc64-unknown-linux-gnu-nptl/string/memcpy.os during IPA pass: pure-const [01m[K../sysdeps/powerpc/powerpc64/multiarch/memcmp.c:[m[K In function ‘[01m[Kmemcmp_ifunc[m[K’: [01m[K../sysdeps/powerpc/powerpc64/multiarch/memcmp.c:35:1:[m[K [01;31m[Kinternal compiler error: [m[KSegmentation fault 35 | [01;31m[Klibc_ifunc_redirected[m[K (__redirect_memcmp, memcmp, | [01;31m[K^~~~~~~~~~~~~~~~~~~~~[m[K Is IPA pass triggered by a USE flag?
I think it's to do with parallel jobs. If I use MAKEOPTS=-j1 it works every time as far as I can tell.