First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 139638
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Simon Stelling (RETIRED) <blubb@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joe Jezak <josejx@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ResizeMove.patch abs -> llabs patch patch Joe Jezak 2006-07-07 22:07 0000 796 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 139638 depends on: Show dependency tree
Show dependency graph
Bug 139638 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-07 22:05 0000
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 From Joe Jezak 2006-07-07 22:07:15 0000 -------
Created an attachment (id=91190) [edit]
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 From Simon Stelling (RETIRED) 2006-07-11 13:27:19 0000 -------
let's see what upstream thinks ;)

------- Comment #3 From plors 2006-07-11 14:20:38 0000 -------
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 From Joe Jezak 2006-07-11 14:42:56 0000 -------
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 From Simon Stelling (RETIRED) 2006-07-12 03:04:18 0000 -------
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 From Joe Jezak 2006-07-12 06:31:47 0000 -------
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!

First Last Prev Next    No search results available      Search page      Enter new bug