Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76795 - glibc compile bombs during bootstrap
Summary: glibc compile bombs during bootstrap
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 11:35 UTC by aaron cirillo
Modified: 2005-01-09 00:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aaron cirillo 2005-01-05 11:35:40 UTC
gcc ../sysdeps/ieee754/dbl-64/s_scalbn.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -mtune=power4 -pipe -mnew-mnemonics     -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads/math -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads -I../sysdeps/powerpc/powerpc64/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc64 -I../linuxthreads/sysdeps/powerpc -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/powerpc/powerpc64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc64/fpu -I../sysdeps/powerpc/powerpc64 -I../sysdeps/wordsize-64 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.1/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC     -o /var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads/math/s_scalbn.o -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads/math/s_scalbn.o.dt -MT /var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads/math/s_scalbn.o
In file included from ../sysdeps/powerpc/fpu/s_isnan.c:26:
../sysdeps/powerpc/fpu/fenv_libc.h:59: error: parse error before numeric constant
../sysdeps/powerpc/fpu/fenv_libc.h:80: error: parse error before numeric constant
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102/work/build-powerpc64-unknown-linux-gnu-linuxthreads/math/s_isnan.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20041102 failed.
!!! Function src_compile, Line 691, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. Run the bootstrap script in a chrooted environment on a dual G5 2.5 Ghz box running on a Gentoo livecd

Actual Results:  
glibc did not compile

Expected Results:  
glibc shoul've compiled along with the rest of the packages required by the
bootstrap script
Comment 1 James Stockton 2005-01-05 11:39:02 UTC
Whats output from both "emerge info" and "gcc-config -c"
Comment 2 aaron cirillo 2005-01-05 11:45:38 UTC
Here is my make.conf:

CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
Comment 3 aaron cirillo 2005-01-05 11:47:33 UTC
Here is the output of emerge info:

Portage 2.0.51-r3 (default-ppc64-2004.3, gcc-3.4.1, unavailable, 2.6.9-G5 ppc64)
=================================================================
System uname: 2.6.9-G5 ppc64 PPC970FX, altivec supported
Gentoo Base System version 1.4.16
Autoconf: 
Automake: 
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: 
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CFLAGS="-O3 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
CHOST="powerpc64-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb bitmap-fonts cups dvd f77 foomaticdb fortran gdbm gif gpm imlib jpeg libwww mitshm nls oggvorbis oss pam perl png ppc64 python readline sdl slang ssl tcpd truetype xv"


Here is the output of gcc-config-c -c:

powerpc64-unknown-linux-gnu-3.4.1
Comment 4 James Stockton 2005-01-05 12:31:25 UTC
try this make.conf....

CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
Comment 5 aaron cirillo 2005-01-06 09:34:34 UTC
I tried the new make.conf but still get the error
Comment 6 aaron cirillo 2005-01-08 12:02:27 UTC
I got the box to bootstrap by deleting the entire filesystem created by the stage tarball, then reextracted the tarball and used this make.conf:

CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -mtune=970"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
USE=""
ACCEPT_KEYWORDS="ppc64"
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2005-01-09 00:45:28 UTC
I mark this as FIXED. Please reopen if this happens again.
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2005-01-09 00:45:40 UTC
closing