Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75333 - gimp 2.2 (and all other versions), filter -fPIC flag.
Summary: gimp 2.2 (and all other versions), filter -fPIC flag.
Status: RESOLVED DUPLICATE of bug 47220
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-22 09:40 UTC by JoWilly
Modified: 2005-07-17 13:06 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 JoWilly 2004-12-22 09:40:37 UTC
Hi,

Every time I merge gimp I have the same problem :
I have to remove -fPIC from my CFLAGS, as otherwise it breaks with this:

----
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  -O3 -march=pentium4 -pipe -fomit-frame-pointer -fPIC -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_burn_rgba8_rgba8_rgba8_mmx':
gimp-composite-mmx.c:149: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
gimp-composite-mmx.c:203: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
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]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gimp-2.2.0/work/gimp-2.2.0/app/composite'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gimp-2.2.0/work/gimp-2.2.0/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gimp-2.2.0/work/gimp-2.2.0'
make: *** [all] Error 2
----

It is the same for a few other apps that use mmx.

So please, filter the -fPIC flag out in the ebuild to fix the matter.

Thanks.
Comment 1 foser (RETIRED) gentoo-dev 2004-12-22 09:57:05 UTC
search & dupe, i'm pretty sure this is already reported
Comment 2 Joe McCann (RETIRED) gentoo-dev 2004-12-22 10:21:16 UTC

*** This bug has been marked as a duplicate of 47220 ***