Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135328 - games-roguelike/scourge-0.13 does not compile with gcc 4.1.1 on AMD64
Summary: games-roguelike/scourge-0.13 does not compile with gcc 4.1.1 on AMD64
Status: VERIFIED 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: 117482
  Show dependency tree
 
Reported: 2006-06-02 16:28 UTC by Andrei Slavoiu
Modified: 2006-08-10 09:50 UTC (History)
0 users

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


Attachments
Fixes scourge-0.13 to compile on amd64 (scourge-0.13-amd64.patch,541 bytes, patch)
2006-06-11 23:44 UTC, Conway S. Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2006-06-02 16:28:29 UTC
make[3]: Entering directory `/var/tmp/portage/scourge-0.13/work/scourge-0.13/src/squirrel'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/..  -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2  -DDATA_DIR=\"/usr/share/games/scourge/data\"  -march=athlon64 -ggdb -O2 -pipe -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c sqclass.cpp
sqtable.h: In member function ‘SQHash SQTable::HashKey(const SQObjectPtr&)’:
sqtable.h:58: error: cast from ‘SQRefCounted*’ to ‘SQHash’ loses precision
make[3]: *** [sqclass.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/scourge-0.13/work/scourge-0.13/src/squirrel'
Comment 1 Andrei Slavoiu 2006-06-02 16:31:20 UTC
Portage 2.1_rc3-r5 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.0
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org ftp://ftp.lug.ro/gentoo ftp://gentoo.romnet.org/gentoo http://distfiles.gentoo.org"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common,-z,combreloc"
LINGUAS="ro eo"
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.ro.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib accessibility acl acpi alsa amr apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cddb cdparanoia clamav crypt css cups curl custom-cflags dba dga doc dpms dri dts dv dvd dvdr dvdread eds emboss encode erandom examples exif expat fbcon ffmpeg flac foomaticdb ftp gcj gd gif glut gmp gnokii gnutls gphoto2 gpm graphviz hal idn imagemagick ipv6 isdnlog java javascript jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kerberos kig-scripting kipi kqemu lcms ldap libcaca libclamav lirc live lm_sensors lua lzo lzw lzw-tiff mad matroska mbrola mikmod mjpeg mmap mng mp3 mp4 mpeg mppe-mppc musepack musicbrainz mythtv ncurses network nls nodrm nowin nptl nptlonly offensive ofx ogg openal openexr opengl pam pcre pdf pdflib perl php physfs png posix povray pppd python qt quicktime rdesktop readline reflection reiserfs rtc ruby samba sasl sdl session sms sockets speex spell spl sqlite ssl subversion svg symlink syslog sysvipc tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos visualization voice vorbis wifi wmf x264 xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid xvmc zeroconf zip zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_ro linguas_eo userland_GNU video_cards_radeon video_cards_v4l video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Matteo Azzali (RETIRED) gentoo-dev 2006-06-08 04:06:30 UTC
Seems to me that this bug is somewhat related to bug #134866 ,
the error is similar and it emerges fine on my machine, 
so I think this issue is or:

1) arch (amd64) related, or
2) depends on a gcc-4.1.1 patch (not vanilla) or 
3) completely gcc-4.1.1 unrelated : 
scourge-0.13 emerges fine here with gcc-4.1.1/vanilla. 

(further testing from systems amd64 with vanilla gcc-4.1.1 or x86 with latest gcc
may help).
Comment 3 Conway S. Smith 2006-06-11 23:44:53 UTC
Created attachment 88963 [details, diff]
Fixes scourge-0.13 to compile on amd64

Attaching a simple patch from scourge CVS that fixes this.
Comment 4 Andrei Slavoiu 2006-06-18 06:48:06 UTC
games-roguelike/scourge-0.14 is now in portage and it compiles fine. So this bug is actually "obsolete" :)
Comment 5 Andrei Slavoiu 2006-08-10 09:50:21 UTC
Closed.