Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159616 - 64-bit issue in angband-derived games-roguelike(s) +fix
Summary: 64-bit issue in angband-derived games-roguelike(s) +fix
Status: RESOLVED INVALID
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: 2007-01-01 04:59 UTC by Tuomas Nurmi
Modified: 2009-11-25 07:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tuomas Nurmi 2007-01-01 04:59:51 UTC
I emerged tome on my AMD64 based system, and while playing got constant error messages  for mostly lua-related issues. I compiled it from the original sources and started to look at the issue. 

I foun a piece of The documentation that says:

  OPTION: Define "L64" if a "long" is 64-bits.  See "h-types.h".
  The only such platform that angband is ported to is currently
  DEC Alpha AXP running OSF/1 (OpenVMS uses 32-bit longs).

This is clearly obsolete, since tome has been ported to AMD64 as well :-)

The original code below the documentation above is:

#if defined(__alpha) && defined(__osf__)
# define L64
#endif

Commenting out the if and endif clauses fixed the issue for me.

As a related note, this issue will probably affect other 64-bit architectures as well.






Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.18-gentoo-r4 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System version 1.12.6
Last Sync: Sun, 31 Dec 2006 10:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo "
LC_ALL="fi_FI.UTF-8"
LINGUAS="fi en"
MAKEOPTS="-j3"
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.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac accessibility acpi aim alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol ancode apache2 arts audiofile bash-completion berkdb bindist bitmap-fonts bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt cups dbus dga dio directfb dlloader dri dvb dvd dvdr dvdread eds elibc_glibc emboss encode exif fam ffmpeg firefox foomatic foomaticdb fortran gcj gd ggi gif glut gpm gstreamer gtk gtk2 hal iconv icq imagemagick imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdeenablefinal kernel_linux ladspa linguas_en linguas_fi lua lzw lzw-tiff mad madwifi maildir mcal memlimit mime mono mp3 mpeg mplayer msn musepack nas ncurses nis nls nptl nsplugin odbc ogg openal openexr opengl pam pcre pdf perl png posix pppd python qt3 qt4 quicktime rdesktop readline recode reflection ruby samba scanner sdl session sharedmem shorten sockets sox speex spell spl sqlite3 ssl svg symlink tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l vcd video_cards_radeon vorbis wifi wmf xine xml xorg xpm xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tuomas Nurmi 2007-04-13 19:31:14 UTC
This was originally just for tome, but:

It just occured to me, that since the bug is in a file descending from the angband, this probably affects other angband derived roguelikes as well.

-> Updated the description.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-11-25 07:18:49 UTC
If this is still an issue, file separate bugs with attached patches for any games affected.  thanks.  marking INVALID since it's not about a specific package.