Tried to emerge imlib2 in portage prefix. It can be compiled well but -mmx (disable mmx) should be added to USE. I solved it temporary in etc/portage/package.use. Maybe it should be unmasked for x86_64-macos as well but will try later if it works. Reproducible: Always Steps to Reproduce: 1. emerge imlib2 2. 3. Actual Results: x86_64-apple-darwin10-gcc -DHAVE_CONFIG_H -I. -I../.. -I/Volumes/HFS/Users/kexik/Gentoo/usr/include/freetype2 -I/Volumes/HFS/Users/kexik/Gentoo/usr/include -I/usr/X11R6/include -I. -I../.. -I../.. -DPACKAGE_LIB_DIR=\"/Volumes/HFS/Users/kexik/Gentoo/usr/lib\" -std=gnu99 -fvisibility=hidden -I../.. -I../.. -MT asm_blend.lo -MD -MP -MF .deps/asm_blend.Tpo -c asm_blend.S -fno-common -DPIC -o .libs/asm_blend.o asm_blend.S:1023:suffix or operands invalid for `pop' $ emerge --info Portage 2.2.00.15320-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64) ================================================================= System uname: Darwin-10.2.0-x86_64-i386-64bit Timestamp of tree: Wed, 10 Feb 2010 00:35:45 +0000 distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4 sys-devel/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/binutils: 2.20.51.0.5 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="x64-macos ~x64-macos ~x86-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin10" CFLAGS="-march=core2 -mtune=core2 -O3 -maccumulate-outgoing-args -fomit-frame-pointer -pipe -finline-functions -funswitch-loops -fprefetch-loop-arrays -fpeel-loops -msse -mmmx -msse2 -msse3 -mssse3 -fexpensive-optimizations -funroll-all-loops -ftracer" CHOST="x86_64-apple-darwin10" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo" CXXFLAGS="-march=core2 -mtune=core2 -O3 -maccumulate-outgoing-args -fomit-frame-pointer -pipe -finline-functions -funswitch-loops -fprefetch-loop-arrays -fpeel-loops -msse -mmmx -msse2 -msse3 -mssse3 -fexpensive-optimizations -funroll-all-loops -ftracer" DISTDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Volumes/HFS/Users/kexik/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Volumes/HFS/Users/kexik/Gentoo/var/tmp" PORTDIR="/Volumes/HFS/Users/kexik/Gentoo/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="X aqua coreaudio cracklib cxx dbus gnutls hal kde mmx mmxext modules ncurses nls objc objc++ prefix qt3support qt4 readline sse sse2 ssl unicode utf8 x11-wm/fluxbox x64-macos zlib" 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Of course this happens because of x86_64 compilation and trying to use x86 asm with mmx optimizations... ebuild needs to be modified for x86_64...
Thanks should be fixed now. Fix will be available for you on emerge --sync in an hour.