Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58413 - media-libs/xine-lib-1_rc5-r2 compilation failed with error: can't find a register in class `BREG' while reloading `asm' due to -fpic flag problem
Summary: media-libs/xine-lib-1_rc5-r2 compilation failed with error: can't find a regi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 07:51 UTC by Grzegorz Dubicki
Modified: 2004-07-27 01:07 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 Grzegorz Dubicki 2004-07-26 07:51:11 UTC
media-libs/xine-lib-1_rc5-r2 compilation failed with error: can't find a register in class `BREG' while reloading `asm' due to -fpic flag problem

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86" emerge -v =media-libs/xine-lib-1_rc5-r2
Actual Results:  
(...)

arch=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -
funroll-loops -ftracer -ffast-mat-fprefetch-loop-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-prector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT demux_iff.lo -
MD -MP -MF ".ps/demux_iff.Tpo" \
  -c -o demux_iff.lo `test -f 'demux_iff.c' || echo './'`demux_iff.c; \
then mv -f ".deps/demux_iff.Tpo" ".deps/demux_iff.Plo"; \
else rm -f ".deps/demux_iff.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I.
./../src -I../../src/xine-eine -I../../src/xine-engine -I../../src/xine-utils -
I../../src/input -I../../src/input -O3 -pipe -fomit-fra-pointer -falign-
functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -
fexpensive-optimations -fschedule-insns2 -fno-strict-aliasing -ffast-math -
funroll-loops -finline-functions -Wall -DNDEBUG _REENTRANT -
D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-
align -Wchar-subscpts -Wmissing-declarations -Wmissing-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -mit-frame-pointer -
funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-lim=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-ss -ffunction-sections -MT demux_iff.lo -MD 
-MP -MF .deps/demux_iff.Tpo -c demux_iff.c -o .libs/demux_iff.o
demux_iff.c: In function `read_iff_chunk':
demux_iff.c:262: warning: implicit declaration of function `strndup'
demux_iff.c:262: warning: nested extern declaration of `strndup'
demux_iff.c:262: warning: assignment makes pointer from integer without a cast
demux_iff.c:268: warning: assignment makes pointer from integer without a cast
demux_iff.c:274: warning: assignment makes pointer from integer without a cast
demux_iff.c:280: warning: assignment makes pointer from integer without a cast
demux_iff.c:286: warning: assignment makes pointer from integer without a cast
demux_iff.c:292: warning: assignment makes pointer from integer without a cast
/bin/sh ../../libtool-nofpic --mode=link gcc     -O3 -pipe -fomit-frame-pointer 
-falign-functions=4 -falignoops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 
-fexpensive-optimizations -fschedule-insns2 -fno-stricaliasing -ffast-math -
funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 -INE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-
align -Wchar-subscripts -Wmissing-declarations -Wmissi-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -
funroll-loops -racer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=387 -pipe -fweb -fpi-s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections   -o 
xineplugmx_iff.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module  
demux_iff.lo ../../src/xine-engine/libne.la
gcc -shared  .libs/demux_iff.o   -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-
1_rc5-r2/work/xine-lib-1-rc5/srcine-engine/.libs -L/usr/lib ../../src/xine-
engine/.libs/libxine.so  -mpreferred-stack-boundary=2 -march=athn-xp -
mtune=athlon-xp -msse -mmmx -m3dnow -mfpmath=387 -mno-sse2 -mno-sse3 -Wl,-soname 
-Wl,xineplug_dmx_iffo -o .libs/xineplug_dmx_iff.so
creating xineplug_dmx_iff.la
(cd .libs && rm -f xineplug_dmx_iff.la && ln -s ../xineplug_dmx_iff.la 
xineplug_dmx_iff.la)
if /bin/sh ../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../
.. -I../.. -I../../include ../../include -I../../src -I../../src/xine-engine -I.
./../src/xine-engine -I../../src/xine-utils  -I../../s/input -I../../src/input   
    -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-
jps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 
-fno-strict-aliasing -ffast-th -funroll-loops -finline-functions -Wall -DNDEBUG 
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpnter-arith -Wnested-
externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-
prototypes -O3 arch=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-
pointer -funroll-loops -ftracer -ffast-mat-fprefetch-loop-arrays -freduce-all-
givs -finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-prector -
fno-web -funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT 
demux_flv.lo -MD -MP -MF ".ps/demux_flv.Tpo" \
  -c -o demux_flv.lo `test -f 'demux_flv.c' || echo './'`demux_flv.c; \
then mv -f ".deps/demux_flv.Tpo" ".deps/demux_flv.Plo"; \
else rm -f ".deps/demux_flv.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I.
./../src -I../../src/xine-eine -I../../src/xine-engine -I../../src/xine-utils -
I../../src/input -I../../src/input -O3 -pipe -fomit-fra-pointer -falign-
functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -
fexpensive-optimations -fschedule-insns2 -fno-strict-aliasing -ffast-math -
funroll-loops -finline-functions -Wall -DNDEBUG _REENTRANT -
D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-
align -Wchar-subscpts -Wmissing-declarations -Wmissing-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -mit-frame-pointer -
funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-lim=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-ss -ffunction-sections -MT demux_flv.lo -MD 
-MP -MF .deps/demux_flv.Tpo -c demux_flv.c -o .libs/demux_flv.o
/bin/sh ../../libtool-nofpic --mode=link gcc     -O3 -pipe -fomit-frame-pointer 
-falign-functions=4 -falignoops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 
-fexpensive-optimizations -fschedule-insns2 -fno-stricaliasing -ffast-math -
funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 -INE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-
align -Wchar-subscripts -Wmissing-declarations -Wmissi-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -
funroll-loops -racer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=387 -pipe -fweb -fpi-s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections   -o 
xineplugmx_flv.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module  
demux_flv.lo ../../src/xine-engine/libne.la
gcc -shared  .libs/demux_flv.o   -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-
1_rc5-r2/work/xine-lib-1-rc5/srcine-engine/.libs -L/usr/lib ../../src/xine-
engine/.libs/libxine.so  -mpreferred-stack-boundary=2 -march=athn-xp -
mtune=athlon-xp -msse -mmmx -m3dnow -mfpmath=387 -mno-sse2 -mno-sse3 -Wl,-soname 
-Wl,xineplug_dmx_flvo -o .libs/xineplug_dmx_flv.so
creating xineplug_dmx_flv.la
(cd .libs && rm -f xineplug_dmx_flv.la && ln -s ../xineplug_dmx_flv.la 
xineplug_dmx_flv.la)
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/demuxers'
Making all in libffmpeg
make[3]: Entering directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg'
Making all in libavcodec
make[4]: Entering directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcode
Making all in armv4l
make[5]: Entering directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcodearmv4l'
if /bin/sh ../../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../../../.. -I../../../.-I../../../../include -I../../../../include -I../../..
/../src -I../../../../src/xine-engine -I../../../../s/xine-engine -I../../../../
src/xine-utils  -I../../../../src/input -I../../../../src/input   -O2 -
DSIMPLE_IT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -
DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCOR -DCONFIG_ZLIB -O3 -pipe -
fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -
mprefeed-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-
strict-aliasing -ffast-math -funroll-lps -finline-functions -Wall -DNDEBUG -
D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wsted-
externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-
prototypes -O3 -march=athlon-x-mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-
pointer -funroll-loops -ftracer -ffast-math -fprefetch-lo-arrays -freduce-all-
givs -finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -
fno-we-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT 
libavcodec_armv4l_dummy.lo -MD -MP -MF ".ds/libavcodec_armv4l_dummy.Tpo" \
  -c -o libavcodec_armv4l_dummy.lo `test -f 'libavcodec_armv4l_dummy.c' || echo 
