Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38782 - Compiling glibc-2.3.2-r9 fails at iofclose.c
Summary: Compiling glibc-2.3.2-r9 fails at iofclose.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-19 23:43 UTC by poterolampare
Modified: 2005-07-23 12:05 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 poterolampare 2004-01-19 23:43:39 UTC
When I try to update or install packages on my G3 ibook, compilation of new glibc fails.

Reproducible: Always
Steps to Reproduce:
1.Make sure you have ACCEPT_KEYWORDS="ppc ~ppc" (not sure if this is needed)
2.Run "emerge -u world" or "emerge somepackage"
3.New glibc is built first, wait and see.
Actual Results:  
Compilation fails:

.....

gcc iofclose.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -mcpu=750 -pipe -mnew-mnemonics   -fexceptions   -I../include
-I. -I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libio -I..
-I../libio -I../nptl
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere
-I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf
-I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../nptl/sysdeps/unix/sysv/linux/powerpc -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv
-I../nptl/sysdeps/unix -I../nptl/sysdeps/powerpc
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32
-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/powerpc32/fpu
-I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32
-I../sysdeps/powerpc/soft-fp -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-lib/powerpc-unknown-linux-gnu/3.2.3/include -isystem
/lib/modules/2.6.0-test11-benh2/build/include -D_LIBC_REENTRANT
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -o
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libio/iofclose.o -MD
-MP -MF
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libio/iofclose.o.dt
iofclose.c: In function `_IO_new_fclose':
iofclose.c:60: `_IO_acquire_lock_needs_exceptions_enabled' undeclared (first use
in this function)
iofclose.c:60: (Each undeclared identifier is reported only once
iofclose.c:60: for each function it appears in.)
iofclose.c: At top level:
iofclose.c:66: parse error before "while"
iofclose.c:74: parse error before '->' token
iofclose.c:74: warning: type defaults to `int' in declaration of
`__gconv_release_step'
iofclose.c:74: warning: function declaration isn't a prototype
iofclose.c:74: conflicting types for `__gconv_release_step'
../iconv/gconv_int.h:200: previous declaration of `__gconv_release_step'
iofclose.c:74: warning: data definition has no type or storage class
iofclose.c:75: parse error before '->' token
iofclose.c:75: warning: type defaults to `int' in declaration of
`__gconv_release_step'
iofclose.c:75: warning: function declaration isn't a prototype
iofclose.c:75: warning: data definition has no type or storage class
iofclose.c:86: warning: type defaults to `int' in declaration of `free'
iofclose.c:86: warning: parameter names (without types) in function declaration
iofclose.c:86: conflicting types for `free'
../stdlib/stdlib.h:569: previous declaration of `free'
iofclose.c:86: warning: data definition has no type or storage class
iofclose.c:87: parse error before '}' token
make[2]: ***
[/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libio/iofclose.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/libio'
make[1]: *** [libio/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2'
make: *** [all] Error 2
                                                                               
                                                               
!!! ERROR: sys-libs/glibc-2.3.2-r9 failed.
!!! Function src_compile, Line 495, Exitcode 2
!!! (no error message)
                                                                               
                                                               


Portage 2.0.50_pre16 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r3,
2.6.0-test11-benh2)
=================================================================
System uname: 2.6.0-test11-benh2 ppc 750FX
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/lib/pbbuttonsd
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acl apache2 apm auctex autofs berkdb bidi canna caps cdr cjk clisp
cmucl crypt cups dillo directfb dnd doc dv dvb dvd dvdr encode esd fbcon fbdev
ffmpeg firebird flac flash foomaticdb gcl gd gdbm gif ginac glut gmtfull gmttria
gnome gnome-libs gpm gstreamer gtk gtk2 imap imlib ipv6 java javascript jbig
jikes jpeg kakasi kerberos krb4 ldap libwww maildir md5sum mikmod mitshm motif
mozilla mozinterfaceinfo moznocompose moznoirc moznomail mpeg mysql nas ncurses
nls nptl oggvorbis opengl oss pam parse-clocks pcap pdflib perl php plotutils
png ppc python qhull quicktime radeon readline ruby samba sasl sdl slang slp
spell ssl tcltk tcpd tetex tiff transcode truetype unicode usb vim-with-x wmf
wxwin wxwindows xfs xine xinerama xml xml2 xmms xv xvid zlib zvbi"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-21 10:50:23 UTC
Guys, could this be an header problem?  I do not have a ppc handy to test :(
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-21 10:50:41 UTC
Kernel header that is ..
Comment 3 Alwyn Schoeman 2004-01-26 06:16:21 UTC
I get the same on x86 with kernel 2.6.1 gentoo-dev-sources and NPTL flag set.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz
Gentoo Base System version 1.4.3.10
distcc[4136] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/emc2/local/portage/packages"
PORTAGE_TMPDIR="/emc2"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/emc2/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aavm alsa apache2 apm arts avi berkdb crypt cups dvd encode esd evms2 foomaticdb gdbm ggi gif gnome gpm gtk gtk2 guile i8x0 imap imlib java jpeg kde ldap libg++ libwww mad mozilla mpeg music ncurses nls nptl oci8 oggvorbis opengl oss pam pcmcia pdflib perl png postgres python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-26 15:49:38 UTC
I see you are using gcc-3.2.3 with nptl - both of you actually.  Any possibility
to make a tbz2 of 3.2.3, and merge 3.3.2-r6, and try with that Alwyn?
Comment 5 Alwyn Schoeman 2004-01-26 20:11:06 UTC
Ok,

Upgraded gcc to 3.3.2-r5, upgraded glibc to sys-libs/glibc-2.3.3_pre20040117.

Working now, except I had a minor glitch of X not wanting to start up due to
an unknown exception in my i810 driver.

Tried re-emerging xfree, compile failed, but on reboot X worked suddenly.
Also think top and ps not correct in determining statistics.

Weird.

BTW. NPTL rules :)
Comment 6 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-08-19 18:45:13 UTC
removing ppc from cc
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2005-06-07 19:33:09 UTC
assuming fixed in latest builds. 
Comment 8 Łukasz Mierzwa 2005-07-23 12:05:57 UTC
I have the same problem:

.5/work/build-default-i686-pc-linux-gnu-nptl/libio/filedoalloc.o
i686-pc-linux-gnu-gcc iofclose.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -
finline-limit=2000 -fstack-protector-all -march=i686 -mpreferred-stack-boundary=2  -g0 -O99 -fomit-
frame-pointer -D__USE_STRING_INLINES    -I../include -I. -I/var/tmp/portage/glibc-2.3.5/work/build-
default-i686-pc-linux-gnu-nptl/libio -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.5/work/build-default-
i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/
sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/
sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/
unix -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../nptl/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 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-
20050130/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../
include/libc-symbols.h  -DPIC     -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.3.5/work/build-default-
i686-pc-linux-gnu-nptl/libio/iofclose.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5/work/build-default-i686-
pc-linux-gnu-nptl/libio/iofclose.o.dt -MT /var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-
nptl/libio/iofclose.o
iofclose.c: In function `_IO_new_fclose':
iofclose.c:60: error: `_IO_acquire_lock_needs_exceptions_enabled' undeclared (first use in this 
function)
iofclose.c:60: error: (Each undeclared identifier is reported only once
iofclose.c:60: error: for each function it appears in.)
iofclose.c:66: warning: no return statement in function returning non-void
iofclose.c: At top level:
iofclose.c:66: error: syntax error before "while"
iofclose.c:75: error: syntax error before '->' token
iofclose.c:75: warning: type defaults to `int' in declaration of `__gconv_release_step'
iofclose.c:75: warning: function declaration isn't a prototype
iofclose.c:75: error: conflicting types for `__gconv_release_step'
../iconv/gconv_int.h:204: error: previous declaration of `__gconv_release_step'
iofclose.c:75: warning: data definition has no type or storage class
iofclose.c:76: error: syntax error before '->' token
iofclose.c:76: warning: type defaults to `int' in declaration of `__gconv_release_step'
iofclose.c:76: warning: function declaration isn't a prototype
iofclose.c:76: warning: data definition has no type or storage class
iofclose.c:77: error: syntax error before "void"
iofclose.c:88: warning: type defaults to `int' in declaration of `free'
iofclose.c:88: warning: parameter names (without types) in function declaration
iofclose.c:88: error: conflicting types for `free'
../stdlib/stdlib.h:597: error: previous declaration of `free'
iofclose.c:88: warning: data definition has no type or storage class
iofclose.c:89: error: syntax error before '}' token
make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libio/iofclose.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/libio'
make[1]: *** [libio/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [all] Error 2

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

I try to upgrade to glibc 2.3.5 but I can't, 2.3.5-r1 also have this problem.

Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-hardened-
r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Celeron (Mendocino)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
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="-O2 -march=i686 -fomit-frame-pointer -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 atm bash-completion berkdb chroot clamav crypt curl dlloader erandom gd gdbm gif 
hardened hardenedphp imap libclamav libwww logrotate memlimit mmx mysql ncurses nls nptl nptlonly 
oav pam pam_chroot perl pic pie png postfix python quotas readline samba sasl skey slang snortsam 
spamassassin spell ssl symlink tcpd tiff underscores userlocales virus-scan x86 xml2 zlib linguas_pl 
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS