when i try to update glibc to20041102-r1, it segfaults: powerpc-unknown-linux-gnu-gcc gb2312.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mabi=altivec -mcpu=7400 -pipe -mnew-mnemonics -fpic -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata -I.. -I../libio -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -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/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../libidn/sysdeps/unix -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/powerpc-unknown-linux-gnu/3.4.3-20050110/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc -o /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/gb2312.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/gb2312.os.dt -MT /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/gb2312.os powerpc-unknown-linux-gnu-gcc euc-cn.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mabi=altivec -mcpu=7400 -pipe -mnew-mnemonics -fpic -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata -I.. -I../libio -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -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/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../libidn/sysdeps/unix -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/powerpc-unknown-linux-gnu/3.4.3-20050110/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc -o /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/euc-cn.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/euc-cn.os.dt -MT /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/euc-cn.os powerpc-unknown-linux-gnu-gcc cns11643l1.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mabi=altivec -mcpu=7400 -pipe -mnew-mnemonics -fpic -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata -I.. -I../libio -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -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/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../libidn/sysdeps/unix -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/powerpc-unknown-linux-gnu/3.4.3-20050110/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc -o /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643l1.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643l1.os.dt -MT /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643l1.os In file included from ../socket/sys/socket.h:27, from ../include/sys/socket.h:2, from ../inet/netinet/in.h:24, from ../include/netinet/in.h:3, from ../resolv/resolv.h:57, from ../include/resolv.h:11, from ../linuxthreads/descr.h:19, from ../linuxthreads/sysdeps/powerpc/tls.h:138, from ../include/tls.h:6, from ../sysdeps/generic/dl-lookupcfg.h:26, from ../include/link.h:37, from ../include/dlfcn.h:3, from euc-cn.c:21: ../include/sys/uio.h:5: warning: `altivec' attribute ignored ../include/sys/uio.h:7: warning: `altivec' attribute ignored ../include/sys/uio.h:9: warning: `altivec' attribute ignored ../include/sys/uio.h:11: warning: `altivec' attribute ignored powerpc-unknown-linux-gnu-gcc cns11643.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mabi=altivec -mcpu=7400 -pipe -mnew-mnemonics -fpic -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata -I.. -I../libio -I/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -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/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../libidn/sysdeps/unix -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/powerpc-unknown-linux-gnu/3.4.3-20050110/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc -o /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643.os.dt -MT /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/cns11643.os ../iconv/skeleton.c: In function `gconv': ../iconv/skeleton.c:801: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. The bug is not reproducible, so it is likely a hardware or OS problem. make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/iconvdata/euc-cn.os] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/iconvdata' make[1]: *** [iconvdata/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed. !!! Function src_compile, Line 739, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge glibc 2. 3. Actual Results: it segfaultet on merging Expected Results: it should have finished merging... Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 ppc) ================================================================= System uname: 2.6.10-gentoo-r6 ppc 7410, altivec supported Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 09:08:41)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.6.3, 1.5, 1.9.5 sys-devel/binutils: 2.15.90.0.3-r4 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache cvs distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://gentoo-distfiles.local.nil.nul/gentoo-portage" USE="X aalib aim alsa altivec apache2 arts bash-completion berkdb bidi bitmap-fonts bluetooth bonobo bzip2 cddb cdr cdrom cjk clamav crypt cups curl dba directfb divx4linux dlloader dmx dvd dvdr dvdread eep emboss escreen esd etwin fam fbcon fla flac font-server foomaticdb fortran ftp gd gdbm gif gimpprint gpm gstreamer gtk gtk2 hardened hardenedphp iconv icq imagemagick imap imlib ipv6 ipv6arpa irda irmc jabber jack jack-tmpfs java jpeg junit ldap libwww mad maildir motif mozilla mp3 mpeg mpeg4 msn mysql ncurses nethack nls odbc oggvorbis opengl oscar pam pcmcia pda perl php png pnp postgres ppc ppds psyco pthreads python qt quicktime radeon readline samba screenshot sdl session slang soap spell sqlite ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1 type1-fonts unicode vhosts vim-with-x wmf xine xinerama xml xml2 xmms xprint xsl xv xvid yahoo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
do you have preemption enabled in the kernel? If yes please use a kernel w/out that feature. It has proven to cause those inreproducible bugs.
its not enabled i think... but i have now another problem... no matter what kernel i select, i boot with kernel 2.6.10-gentoo-r6... thats very strange... i shall try compiling 2.6.11-gentoo-r4 once more and try to boot it.. i will give a report after that...
booting the right kernel is fixed... now trying merging glibc... would be great if it is fixed with this kernel.. kernel is 2.6.11-gentoo-r4
this time its another hook, this time it stops on /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/libc.a(__longjpg.o)(.text+0xe): In function '__longjmp@@GLIBC_2.3.4': /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/libc.a(setjmp.o)(.text+0xb2): In function '__sigsetjmp@@GLIBC_2.3.4': : undefined reference to '_rtld_global_ro' collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/elf/sln] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/elf' make[1]: *** [elf/other] Error 2 make[1]: Leaving directory '/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3' make: *** [all] Error 2
sorry, i didn't mention, i removed that hardened useflag...
I notice from your emerge info that you have kernel 2.4 headers not 2.6. This, I suspect, may be the source of your problem. Can you update your headers and retry?
upgrading linuxheaders didn't change a thing... compiling with vanilla-gcc is a workaround, but not a solution...
For the second problem look at bug #78951
What's the state of this bug?
i am compiling on vanilla now... and with vanilla i can compile... with hardened gcc i cant... thats a workaround and no solution :) i could switch back to hardened gcc, if you ask me to :)
Is this still a problem with glibc-2.3.5-r1
Is this still an issue with the newest stable gcc/glibc?
This fails when using the hardened compiler to build the glibc. It's semi expected as we have never done a proper port to glibc/ppc.
So we can just say hardened on ppc is unsupported and close all bugs about it with WONTFIX? ;-)
that's really the ppc's team call, not toolchain
(In reply to comment #14) > So we can just say hardened on ppc is unsupported and close all bugs about it > with WONTFIX? ;-) It's just some versions of libc. I've got a fully hardened ppc box@OSU.. Only glibc pukes on itself. More or less as far as anybody can tell glibc is just better off built with a vanilla toolchain.
(In reply to comment #14) > So we can just say hardened on ppc is unsupported and close all bugs about it > with WONTFIX? ;-) Oh and for what it's worth. ppc+uclibc+hardened works like a champ..
So...is this invalid or cantfix?
dunno. I dont think it's INVALID or CANTFIX. It's more or less LATER. Personaly I'd say just reassign to hardened@ and not have our normal ppc@ team worry about it. Somebody on hardened will dupe it to one of the many other bugs filed about ppc+glibc+hardened failing.
reassigning to hardened as per solars suggestion.
Now for anybody that wants to work around this.. Just compile glibc with a set of vanilla set of specs. I've been running a ppc+hardeend+glibc box for many months now doing just that. Can't say I'm all that personally interested in glibc support however as I personally find uclibc+ppc+hardend much more interesting.
*** This bug has been marked as a duplicate of 78951 ***