Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139638 - gparted fails to compile
Summary: gparted fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Simon Stelling (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 22:05 UTC by Joe Jezak (RETIRED)
Modified: 2006-07-12 06:31 UTC (History)
1 user (show)

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


Attachments
abs -> llabs patch (ResizeMove.patch,796 bytes, patch)
2006-07-07 22:07 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Jezak (RETIRED) gentoo-dev 2006-07-07 22:05:43 UTC
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
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2006-07-07 22:07:15 UTC
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?
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-07-11 13:27:19 UTC
let's see what upstream thinks ;)
Comment 3 plors 2006-07-11 14:20:38 UTC
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 :)
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2006-07-11 14:42:56 UTC
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.
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-07-12 03:04:18 UTC
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 :)
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2006-07-12 06:31:47 UTC
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!