Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47220 - gimp 2.0.0 fails to build with CFLAGS -fPIC
Summary: gimp 2.0.0 fails to build with CFLAGS -fPIC
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 75333 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-08 07:58 UTC by Joshua Amon
Modified: 2004-12-22 10:21 UTC (History)
1 user (show)

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 Joshua Amon 2004-04-08 07:58:12 UTC
When I emerge gimp 2.0.0 with -fPIC I get the following error:


if 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\"  -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fPIC -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-sse.c: In function `gimp_composite_scale_rgba8_rgba8_rgba8_sse':
gimp-composite-sse.c:1045: internal compiler error: asm clobber conflict with input operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
if 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\"  -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fPIC -Wall -MT gimp-composite-vis.o -MD -MP -MF ".deps/gimp-composite-vis.Tpo" \
  -c -o gimp-composite-vis.o `test -f 'gimp-composite-vis.c' || echo './'`gimp-composite-vis.c; \
then mv -f ".deps/gimp-composite-vis.Tpo" ".deps/gimp-composite-vis.Po"; \
else rm -f ".deps/gimp-composite-vis.Tpo"; exit 1; \
fi
if 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\"  -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fPIC -Wall -MT gimp-composite.o -MD -MP -MF ".deps/gimp-composite.Tpo" \
  -c -o gimp-composite.o `test -f 'gimp-composite.c' || echo './'`gimp-composite.c; \
then mv -f ".deps/gimp-composite.Tpo" ".deps/gimp-composite.Po"; \
else rm -f ".deps/gimp-composite.Tpo"; exit 1; \
fi
Preprocessed source stored into /var/tmp/portage/gimp-2.0.0/temp/cc60TJ3b.out file, please attach this to your bugreport
make[3]: *** [gimp-composite-sse.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app/composite'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0'
make: *** [all] Error 2

When -fPIC is removed from CFLAGS gimp compiles sucessfuly.

Reproducible: Always
Steps to Reproduce:
1. Have -fPIC in CFLAGS
2. emerge gimp (UNMASKED in package.keywords)




Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-mm1)
=================================================================
System uname: 2.6.5-mm1 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fPIC"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://194.83.57.7/sites/www.ibiblio.org/gentoo/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa avi berkdb cdr composite crypt crypto cups directfb
dri drm dvd encode fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg
libg++ libwww mad mikmod mmx motif mpeg ncurses nfs oggvorbis opengl pam pdflib
perl png python quicktime readline samba sdl spell sse ssl svga tcpd tiff
truetype video_cards_radeon x86 xinerama xml2 xmms xv zlib"

NOTE:
gimp is unmasked in package.keywords, I am NOT running 'ACCEPT_KEYWORDS="~x86"
emerge gimp'. So no dependencies are using masked packages. This may be relavent.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-08 09:07:12 UTC
-fpic is not supported in CFLAGS

use USE-Flag instead
Comment 2 Joe McCann (RETIRED) gentoo-dev 2004-12-22 10:21:16 UTC
*** Bug 75333 has been marked as a duplicate of this bug. ***