Back to the Vavoom Forum Archives


Forum

[Fixed] Compile Bug [AMD64+Gentoo]

Wed, 28 Jun 2006 13:10:58

Phenax

Hello, I was really looking forward to playing this game, though I get an error while compiling. There is more, but it's all the same error!!
source/cl_local.h: In member function 'void VClientGameBase::eventStatusBarStartMap()':
source/cl_local.h:125: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventStatusBarDrawer(int)':
source/cl_local.h:129: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventStatusBarUpdateWidgets()':
source/cl_local.h:133: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventIintermissionStart()':
source/cl_local.h:137: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventStartFinale()':
source/cl_local.h:141: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventFinaleResponder(event_t*)':
source/cl_local.h:145: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:145: error: cast from 'event_t*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventDeactivateMenu()':
source/cl_local.h:149: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventMenuResponder(event_t*)':
source/cl_local.h:153: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:153: error: cast from 'event_t*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventMenuActive()':
source/cl_local.h:157: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventSetMenu(const char*)':
source/cl_local.h:161: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:161: error: cast from 'const char*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventMessageBoxDrawer()':
source/cl_local.h:165: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventMessageBoxResponder(event_t*)':
source/cl_local.h:169: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:169: error: cast from 'event_t*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventMessageBoxActive()':
source/cl_local.h:173: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventDrawViewBorder(int, int, int, int)':
source/cl_local.h:177: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'bool VClientGameBase::eventParseServerCommand(int)':
source/cl_local.h:181: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventUpdateParticle(particle_t*, float)':
source/cl_local.h:185: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:185: error: cast from 'particle_t*' to 'int' loses precision
source/cl_local.h: In member function 'void VClientGameBase::eventUpdateMobj(VEntity*, int, float)':
source/cl_local.h:189: error: cast from 'VClientGameBase*' to 'int' loses precision
source/cl_local.h:189: error: cast from 'VEntity*' to 'int' loses precision
make: *** [obj/am_map.o] Error 1

!!! ERROR: games-fps/vavoom-1.20 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  vavoom-1.20.ebuild, line 68:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Wed, 28 Jun 2006 17:06:55

Janis Legzdinsh

Compile it as 32-bit, as 64-bit is not supported. Hopefully next version will support it.
Wed, 28 Jun 2006 17:19:34

Phenax

I'm sorry, I don't know how to compile it for 32-bit? -m32 with gcc32? Do you hang out anywhere on IRC or something? Running Socket AM2 3500+ Orleans, nForce 570, GeForce 6600GT, Gentoo, 2.6.17.
Wed, 28 Jun 2006 20:16:21

scen

Hi Phenax, this is the same issue report in this topic of Gentoo Forums (are you the same guy? <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->). Like i said in that discussion, try to remove "extra" options from CFLAGS variable in /etc/make.conf like -msse3 or similar. The ebuild already compiles the package in "32bit" mode, if you're running a 64bit OS, but i think there are problems with some optimization flags of gcc (like -msse3, for example). If you verify other problems with this ebuild, i suggest you to add a reply in the bug (the ebuild URL above), so i'll fix the ebuild if necessary. [EDIT] i can't reproduce your errors, please follow the Gentoo Forums topic linked above or send me your
emerge --info
output! [/EDIT]
Thu, 29 Jun 2006 11:23:23

Phenax

Yes, that is me. Right now I'm trying to get zsnes-svn to work on my computer. x86_64 OS is annoying sometime, sorry, forgot to check that thread!! I think msse3 may be the problem aswell lol. Thankyou.
Thu, 29 Jun 2006 11:25:54

Phenax

Portage 2.1.1_pre1-r5 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-beyond1 x86_64)
=================================================================
System uname: 2.6.17-beyond1 x86_64 AMD Athlon(tm) 64 Processor 3500+
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.18.1
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.17
sys-devel/gcc-config: 2.0.0_rc1
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=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo "
MAKEOPTS="-j1"
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="amd64 X a52 aac alsa amazon avi bash-completion berkdb bitmap-fonts bzip2 cdinstall cdr cli crypt cups dbus dri dvd eds emboss emul-linux-x86 encode fbcon ffmpeg flac foomaticdb fortran ftp gif gpm gstreamer gtk gtk2 hal imagemagick imlib isdnlog jpeg lzw lzw-tiff mad memlimit mmap mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php png posix pppd python qt qt3 qt4 quicktime readline reflection sdl session speex spell spl ssl symlink tcpd tiff truetype-fonts type1-fonts unicode usb verbose videos vorbis wmf xine xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Same error with this.
Thu, 29 Jun 2006 11:53:16

scen

Uhm... i see you are using gcc-4*, maybe the problems is here. I auggest to switch temporary to gcc-3.4* (with gcc-config) and try to compile with that version.
Thu, 29 Jun 2006 12:16:15

Phenax

Alright, is there anyway I can catch you on IRC or something? It will take a few hours maybe to compile GCC, sloow <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Thu, 29 Jun 2006 12:32:15

scen

[quote="Phenax":3lbjx7n9]Alright, is there anyway I can catch you on IRC or something? [list:3lbjx7n9] [*:3lbjx7n9]Send me a PM if you want[/*:m:3lbjx7n9] [*:3lbjx7n9]Post a comment in the Gentoo Bugzilla Ebuild Bug (you have to register)[/*:m:3lbjx7n9] [*:3lbjx7n9]Post on Gamers & Players section of Gentoo Forums[/*:m:3lbjx7n9][/list:u:3lbjx7n9] <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> [quote="Phenax":3lbjx7n9]It will take a few hours maybe to compile GCC, sloow <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Are you sure? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> With an Athlon XP 2200+
# genlop -t gcc
* sys-devel/gcc

     Wed Mar 29 18:57:07 2006 >>> sys-devel/gcc-3.4.5-r1
       merge time: 21 minutes and 59 seconds.
With an Athlon64 3800+ (a few faster than your CPU)
# genlop -t gcc
* sys-devel/gcc

     Thu Jun 22 12:48:13 2006 >>> sys-devel/gcc-3.4.6-r1
       merge time: 17 minutes and 13 seconds.
<!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Thu, 29 Jun 2006 13:11:22

Phenax

Well, I was hoping on a more 'instant' answer, I'm very impatient but whatever. Sorry, I wrote that wrong. I won't be able to compile it for another two hours because I'm compiling two large things at the moment.
Fri, 30 Jun 2006 12:15:22

Phenax

It was fixed, I reformatted.. For some reason, after I reformatted things like Wine, Zsnes, etc (32-bit) started working again. Though I have another bug report to submit.
Fri, 30 Jun 2006 12:21:27

scen

Well done! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I think that one of the problems was your "unstable" ( ~amd64 ) installation of Gentoo Linux! Are you running now a stable system ( no "~amd64" in ACCEPT_KEYWORDS ) ?

Back to the Vavoom Forum Archives