Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94177 - Can't compile gimp-2.2.7 because of "PIC register `%ebx' clobbered in `asm'"
Summary: Can't compile gimp-2.2.7 because of "PIC register `%ebx' clobbered in `asm'"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 06:52 UTC by Juergen Rose
Modified: 2005-05-29 12:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2005-05-27 06:52:49 UTC
emerge -vuD gimp fails with:
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
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE
-DGTK_MULTIHEAD_SAFE  -O2 -march=pentium4 -fomit-frame-pointer -pipe -O3 -Wall
-MT gimp-composite-mmx.o -MD -MP -MF ".deps/gimp-composite-mmx.Tpo" \
  -c -o gimp-composite-mmx.o `test -f 'gimp-composite-mmx.c' || echo
'./'`gimp-composite-mmx.c; \
then mv -f ".deps/gimp-composite-mmx.Tpo" ".deps/gimp-composite-mmx.Po"; \
else rm -f ".deps/gimp-composite-mmx.Tpo"; exit 1; \
fi
gimp-composite-mmx.c: In function `gimp_composite_scale_rgba8_rgba8_rgba8_mmx':
gimp-composite-mmx.c:1015: error: PIC register `%ebx' clobbered in `asm'
gimp-composite-mmx.c: At top level:
gimp-composite-mmx.c:835: warning: 'mmx_op_overlay' defined but not used
make[3]: *** [gimp-composite-mmx.o] Error 1


Reproducible: Always
Steps to Reproduce:
1.emerge -vuD gimp
2.
3.

Actual Results:  
gimp-composite-mmx.c: In function `gimp_composite_scale_rgba8_rgba8_rgba8_mmx':
gimp-composite-mmx.c:1015: error: PIC register `%ebx' clobbered in `asm'
gimp-composite-mmx.c: At top level:
gimp-composite-mmx.c:835: warning: 'mmx_op_overlay' defined but not used
make[3]: *** [gimp-composite-mmx.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gimp-2.2.7/work/gimp-2.2.7/app/composite'


Expected Results:  
It should compile.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-27 06:56:49 UTC
emerge --info needed
Comment 2 Juergen Rose 2005-05-29 07:18:43 UTC
I was able to remove the compilation problem by adding "-mmx" to 
"media-gfx/gimp gimpprint cups -mmx" in /etc/portage/package.use.

Sorry, that I forget to add "emerge --info". It is:

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110-hardened,
glibc-2.3.5-r0, 2.6.12-rc5 i686)
=================================================================
System uname: 2.6.12-rc5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="de fr"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib adns alsa apm arts avi berkdb bitmap-fonts cdr
crypt cscope cups curl dvd eds emboss encode esd fam flac foomaticdb fortran gd
gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6
java jpeg junit kde ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg
mysql nas ncurses nls nptl odbc ogg oggvorbis opengl oss pam pdflib perl
plotutils png postgres python qt quicktime readline ruby samba scanner sdl slang
snmp speex spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts vorbis xine xml xml2 xmms xv zlib linguas_de linguas_fr userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY


Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-05-29 09:43:40 UTC
You also forgot to reopen... 
Comment 4 John N. Laliberte (RETIRED) gentoo-dev 2005-05-29 12:52:47 UTC
you are using hardened (gcc-3.4.3-20050110-hardened) and do not have the
hardened use flag set.

as you can see in the ebuild:
    if use hardened; then
        ewarn "hardened use flag suppressing mmx use flag"
        HARDENED_SUPPRESS_MMX="--disable-mmx"

it will disable mmx for you if you have hardened in your use flags.

Adding hardened to your use flags will fix your problem.