'./'`libavcodec_armv4l_dummc; \
then mv -f ".deps/libavcodec_armv4l_dummy.Tpo" ".deps/libavcodec_armv4l_dummy.
Plo"; \
else rm -f ".deps/libavcodec_armv4l_dummy.Tpo"; exit 1; \
fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -
I../../../../include -I../.../../src -I../../../../src/xine-engine -I../../../..
/src/xine-engine -I../../../../src/xine-utils -I../..//../src/input -I../../../.
./src/input -O2 -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -
DUSE_FASTMEPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB 
-O3 -pipe -fomit-frame-pointer -faligfunctions=4 -falign-loops=4 -falign-jumps=4 
-mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedu-insns2 -fno-
strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -
D_REENTRANT -D_FE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs 
-Wcast-align -Wchar-subscripts -Wmissing-dlarations -Wmissing-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-point -
funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=3 -pipe -fweb -fpic -s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-secons -MT 
libavcodec_armv4l_dummy.lo -MD -MP -MF .deps/libavcodec_armv4l_dummy.Tpo -c 
libavcodec_armv4l_dummy -o .libs/libavcodec_armv4l_dummy.o
/bin/sh ../../../../libtool-nofpic --mode=link gcc -O2 -DSIMPLE_IDCT -
DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECTDUSE_FASTMEMCPY -DCONFIG_RISKY -
DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -O3 -pipe -fomit-frame-pnter 
-falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-
boundary=2 -fexpensive-optimizaons -fschedule-insns2 -fno-strict-aliasing -
ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_ENTRANT -
D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-
align -Wchar-subscris -Wmissing-declarations -Wmissing-prototypes -O3 -
march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -fot-frame-pointer -
funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -
finline-limit00 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -fno-web 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3ffunction-sections   -o 
libavcodec_armv4l.la    libavcodec_armv4l_dummy.lo
ar cru .libs/libavcodec_armv4l.a .libs/libavcodec_armv4l_dummy.o
ranlib .libs/libavcodec_armv4l.a
creating libavcodec_armv4l.la
(cd .libs && rm -f libavcodec_armv4l.la && ln -s ../libavcodec_armv4l.la 
libavcodec_armv4l.la)
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcodecrmv4l'
Making all in i386
make[5]: Entering directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcodei386'
if /bin/sh ../../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../../../.. -I../../../.-I../../../../include -I../../../../include -I../../..
/../src -I../../../../src/xine-engine -I../../../../s/xine-engine -I../../../../
src/xine-utils  -I../../../../src/input -I../../../../src/input   -DSIMPLE_IDCT 
HAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -
DCONFIG_DECODERS -DXINE_MPEG_ENCODER CONFIG_ZLIB `echo -O3 -pipe -fomit-frame-
pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mprerred-stack-
boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -
ffast-math -funrolloops -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith nested-externs -Wcast-
align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O3 -
march=athlonp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -
funroll-loops -ftracer -ffast-math -fprefetch-op-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -fno-b 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections | sed -e 's/-
funroll-loops//g'` -MT cputest. -MD -MP -MF ".deps/cputest.Tpo" \
  -c -o cputest.lo `test -f 'cputest.c' || echo './'`cputest.c; \
