Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96814 - games-roguelike/scourge-0.10 fails to build on amd64
Summary: games-roguelike/scourge-0.10 fails to build on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-22 16:10 UTC by David Leverton
Modified: 2005-06-22 17:20 UTC (History)
1 user (show)

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


Attachments
patch (scourge.patch,514 bytes, patch)
2005-06-22 16:12 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2005-06-22 16:10:32 UTC
Scourge 0.10 fails to build on AMD64 with the following error:
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./gui -I./events -I./rpg  -DBR_PTHREAD=0 -DTUXRACER_NO_ASSERT=1 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2  -DDATA_DIR=\"/usr/share/games/scourge/data\"  -march=athlon64 -pipe -fstack-protector -fomit-frame-pointer -O2 -O2 -Wall -Wno-deprecated -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_REENTRANT -c effect.cpp
effect.cpp: In member function `void Effect::drawParticle(ParticleStruct*)':
effect.cpp:523: error: call of overloaded `abs(GLfloat)' is ambiguous
/usr/include/gentoo-multilib/amd64/stdlib.h:778: note: candidates are: int abs(int)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3/cstdlib:153: note:                 long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3/cstdlib:123: note:                 long int std::abs(long int)
make[3]: *** [effect.o] Error 1

Patch coming....

emerge info:
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun  9 2005, 17:52:27)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -pipe -fstack-protector -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/lib/mozilla/defaults/pref /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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -pipe -fstack-protector -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.easynet.nl/mirror/gentoo/"
LINGUAS="en_GB"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acl acpi alsa apache2 arts avi berkdb bitmap-fonts cairo cdr crypt curl dvd emacs esd flac font-server fortran gdbm gif gtk gtk2 hal imagemagick imlib java jp2 jpeg kde lcms libcaca libwww lzw lzw-tiff mad mikmod mng motif mozillamp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png postgres python qt readline ruby samba sdl speexssl tcltk tcpd tetex theora tiff timidity truetype truetype-fonts type1-fonts usb userlocales vorbis wifi xine xml2 xmms xpmxrandr xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 David Leverton 2005-06-22 16:12:39 UTC
Created attachment 61743 [details, diff]
patch

This does the same as all the other calls to abs() in the erroring file.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-06-22 17:20:57 UTC
fixed.  Thanks for the patch and bug report.