Hi, I'm trying to compile a stage1 using stage3-ppc64-2006.0-64ul tarball and gcc-4.1.0 and glibc-2.4-r1. I've added nptl and nptlonly to STAGE1_USE, as glibc requires it. Else the profile is untouched (default-linux/ppc/ppc64/2006.0/64bit-userland). Unfortunaly I'm getting an ICE on glibc: [...] powerpc64-unknown-linux-gnu-gcc vfprintf.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -pipe -mnew-mnemonics -Wstrict-prototypes -mlong-double-128 -Wno-uninitialized -I../include -I/var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/stdio-common -I/var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl -I../sysdeps/powerpc/powerpc64/elf -I../sysdeps/powerpc/elf -I../sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu -I../sysdeps/powerpc/powerpc64/fpu -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc64 -I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../ports/sysdeps/powerpc -I../nptl/sysdeps/powerpc -I../sysdeps/powerpc -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.4/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/stdio-common/vfprintf.o -MD -MP -MF /var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/stdio-common/vfprintf.o.dt -MT /var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/stdio-common/vfprintf.o vfprintf.c: In function `_IO_vfprintf_internal': vfprintf.c:1900: error: insn does not satisfy its constraints: (insn 11910 5636 5639 434 vfprintf.c:1738 (set (mem/s:TF (plus:DI (reg:DI 8 8 [3469]) (reg/v/f:DI 14 14 [orig:1611 args_value ] [1611])) [0 <variable>.pa_long_double+0 S16 A128]) (reg:TF 32 0)) 312 {*movtf_internal} (nil) (nil)) vfprintf.c:1900: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/glibc-2.4-r1/temp/ccOvbdwX.out file, please attach this to your bugreport. make[2]: *** [/var/tmp/portage/glibc-2.4-r1/work/build-ppc64-powerpc64-unknown-linux-gnu-nptl/stdio-common/vfprintf.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/stdio-common' make[1]: *** [stdio-common/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.4-r1 failed. !!! Function toolchain-glibc_src_compile, Line 259, Exitcode 2 !!! make for ppc64 failed !!! If you need support, post the topmost build error, NOT this status message. !!! catalyst: run script failed. Traceback (most recent call last): File "modules/generic_stage_target.py", line 1036, in run_local cmd("/bin/bash "+self.settings["controller_file"]+" run","run script failed.",env=self.env) File "/usr/lib/catalyst2/modules/catalyst_support.py", line 485, in cmd raise CatalystError,myexc CatalystError: <unprintable instance object> None !!! catalyst: Stage build aborting due to error.
*** Bug 128229 has been marked as a duplicate of this bug. ***
*** Bug 128228 has been marked as a duplicate of this bug. ***
hrm.. I should be more patient clicking on submit... :-/
Created attachment 83495 [details] ccOvbdwX.out
Looks like the problem is with gcc-3.4, and I can't reproduce this with the preprocessed output given with 3.4.4 or 4.1.0. Can someone verify this?
You'll need gcc-4.x to compile glibc-2.4 on ppc.
oh.. so this is the problem: while doing a stage1 the new compiler (gcc-4.1.0) does not get selected, so glibc won't compile. I'll try to find a solution for that, or open another bug report. Thanks for pointing this out halcy0n! Regards, Markus
*** Bug 141459 has been marked as a duplicate of this bug. ***