On a PowerPC system with glibc-2.4 and gcc-4.1.1 (emerge info below), gparted (both 0.2.4 and 0.2.5) fail with this error: OperationResizeMove.cc: In member function 'virtual void GParted::OperationResizeMove::create_description()': OperationResizeMove.cc:49: error: call of overloaded 'abs(long long int)' is ambiguous /usr/include/stdlib.h:786: note: candidates are: int abs(int) /usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include/g++-v4/cstdlib:143: note: long int std::abs(long int) OperationResizeMove.cc:63: error: call of overloaded 'abs(long long int)' is ambiguous /usr/include/stdlib.h:786: note: candidates are: int abs(int) /usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include/g++-v4/cstdlib:143: note: long int std::abs(long int) ### Emerge info: Portage 2.1-r1 (default-linux/ppc/ppc32/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-rc6 ppc) ================================================================= System uname: 2.6.17-rc6 ppc 7447A, altivec supported Gentoo Base System version 1.12.1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X alsa apache2 arts berkdb bitmap-fonts bonobo cdr cli crypt cups dlloader dri dvd eds emboss encode esd fortran gdbm gif gnome gpm gstreamer gtk gtkhtml ipv6 isdnlog jpeg kde ldap libg++ libwww mad mikmod mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_radeon video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 91190 [details, diff] abs -> llabs patch This patch replaces std::abs with llabs which fixes the problem for me, but I'm not sure it's the best fix. Comments?
let's see what upstream thinks ;)
Hola, the 'abs' has been removed in CVS, so my advice is to wait for the new release (Which shouldn't take too long :) ) btw, usage of llabs is (afaik) harmless and correct :)
Cool. Simon, do you mind if we include this patch for both versions currently in portage then? I think Pylon mentioned that we're building it for the release media for 2006.1.
i fixed it for 0.2.5. I didn't backport the patch because only ppc uses these ricer-like gcc and glibc versions, and you could just as easily mark 0.2.5 stable :)
Nah, all of you other arches are just behind the times. :) I've marked 0.2.5 ppc stable, so I'm closing the bug. Thanks!