checking for long double... yes checking size of long double... 8 running configure fragment for sysdeps/powerpc/powerpc32/elf checking for powerpc32 TLS support... yes running configure fragment for sysdeps/unix/sysv/linux/powerpc checking whether powerpc-unknown-linux-gnu-gcc -mcpu=7400 -pipe -freorder-blocks -O2 -mlong-double-128 uses IBM extended format... no checking whether powerpc-unknown-linux-gnu-gcc -mcpu=7400 -pipe -freorder-blocks -O2 supports -mabi=ibmlongdouble... no configure: error: this configuration requires -mlong-double-128 IBM extended format support !!! ERROR: sys-libs/glibc-2.4 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile glibc-2.4.ebuild, line 1263: Called toolchain-glibc_src_compile glibc-2.4.ebuild, line 258: Called glibc_do_configure 'compile' !!! failed to configure glibc !!! If you need support, post the topmost build error, and the call stack if relevant. merge --info Portage 2.1_pre5-r4 (default-linux/ppc/2004.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.13-gentoo-r4 ppc) ================================================================= System uname: 2.6.13-gentoo-r4 ppc 7455, altivec supported Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=7400 -maltivec -mabi=altivec -pipe" 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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=7400 -maltivec -mabi=altivec -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://212.219.56.152/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.131/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.162/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.146/sites/www.ibiblio.org/gentoo/ ftp://ftp.ankara.edu.tr/gentoo/ http://adelie.polymtl.ca/ ftp://mirror.pacific.net.au/linux/Gentoo" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X alsa apache2 arts berkdb bidi bitmap-fonts cdr chipcard crypt cups dri dvd emboss encode faad font-server foomaticdb fortran gd gif gnome gpm gtk gtk2 gvlc hbci imlib ipv6 jpeg kde kvlc libwww matroska motif mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin oggvorbis opengl oss pam pdflib perl php php_mod png ppds python qt quotes readline spell ssl tcpd truetype truetype-fonts type1-fonts unicode usb wxgtk1 wxwindows xml2 xprint xv zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_ati128" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
dropped ~ppc KEYWORDS as i only tested with gcc-4.1.0 i'll leave it up to the ppc team to see if they want to go the route of adding 'ppc? ( >=sys-devel/gcc-4 )' to the DEPEND ...
(In reply to comment #1) > dropped ~ppc KEYWORDS as i only tested with gcc-4.1.0 > > i'll leave it up to the ppc team to see if they want to go the route of adding > 'ppc? ( >=sys-devel/gcc-4 )' to the DEPEND ... > Yeah, I've build glibc-2.4 with gcc-4.1.0 just now like SpanKY said.
since the dep is >=gcc-4.1 we have to wait to have it unmasked. expected time within the next week, I hope
The problem is not only related to gcc 3.x. I give a try to glibc 2.4 last weekend and it seems it require -mlong-double-128 or -mabi=ibmlongdouble. My current system uses gcc 4.0.2 and this option is not valid for this version too, but it works perfectly with gcc 4.1. Anyway I doesn't recomended to compile glibc using gcc 4.1 when system default compiler is diffrent because it cause some ugly problems (For example __guard symbol breackage, but this can be easy solved be recompiling broken package) I will try 4.0.3 maybe this version supports -mlong-double-128 IBM extended format.
ive updated the glibc-2.4 ebuild to require gcc-4.0 or better
*** Bug 131171 has been marked as a duplicate of this bug. ***
Can someone please contribute a formal solution to this ? I have tried adding "-mabi=ibmlongdouble" xor "-mlong-double-128" to my /etc/make.conf CFLAGS, but neither addition causes the configure to work properly. I have [ebuild R ] sys-devel/gcc-4.1.1 USE="altivec fortran gtk nls -bootstrap -build -doc -gcj -hardened -ip32r10k -mudflap -multislot -nocxx -objc -objc++ -objc-gc -vanilla" 0 kB [ebuild U ] sys-libs/glibc-2.4-r3 [2.3.6-r3] USE="nls nptl nptlonly -build -glibc-omitfp -hardened -profile" 0 kB I don't understand why this is WONTFIX ... Are PPC users not privileged to upgrade to glibc-2.4 ? I mean, if glibc-2.4 doesn't work, mask it, but please don't refuse to fix breakage ...
The formal solution is to emerge gcc-4.1.1 (our stable compiler) and then switch to it with gcc-config (or eselect). glibc-2.4 *must* be compiled with gcc-4, we won't be supporting compiling it with gcc-3.4, sorry. It looks like you haven't switched compilers yet, just because it's installed doesn't mean that it's the current compiler. Good luck!
Actually, I was messing around with this, and it seemed that the problem was that crossdev was incorrectly trying to compile glibc with the *host* gcc, rather than the cross compiler. I ended up running crossdev in stages, for glibc doing: CC=powerpc-unknown-linux-gnu-gcc sudo crossdev -s3 powerpc I did do this with gcc 4.1.1, not sure if this will work with 3.x. Note that just using 4.1.1 as the default system compiler and running crossdev as you'd expect it should work (just doing a stage 4 x-compile from the beginning) did NOT work, and failed with the same "this configuration requires..." error when trying to build glibc.
you probably did something wrong then, `crossdev powerpc` works fine for me