then mv -f ".deps/cputest.Tpo" ".deps/cputest.Plo"; \
else rm -f ".deps/cputest.Tpo"; exit 1; \
fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -
I../../../../include -I../.../../src -I../../../../src/xine-engine -I../../../..
/src/xine-engine -I../../../../src/xine-utils -I../..//../src/input -I../../../.
./src/input -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -
DUSE_FASTMEMCPYDCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB 
-O3 -pipe -fomit-frame-pointer -falign-futions=4 -falign-loops=4 -falign-jumps=4 
-mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-ins2 -fno-
strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 XINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align 
-Wchar-subscripts -Wmissing-declarations -Wmissi-prototypes -O3 -march=athlon-xp 
-mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -ftracer -ffast-th -
fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -
fweb -fpic -s -fno-stackrotector -fno-web -funit-at-a-time -O1 -mno-sse2 -mno-
sse3 -ffunction-sections -MT cputest.lo -MD -MP -MF .ps/cputest.Tpo -c cputest.c 
-o .libs/cputest.o
if /bin/sh ../../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../../../.. -I../../../.-I../../../../include -I../../../../include -I../../..
/../src -I../../../../src/xine-engine -I../../../../s/xine-engine -I../../../../
src/xine-utils  -I../../../../src/input -I../../../../src/input   -DSIMPLE_IDCT 
HAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -
DCONFIG_DECODERS -DXINE_MPEG_ENCODER CONFIG_ZLIB `echo -O3 -pipe -fomit-frame-
pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mprerred-stack-
boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -
ffast-math -funrolloops -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith nested-externs -Wcast-
align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O3 -
march=athlonp -mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -
funroll-loops -ftracer -ffast-math -fprefetch-op-arrays -freduce-all-givs -
finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -s -fno-stack-protector -fno-b 
-funit-at-a-time -O1 -mno-sse2 -mno-sse3 -ffunction-sections | sed -e 's/-
funroll-loops//g'` -MT dsputil_x.lo -MD -MP -MF ".deps/dsputil_mmx.Tpo" \
  -c -o dsputil_mmx.lo `test -f 'dsputil_mmx.c' || echo './'`dsputil_mmx.c; \
