Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135078

Summary: gimp 2.2.8-r1 w/ USE=mmx fails on asm
Product: Gentoo Linux Reporter: Michael Mohr <akihana>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Mohr 2006-05-31 14:51:22 UTC
The 'sse' USE flag for the Gimp causes sse2 extensions to be used in addition to sse.  My CPU (Athlon 3000) does support SSE1, but not SSE2.  It appears that this is what causes the build to fail if SSE is specified.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 14:55:00 UTC
Reopen with emerge --info and some errors.
Comment 2 Michael Mohr 2006-05-31 15:07:50 UTC
It looks like I jumped the gun a bit.  It may not be sse after all, but mmx:

USE="doc gimpprint jpeg mmx png python sse tiff -aalib -debug -gtkhtml -hardened -lcms -mng -smp -svg -wmf" emerge media-gfx/gimp

...

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../app -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include -DG_LOG_DOMAIN=\"Gimp-Composite\"  -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O3 -mtune=athlon-xp -mcpu=athlon-xp -pipe -Wall -MT gimp-composite-sse2.o -MD -MP -MF ".deps/gimp-composite-sse2.Tpo" \
  -c -o gimp-composite-sse2.o `test -f 'gimp-composite-sse2.c' || echo './'`gimp-composite-sse2.c; \
then mv -f ".deps/gimp-composite-sse2.Tpo" ".deps/gimp-composite-sse2.Po"; \
else rm -f ".deps/gimp-composite-sse2.Tpo"; exit 1; \
fi
gimp-composite-mmx.c:835: warning: 'mmx_op_overlay' defined but not used
gimp-composite-mmx.c: In function 'gimp_composite_addition_rgba8_rgba8_rgba8_mmx':
gimp-composite-mmx.c:94: error: unknown register name '%mm0' in 'asm'
gimp-composite-mmx.c:101: error: unknown register name '%mm4' in 'asm'
gimp-composite-mmx.c:101: error: unknown register name '%mm3' in 'asm'
gimp-composite-mmx.c:101: error: unknown register name '%mm2' in 'asm'
gimp-composite-mmx.c:101: error: unknown register name '%mm1' in 'asm'
gimp-composite-mmx.c:101: error: unknown register name '%mm0' in 'asm'
gimp-composite-mmx.c:121: error: unknown register name '%mm4' in 'asm'
gimp-composite-mmx.c:121: error: unknown register name '%mm3' in 'asm'
gimp-composite-mmx.c:121: error: unknown register name '%mm2' in 'asm'
gimp-composite-mmx.c:121: error: unknown register name '%mm1' in 'asm'
gimp-composite-mmx.c:121: error: unknown register name '%mm0' in 'asm'
gimp-composite-mmx.c: In function 'gimp_composite_burn_rgba8_rgba8_rgba8_mmx':
gimp-composite-mmx.c:149: error: unknown register name '%mm7' in 'asm'
gimp-composite-mmx.c:149: error: unknown register name '%mm6' in 'asm'
gimp-composite-mmx.c:149: error: unknown register name '%mm5' in 'asm'

etc

and emerge --info:

Portage 2.1_rc3-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
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.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=athlon-xp -mcpu=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/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/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=athlon-xp -mcpu=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ "
MAKEOPTS="-j4"
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="x86 3dnow 3dnowext X a52 aac alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth bzip2 cdr cli crypt cups doc dri dvd dvdr eds emboss encode esd foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection samba sdl session spell spl sse ssl swig tcltk tcpd tetex tga threads tiff truetype truetype-fonts type1-fonts udev v4l v4l2 vorbis xinetd xml xml2 xmms xorg xprint xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 15:15:28 UTC
x86-specific, pretty much. Please, try w/ 2.2.10 and reopen if that one doesn't work either.
Comment 4 Michael Mohr 2006-05-31 16:22:25 UTC
This appears to be resolved with 2.2.10.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 16:34:25 UTC
Good, thanks for reporting back.