games-emulation/gngeo-0.7 does not compile on AMD64 for me. Reproducible: Always Steps to Reproduce: 1. emerge -v gngeo Actual Results: make[3]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src/ym2610' Making all in star make[3]: Entering directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src/star' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT cpudebug.o -MD -MP -MF .deps/cpudebug.Tpo -c -o cpudebug.o cpudebug.c x86_64-pc-linux-gnu-gcc ./star.c -o mkstar ./mkstar _star.asm -hog STARSCREAM version 0.26c Generating "_star.asm" with the following options: * CPU type: 68000 (24-bit addresses) * Identifiers begin with "s68000" * Stack calling conventions * Hog mode: On Decoding instructions: 012345mv -f .deps/cpudebug.Tpo .deps/cpudebug.Po 6789ABCDEF done Building table: done routine_counter = 7243 ./strip_ _star.asm star.asm nasm -f elf -I ./ star.asm rm -f libstar.a ar cru libstar.a cpudebug.o star.o x86_64-pc-linux-gnu-ranlib libstar.a make[3]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src/star' Making all in raze make[3]: Entering directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src/raze' ./strip_ raze.asm raze.asmu ./strip_ raze.inc raze.incu ./strip_ raze.reg raze.regu nasm -w+orphan-labels -f elf -I ./ -e raze.asmu -o raze2.asm nasm -w+orphan-labels -f elf -I ./ raze2.asm -o raze.o -praze.regu rm -f libraze.a ar cru libraze.a raze.o x86_64-pc-linux-gnu-ranlib libraze.a make[3]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src/raze' make[3]: Entering directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT fileio.o -MD -MP -MF .deps/fileio.Tpo -c -o fileio.o fileio.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT pd4990a.o -MD -MP -MF .deps/pd4990a.Tpo -c -o pd4990a.o pd4990a.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT streams.o -MD -MP -MF .deps/streams.Tpo -c -o streams.o streams.c mv -f .deps/streams.Tpo .deps/streams.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT video.o -MD -MP -MF .deps/video.Tpo -c -o video.o video.c fileio.c: In function 'init_game': fileio.c:272: warning: implicit declaration of function 'streams_sh_stop' fileio.c:310: warning: implicit declaration of function 'init_sdl' fileio.c:311: warning: implicit declaration of function 'sdl_set_title' fileio.c: In function 'open_bios': fileio.c:445: warning: assignment from incompatible pointer type mv -f .deps/pd4990a.Tpo .deps/pd4990a.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT profiler.o -MD -MP -MF .deps/profiler.Tpo -c -o profiler.o profiler.c mv -f .deps/profiler.Tpo .deps/profiler.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function 'init_joystick': main.c:125: warning: pointer targets in assignment differ in signedness mv -f .deps/fileio.Tpo .deps/fileio.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT star_interf.o -MD -MP -MF .deps/star_interf.Tpo -c -o star_interf.o star_interf.c mv -f .deps/main.Tpo .deps/main.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIRECTORY='"/usr/share/games/gngeo"' -march=k8 -O2 -pipe -msse3 -Wall -Wno-unused -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DI386_ASM -DUSE_STARSCREAM -DUSE_RAZE -MT memory.o -MD -MP -MF .deps/memory.Tpo -c -o memory.o memory.c star_interf.c:44: error: initializer element is not computable at load time star_interf.c:44: error: (near initialization for 'pretend_programfetch[4].offset') make[3]: *** [star_interf.o] Error 1 make[3]: *** Waiting for unfinished jobs.... memory.c: In function 'mem68k_store_z80_long': memory.c:794: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'Uint32' memory.c:794: warning: format '%04lx' expects type 'long unsigned int', but argument 3 has type 'Uint32' mv -f .deps/memory.Tpo .deps/memory.Po mv -f .deps/video.Tpo .deps/video.Po make[3]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/games-emulation/gngeo-0.7/work/gngeo-0.7' make: *** [all] Error 2 * * ERROR: games-emulation/gngeo-0.7 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2811: Called games_src_compile * environment, line 1810: Called die * The specific snippet of code: * emake || diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed" * The die message: * emake failed # emerge --info Portage 2.1.4_rc9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24.4 x86_64) ================================================================= System uname: 2.6.24.4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ Timestamp of tree: Fri, 05 Oct 2007 01:47:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5, 2.5.1-r2 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ABI="amd64" ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" 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" ANT_HOME="/usr/share/ant-core" 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" ARCH="amd64" ASFLAGS_x86="--32" AUTOCLEAN="yes" BROWSER="seamonkey" CBUILD="x86_64-pc-linux-gnu" CDEFINE_amd64="__x86_64__" CDEFINE_x86="__i386__" CFLAGS="-march=k8 -O2 -pipe -msse3" CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" COLORFGBG="7;0" COLORTERM="rxvt" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CVS_RSH="ssh" CXXFLAGS="-march=k8 -O2 -pipe -msse3" DEFAULT_ABI="amd64" DISPLAY=":0.0" DISTDIR="/var/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_WARNING_DELAY="10" FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget --prefer-family=IPv6 -t 5 --passive-ftp ${URI} -P ${DISTDIR}" FVWM_MODULEDIR="/usr/lib/fvwm/2.5.27" FVWM_USERDIR="/home/pelusa/.fvwm" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" GTK2_RC_FILES="/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc" G_BROKEN_FILENAMES="1" G_FILENAME_ENCODING="UTF-8" HOME="/root" HOSTDISPLAY="localhost:0.0" HUSHLOGIN="FALSE" IM="urxvtc -geometry 75x40 -e weechat-curses" INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info" INPUT_DEVICES="keyboard mouse ps2mouse joystick" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KDEDIRS="/usr:/usr/local:/usr/kde/3.5" KERNEL="linux" LANG="es_ES.utf8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_ALL="es_ES.utf8" LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LIBDIR_amd64="lib64" LIBDIR_x86="lib32" LINGUAS="es en" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man" MULTILIB_ABIS="amd64 x86" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)" OOO_FORCE_DESKTOP="kde" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/root/scripts:/sbin:/bin:/usr/sbin:/usr/bin" PKGDIR="/var/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig:/usr/qt/3/lib32/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib64/portage/bin" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary echo" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_NICENESS="19" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=50" 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 --filter=H_**/files/digest-*" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/var/portage" PORTDIR_OVERLAY="/var/portage/local/layman/devnull /var/portage/local" PWD="/home/pelusa" PYTHONPATH="/usr/lib64/portage/pym" QMAIL_CONTROLDIR="/var/qmail/control" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c --prefer-family=IPv6 -t 5 --passive-ftp ${URI} -P ${DISTDIR}" ROOT="/" ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/var/qmail/bin" RPMDIR="/usr/portage/rpm" SANE_BACKENDS="canon_pp" SANE_CONFIG_DIR="/etc/sane.d" SEARCH_DIRS_MASK="/emul/" SHELL="/bin/bash" SHLVL="4" STAGE1_USE="nptl nptlonly unicode" SYMLINK_LIB="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="rxvt-unicode" USB_DEVFS_PATH="/dev/bus/usb" USE="X acl acpi alsa amd64 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv 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 ps2mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en" USERLAND="GNU" VIDEO_CARDS="nvidia" USER="root" USERLAND="GNU" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="nvidia" WALLPAPERDIR="/home/pelusa/images/wallpapers/" WINDOWID="17114760" WINDOWPATH="7" XARGS="xargs -r" XAUTHORITY="/root/.xauth9C1Adc" XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share" XDG_SESSION_COOKIE=""
Created attachment 155767 [details] gngeo-0.7.ebuild $(use_enable x86 i386asm) does the trick. configure.in checks for nasm presence in the system instead of properly checking the arch. That causes this bug on amd64 when nasm is installed.
(In reply to comment #1) > Created an attachment (id=155767) [edit] > gngeo-0.7.ebuild > > $(use_enable x86 i386asm) does the trick. > > configure.in checks for nasm presence in the system instead of properly > checking the arch. That causes this bug on amd64 when nasm is installed. > It worked for me on amd64, compiled and running using your ebuild, thanks for the fix.
Fixed in CVS. Thanks for reporting!