Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206127 - dev-games/kyra-2.0.7 fails to build on amd64
Summary: dev-games/kyra-2.0.7 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: 2008-01-16 19:17 UTC by Evil Compile Person
Modified: 2009-08-13 18:50 UTC (History)
1 user (show)

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


Attachments
Patch fixing amd64 compilation issues (kyra-2.0.7-amd64.patch,1.08 KB, patch)
2008-09-30 17:22 UTC, Arttu Valo
Details | Diff
Patch fixing stuff for gcc-4.3 (kyra-2.0.7-gcc43.patch,661 bytes, patch)
2008-09-30 17:23 UTC, Arttu Valo
Details | Diff
Old ebuild now using the two patches (kyra-2.0.7-r1.ebuild,842 bytes, text/plain)
2008-09-30 17:25 UTC, Arttu Valo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-01-16 19:17:25 UTC
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"Kyra\" -DPACKAGE_TARNAME=\"kyra\" -DPACKAGE_VERSION=\"2.0.7\" "-DPACKAGE_STRING=\"Kyra 2.0.7\"" -DPACKAGE_BUGREPORT=\"kyra-general@lists.sourceforge.net\" -DPACKAGE=\"Kyra\" -DVERSION=\"2.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_VPRINTF=1 -DHAVE_ATEXIT=1 -DHAVE_MEMSET=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -I. -I. -O2 -pipe -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/X11R6/include -c button.cpp -MT button.lo -MD -MP -MF .deps/button.TPlo  -fPIC -DPIC -o .libs/button.lo
In file included from ../gui/../engine/image.h:72,
                 from ../gui/../engine/sprite.h:72,
                 from ../gui/../engine/imagetree.h:81,
                 from ../gui/../engine/engine.h:75,
                 from ../gui/widget.h:78,
                 from button.h:72,
                 from button.cpp:70:
../gui/../engine/imnode.h: In member function 'U32 KrImNode::GetUserDataU32()':
../gui/../engine/imnode.h:291: error: cast from 'void*' to 'U32' loses precision
make[1]: *** [button.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-games/kyra-2.0.7/work/kyra/gui'
make: *** [all-recursive] Error 1
 *
 * ERROR: dev-games/kyra-2.0.7 failed.

Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Tue, 15 Jan 2008 06:00:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
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 --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Arttu Valo 2008-09-30 17:22:27 UTC
Created attachment 166845 [details, diff]
Patch fixing amd64 compilation issues

Version 2.0.7 of Kyra had some (apparently) dangling *U32 "convenience" methods, which were used just once -- in the tests(?!). This patch should fix that. Only tested compilation success, though.
Comment 2 Arttu Valo 2008-09-30 17:23:57 UTC
Created attachment 166847 [details, diff]
Patch fixing stuff for gcc-4.3

Regular missing bits added, which cause trouble with gcc 4.3 compilations: now including cstdlib and cstring in couple strategic spots. Compiles fine, no idea whether it works correctly with kyra-using software.
Comment 3 Arttu Valo 2008-09-30 17:25:27 UTC
Created attachment 166849 [details]
Old ebuild now using the two patches

Just bumped year of copyright and added epatch-lines for both new patches attached above.
Comment 4 Arttu Valo 2008-09-30 17:28:52 UTC
Attached stuff made compilation of kyra-2.0.7 possible on my amd64 machine. I have no idea whether it really works, but as can be seen from the patches, the changes are near-cosmetic. However, I'm off to see if I can get the only kyra-using piece of software in portage to compile on amd64 as well (that would be gemhun).
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-08-13 18:50:06 UTC
Kyra 2.1.3_p20090814 builds and is latest with 35K patch. ;-)