Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8503 - glibc 2.2.5-r7 fails to compile
Summary: glibc 2.2.5-r7 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 11073 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-28 07:38 UTC by Alexander Holler
Modified: 2003-01-28 00:30 UTC (History)
3 users (show)

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


Attachments
the output of the emerge -u system (glibc) (output.txt,13.13 KB, text/plain)
2002-10-06 12:32 UTC, Thorsten Ebers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Holler 2002-09-28 07:38:32 UTC
Hi, glibc 2.2.5-r7 fails with gcc 2.9. If tried an update and a bootstrap. 
  
flags:  
----------------------- 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" 
USE="-3dnow -arts -avi -cups -encode -gtk -gpm -ipv6 -java -kde -mikmod -motif 
-mpeg -oggvorbis -opengl -oss -qt -qtmt -quicktime -sdl -svga -truetype -X 
-xmms -xv acl gd imap innodb ldap mmx nocardbus perl mysql postgres sasl sse 
tetex tiff zlib" 
--------------------- 
 
log: 
------------------- 
gcc greek-ccitt.c -c -O2 -O3 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -march=i686 -pipe   -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata -I.. 
-I../libio  -I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere 
-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/i686 
-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   -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DPIC -DSHARED   -o 
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.os 
In file included from 8bit-gap.c:33, 
                 from greek-ccitt.c:29: 
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.h:1: 
parse error before `-' 
... 
tons of parse errors 
... 
In file included from 8bit-gap.c:72, 
                 from greek-ccitt.c:29: 
../iconv/loop.c: In function `from_gap': 
../iconv/loop.c:282: `to_ucs4' undeclared (first use in this function) 
../iconv/loop.c:282: (Each undeclared identifier is reported only once 
../iconv/loop.c:282: for each function it appears in.) 
In file included from 8bit-gap.c:106, 
                 from greek-ccitt.c:29: 
../iconv/loop.c: In function `to_gap': 
../iconv/loop.c:282: `from_idx' undeclared (first use in this function) 
../iconv/loop.c:282: `from_ucs4' undeclared (first use in this function) 
../iconv/loop.c:282: warning: left-hand operand of comma expression has no 
effect 
../iconv/loop.c: In function `to_gap_single': 
../iconv/loop.c:384: `from_idx' undeclared (first use in this function) 
../iconv/loop.c:384: `from_ucs4' undeclared (first use in this function) 
../iconv/loop.c:384: warning: left-hand operand of comma expression has no 
effect 
In file included from 8bit-gap.c:110, 
                 from greek-ccitt.c:29: 
../iconv/skeleton.c: In function `gconv': 
../iconv/loop.c:384: warning: `res' might be used uninitialized in this 
function 
../iconv/loop.c:282: warning: `res' might be used uninitialized in this 
function 
make[2]: *** 
[/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.os] 
Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/iconvdata' 
make[1]: *** [iconvdata/others] Error 2 
make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5' 
make: *** [all] Error 2 
-----------------------
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-29 23:41:45 UTC
gcc-2.9 ?
Comment 2 Alexander Holler 2002-09-30 18:36:56 UTC
Actual gcc 2.95.3-r7 (glibc update from previous version and a bootstrap on 
fresh system fails). 
 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-30 18:49:17 UTC
You do not maybe have dev-libs/libiconv installed ?
Comment 4 Alexander Holler 2002-10-01 01:17:30 UTC
no libiconv installed 
Comment 5 Thorsten Ebers 2002-10-01 02:45:07 UTC
well i have different system wheer glibc fails to compile this one is from work.
At home i have a fail at another position and saying to much files open..
You will get anothe rpost with this in th enext days.




ibc-symbols.h     -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.2.5-r7/work/glibc-
2.2.5/buildhere/libio/fileops.o
gcc genops.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -
mcpu=i686 -pipe   -fexceptions   -I../include -I. -I/var/tmp/portage/glibc-
2.2.5-r7/work/glibc-2.2.5/buildhere/libio -I.. -I../libio  -
I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere -
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/i686 -
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   -D_LIBC_REENTRANT -
include ../include/libc-symbols.h     -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-
2.2.5-r7/work/glibc-2.2.5/buildhere/libio/genops.o
fileops.c:1111: warning: weak declaration of `_IO_do_write' after first use 
results in unspecified behavior
fileops.c: In function `strip':
fileops.c:236: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-
2.2.5/buildhere/libio/fileops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-
2.2.5/libio'
make[1]: *** [libio/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 129, Exitcode 2
!!! (no error message)

fw-pr-nbg01 root # gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/specs
Configured with: /var/tmp/portage/gcc-3.1.1-r1/work/gcc-3.1.1/configure --
prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --
host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --
with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-
threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --
enable-clocale=generic --enable-version-specific-runtime-libs --with-gxx-
include-dir=/usr/include/g++-v31 --with-local-prefix=/usr/local --enable-
shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.1.1
Comment 6 Alexander Holler 2002-10-03 20:00:10 UTC
I have exactly the same error (as shown at the top of the bug) with a 
bootstrap of a 1.4-rc1 (with gcc3). 
Comment 7 Thorsten Ebers 2002-10-06 12:32:25 UTC
Created attachment 4455 [details]
the output of the emerge -u system (glibc)

the output of the emerge -u system (glibc). I doubt having too many files open.
Ialso raised the limits to 6000 files.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-06 14:56:36 UTC
Had the same thing yesterday.  It was due to me having both linux-headers-2.4.18
and 2.4.19 installed.  Check that you only have 2.4.19 installed and let me
know ?
Comment 9 Thorsten Ebers 2002-10-07 02:20:39 UTC
Well I had only 2.4.19 headers installed. I have unmerged all headers and 
emerged again and now glibc compiled. Strange effect. Anyway, it helped. :-)
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-12 11:48:26 UTC
Seems like it could be SANDBOX related.  If it happens again, but you
cannot get it right, try:

 #FEATURES=-sandbox emerge glibc

and let me know if it worked.
Comment 11 Daniele Arduini 2002-10-23 07:22:46 UTC
I've resolved with these settings in /etc/make.conf:

MAKEOPTS=""
FEATURES="sandbox"

The default was:

MAKEOPTS="-j2"
FEATURES="sandbox ccache"

Maybe is a bug in make, because the glibc's build fail in a .h file which
contain Makefile dependencies !?
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-24 14:13:37 UTC
Anybody use ext3 with HTREE ?  Seems like this was the cause of this and
other problems for me.
Comment 13 Daniele Arduini 2002-11-06 07:37:59 UTC
> Anybody use ext3 with HTREE ?  Seems like this was the cause of this and
> other problems for me.

Seems like you guessed right!
Using the kernel from gentoo-sources-2.4.19-r9 without the ext3_htree patch
all long builds are ok now.
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-07 13:02:50 UTC
Great, marking as resolved.
Comment 15 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-28 14:03:06 UTC
*** Bug 11073 has been marked as a duplicate of this bug. ***