then mv -f ".deps/dsputil_mmx.Tpo" ".deps/dsputil_mmx.Plo"; \
else rm -f ".deps/dsputil_mmx.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -
I../../../../include -I../.../../src -I../../../../src/xine-engine -I../../../..
/src/xine-engine -I../../../../src/xine-utils -I../..//../src/input -I../../../.
./src/input -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -
DUSE_FASTMEMCPYDCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB 
-O3 -pipe -fomit-frame-pointer -falign-futions=4 -falign-loops=4 -falign-jumps=4 
-mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-ins2 -fno-
strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -
D_FILE_OFFSET_BITS=64 XINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align 
-Wchar-subscripts -Wmissing-declarations -Wmissi-prototypes -O3 -march=athlon-xp 
-mtune=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -ftracer -ffast-th -
fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -
fweb -fpic -s -fno-stackrotector -fno-web -funit-at-a-time -O1 -mno-sse2 -mno-
sse3 -ffunction-sections -MT dsputil_mmx.lo -MD -MP - .deps/dsputil_mmx.Tpo -c 
dsputil_mmx.c -o .libs/dsputil_mmx.o
dsputil_mmx.c: In function `put_qpel8_mc10_3dnow':
dsputil_mmx_rnd.h:61: error: can't find a register in class `BREG' while 
reloading `asm'
make[5]: *** [dsputil_mmx.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcodec386'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg/libavcodec
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src/libffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-
rc5'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc5-r2 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! Parallel make failed


Expected Results:  
It should have compiled and emerged cleanly.

bet-pc etc # emerge info

Portage 2.0.50-r9 (unavailable, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-rc
=================================================================
System uname: 2.6.7-rc3-love1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -m             
                          ter -funroll-loops -ftracer -ffast-math -fprefetch-
loop-arrays -fred                                       387 -pipe -fweb -fPIC -
fpic -s"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config              
                          e/config /usr/share/config /usr/share/texmf/dvipdfm/
config/ /usr/sha                                       ex/generic/config/ /usr/
share/texmf/tex/platex/config/ /usr/share/te
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow              
                          inter -funroll-loops -ftracer -ffast-math -fprefetch-
loop-arrays -fr                                       h=387 -pipe -fweb -fPIC -
fpic -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/ge             
                          ftp.easynet.nl/mirror/gentoo/ ftp://ftp.rxd.hu ftp://
ftp.snt.utwente                                       e/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi acpi4linux activefilter alsa apache2 apm             
                          pe cups dga directfb divx4linux doc dvd encode fbcon 
flac foomaticdb                                       agick imlib innodb java 
javamail javascript jikes jpeg kadu-modules                                      
  n linguas_pl live mad matroska memlimit mikmod mmx motif moznocompos           
                            term mpeg mpi ncurses netcdf nls nocardbus nocd nptl 
offensive oggvo                                       om2 oss pam pdflib pic png 
postgres ppds pthreads python qt quicktim                                       
spell sse ssl svg svga szip tetex theora tiff tlen transcode truetyp             
                          wxwindows x86 xinerama xml xml2 xmms xosd xprint xv 
xvid yv12 zlib"
Comment 1 Grzegorz Dubicki 2004-07-26 08:03:28 UTC
Sorry for thrashed <emerge info> output. Here it is again:

bet-pc etc # emerge info

Portage 2.0.50-r9 (unavailable, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-rc3-love1)
=================================================================
System uname: 2.6.7-rc3-love1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -fweb -fpic -fPIC -s"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -fweb -fPIC -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://gentoo.inode.at/source/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.rxd.hu ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi acpi4linux activefilter alsa apache2 apm arts audiofile avi berkdb cdr crypt cscope cups dga directfb divx4linux doc dvd encode fbcon flac foomaticdb gd gdbm ggi gif glut gpm gtk2 icc imagemagick imlib innodb java javamail javascript jikes jpeg kadu-modules kadu-voice kde lcms ldap libwww linguas_en linguas_pl live mad matroska memlimit mikmod mmx motif moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mpeg mpi ncurses netcdf nls nocardbus nocd nptl offensive oggvorbis ooo-kde openal opengl openssh operanom2 oss pam pdflib pic png postgres ppds pthreads python qt quicktime readline samba scanner sdl slang speex spell sse ssl svg svga szip tetex theora tiff tlen transcode truetype unicode usb videos vim-with-x wifi wmf wxwindows x86 xinerama xml xml2 xmms xosd xprint xv xvid yv12 zlib"

*** *** ***

RESOLUTION TO THIS BUG - no "-fpic" (lowercase) flag in the CFLAGS.
It probably supposed to be filtered out in the ebuild.

---

I'm going to check it with gcc 3.3.3 now, but the bug probably isn't related to gcc version - check another, similar bug where BOTH gcc 3.4.1 and 3.3.3 reacted the same way on "-fpic" flag: http://bugs.gentoo.org/show_bug.cgi?id=58283.
Comment 2 Grzegorz Dubicki 2004-07-26 08:48:20 UTC
Yep. gcc 3.3.3 does it pretty much the same way. Tested with CFLAGS same as above excluding not supported by this gcc ver.: -mtune and -fweb.

<emerge info>
bet-pc root # emerge info

Portage 2.0.50-r9 (unavailable, gcc-3.3.3, glibc-2.3.4.20040619-r0, 2.6.7-rc3-love1)
=================================================================
System uname: 2.6.7-rc3-love1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -no-fpic -fPIC -s"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -no-fpic -fPIC -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://gentoo.inode.at/source/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.rxd.hu ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi acpi4linux activefilter alsa apache2 apm arts audiofile avi berkdb cdr crypt cscope cups dga directfb divx4linux doc dvd encode fbcon flac foomaticdb gd gdbm ggi gif glut gpm gtk2 icc imagemagick imlib innodb java javamail javascript jikes jpeg kadu-modules kadu-voice kde lcms ldap libwww linguas_en linguas_pl live mad matroska memlimit mikmod mmx motif moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mpeg mpi ncurses netcdf nls nocardbus nocd nptl offensive oggvorbis ooo-kde openal opengl openssh operanom2 oss pam pdflib pic png postgres ppds pthreads python qt quicktime readline samba scanner sdl slang speex spell sse ssl svg svga szip tetex theora tiff tlen transcode truetype unicode usb videos vim-with-x wifi wmf wxwindows x86 xinerama xml xml2 xmms xosd xprint xv xvid yv12 zlib"
---

Result of emerge with -fpic:

(...)
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -I../../../../include ./../../src -I../../../../src/xine-engine -I../../../../src/xine-engine -I../../../../src/xine-utils ./../../src/input -I../../../../src/input -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_MCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -O3 -pipe -fomit-frame-pointeign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizationhedule-insns2 -fno-strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-deions -Wmissing-prototypes -O3 -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -ftracer -ffah -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -fpic -s -fno-stack-tor -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT cputest.lo -MD -MP -MF .deps/cputest.Tpo -c cputeo .libs/cputest.o
if /bin/sh ../../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../.. -I../../../../include -I../../../../include -I../../../../src -I../../../../src/xine-engine -I../../src/xine-engine -I../../../../src/xine-utils  -I../../../../src/input -I../../../../src/input   -DSIDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MCODER -DCONFIG_ZLIB `echo -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffah -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILEinter-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototyp -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefoop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -fpic -s -fno-stack-protector -O1 se2 -mno-sse3 -ffunction-sections | sed -e 's/-funroll-loops//g'` -MT dsputil_mmx.lo -MD -MP -MF ".deutil_mmx.Tpo" \
  -c -o dsputil_mmx.lo `test -f 'dsputil_mmx.c' || echo './'`dsputil_mmx.c; \
then mv -f ".deps/dsputil_mmx.Tpo" ".deps/dsputil_mmx.Plo"; \
else rm -f ".deps/dsputil_mmx.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -I../../../../include ./../../src -I../../../../src/xine-engine -I../../../../src/xine-engine -I../../../../src/xine-utils ./../../src/input -I../../../../src/input -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_MCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -O3 -pipe -fomit-frame-pointeign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizationhedule-insns2 -fno-strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-deions -Wmissing-prototypes -O3 -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -ftracer -ffah -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -pipe -fpic -s -fno-stack-tor -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT dsputil_mmx.lo -MD -MP -MF .deps/dsputil_mmx.Tpo util_mmx.c -o .libs/dsputil_mmx.o
dsputil_mmx.c: In function `put_qpel8_mc10_3dnow':
dsputil_mmx_rnd.h:61: error: can't find a register in class `BREG' while reloading `asm'
make[5]: *** [dsputil_mmx.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/libffmpeg/liba/i386'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/libffmpeg/liba'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/libffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc5-r2 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! Parallel make failed
---

..and without -fpic:

(...)
>>> Completed installing into /var/tmp/portage/xine-lib-1_rc5-r2/image/
---

:-)
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-07-26 18:50:51 UTC
Ok, the word from the toolchain group is that having fpic and fPIC in global
CFLAGS isn't a supported configuration.  Go ahead and take that out please
and you'll have better luck I think.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-07-26 18:51:08 UTC
*** Bug 58283 has been marked as a duplicate of this bug. ***
Comment 5 Grzegorz Dubicki 2004-07-27 00:57:46 UTC
> Ok, the word from the toolchain group is that having fpic and fPIC in global
> CFLAGS isn't a supported configuration.
Do you mean that BOTH -fpic and -fPIC AT THE SAME TIM is bad? - I've also run into this problem with ONLY -fpic in my CFLAGS and besides: -fPIC is filtered out in this ebuild already.. :/

> Go ahead and take that out please and you'll have better luck I think.
Sure, I can do that but what about some more universal resolution for other users?