games-emulation/ps2emu-gssoft-0.9 fail to compile Reproducible: Always Steps to Reproduce: 1. emerge -va pcsx2 (or ps2emu-gssoft I suppose) 2. 3. Actual Results: cc -O2 -fPIC -Wall -O2 -fno-exceptions -m128bit-long-double -I. -I.. -I../x86 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -D__LINUX__ -c -o ../x86/ix86_cpudetect.o ../x86/ix86_cpudetect.c -MD -MF ../x86/ix86_cpudetect.d /var/tmp/portage/ps2emu-gssoft-0.9/temp/cciVT1Ve.s: Assembler messages: /var/tmp/portage/ps2emu-gssoft-0.9/temp/cciVT1Ve.s:27: Error: suffix or operands invalid for `push' /var/tmp/portage/ps2emu-gssoft-0.9/temp/cciVT1Ve.s:34: Error: suffix or operands invalid for `pop' make: *** [../x86/ix86_cpudetect.o] Error 1 !!! ERROR: games-emulation/ps2emu-gssoft-0.9 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: ps2emu-gssoft is marked stable on amd64 so I expected it to compile cleanly. Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr//lib/mozilla/defaults/pref /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 adns alsa apache2 arts avi berkdb bitmap-fonts canna cdr cjk crypt cups curl dvd eds emacs encode esd faad fam flac foomaticdb fortran gd gd-external gdbm gif gnome gnutls gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg junit libwww lzw lzw-tiff mad matroska mbox mikmod motif mozcalendar mozilla mp3 mpeg multilib mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png postgres python qt quicktime readline ruby sdl slang spell ssl tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wxwindows xine xml xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Seems like the patch "ps2emu-gssoft-0.9-PIC.patch" is applying some x86 only code. I attached a modified version of the patch that fixes this in the same method as the "ps2emu-gssoft-0.9-gentoo.patch"
tweaked the patch in cvs