This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12437] New: glibc-2.3.2 drand48_r.c:30: internal compile error w/gcc-3.4-20030924
- From: "yoktocode at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2003 06:49:43 -0000
- Subject: [Bug c/12437] New: glibc-2.3.2 drand48_r.c:30: internal compile error w/gcc-3.4-20030924
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12437
Summary: glibc-2.3.2 drand48_r.c:30: internal compile error
w/gcc-3.4-20030924
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yoktocode at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org,yoktocode at yahoo dot
com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
During a Toolchain build of binutils-030925, gcc-3.4-20030924, linux2.4.22, &
glibc-2.3.2 on a Athlon PC running RedHat 8.0 "everything", the following error
occurs during the glibc-2.3.2 "make" execution:
gcc -B/tools/bin/ drand48_r.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g -fPIC -I../include -I.
-I/bz/glibc-build/stdlib -I.. -I../libio -I/bz/glibc-build
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-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/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4/include -isystem
/tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC
-DSHARED -o /bz/glibc-build/stdlib/drand48_r.os
drand48_r.c:30: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [/bz/glibc-build/stdlib/drand48_r.os] Error 1
make[2]: Leaving directory `/mnt/lfs/bz/glibc-2.3.2/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/bz/glibc-2.3.2'
make: *** [all] Error 2
To get to this issue the following is executed as a non-privilaged user:
cat > ~/.bash_profile << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:$PATH
export LFS LC_ALL PATH
EOF
source ~/.bash_profile
cd /bz &&
tar xjfp binutils-030925.tar.bz2 &&
cd binutils-030925 &&
mkdir ../binutils-build &&
cd ../binutils-build &&
../binutils-030925/configure \
--prefix=/tools --disable-nls &&
make configure-host &&
make LDFLAGS="-all-static" &&
make install &&
make -C ld clean &&
make -C ld LIB_PATH=/tools/lib &&
cd /bz &&
tar xjfp gcc-core-3.4-20030924.tar.bz2 &&
cd gcc-3.4-20030924 &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.4-20030924/configure --prefix=/tools \
--with-local-prefix=/tools \
--disable-nls --enable-shared \
--enable-languages=c &&
make BOOT_LDFLAGS="-static" bootstrap &&
make install &&
ln -sf gcc /tools/bin/cc &&
cd /bz &&
rm -rf gcc-3.4-20030924 gcc-build &&
tar xjfp linux-2.4.22.tar.bz2 &&
cd linux-2.4.22 &&
make mrproper &&
make include/linux/version.h &&
make symlinks &&
mkdir /tools/include/asm &&
cp -R include/asm/* /tools/include/asm &&
cp -R include/asm-generic /tools/include &&
cp -R include/linux /tools/include &&
touch /tools/include/linux/autoconf.h &&
cd /bz &&
rm -rf linux-2.4.22 &&
mkdir /tools/etc &&
touch /tools/etc/ld.so.conf &&
tar xjfp glibc-2.3.2.tar.bz2 &&
cd glibc-2.3.2 &&
tar xjfp ../glibc-linuxthreads-2.3.2.tar.bz2 &&
bzcat ../glibc-2.3.2-sscanf-1.patch.bz2 | patch -Np1 &&
mkdir ../glibc-build &&
cd ../glibc-build &&
../glibc-2.3.2/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--with-headers=/tools/include \
--with-binutils=/tools/bin \
--without-gd &&
make &&
echo "This point never reached... this bug kills above make"
Links to source:
- GCC, Binutils, & Glibc tar.bz2 files are obtained from gnu.org mirrors.
- Linux-2.4.22.tar.bz2 is obtained from kernel.org.
- glibc-2.3.2-sscanf-1.patch.bz2 is obtained from www.linuxfromscratch.org.