Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128227 - gcc-3.4/ICE comiling glibc-2.4-r1 on PPC64
Summary: gcc-3.4/ICE comiling glibc-2.4-r1 on PPC64
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
: 128228 128229 141459 (view as bug list)
Depends on:
Reported: 2006-03-31 03:20 UTC by Markus Rothe (RETIRED)
Modified: 2006-07-23 01:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

ccOvbdwX.out (ccOvbdwX.out,423.38 KB, text/plain)
2006-03-31 03:27 UTC, Markus Rothe (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2006-03-31 03:20:47 UTC

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)
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:> 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/", line 1036, in run_local
    cmd("/bin/bash "+self.settings["controller_file"]+" run","run script failed.",env=self.env)
  File "/usr/lib/catalyst2/modules/", line 485, in cmd
    raise CatalystError,myexc
CatalystError: <unprintable instance object>

!!! catalyst: Stage build aborting due to error.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 03:24:04 UTC
*** Bug 128229 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 03:25:23 UTC
*** Bug 128228 has been marked as a duplicate of this bug. ***
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-03-31 03:27:19 UTC
hrm.. I should be more patient clicking on submit... :-/
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2006-03-31 03:27:50 UTC
Created attachment 83495 [details]
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-04-10 06:56:55 UTC
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?
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-04-13 20:28:55 UTC
You'll need gcc-4.x to compile glibc-2.4 on ppc.
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2006-04-14 00:09:38 UTC
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!


Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-07-23 01:47:38 UTC
*** Bug 141459 has been marked as a duplicate of this bug. ***