CFLAGS="-mpni -O0 -march=pentium4 -funroll-loops -pipe" emerge xine-lib gives me: /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 -mpni -O0 -march=pentium4 -funroll-loops -pipe -mno-sse2 -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB `echo -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -mpni -O0 -march=pentium4 -funroll-loops -pipe -mno-sse2 | sed -e 's/-funroll-loops//g'` -c -o dsputil_mmx.lo `test -f 'dsputil_mmx.c' || echo './'`dsputil_mmx.c 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 -mpni -O0 -march=pentium4 -funroll-loops -pipe -mno-sse2 -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -mpni -O0 -march=pentium4 -pipe -mno-sse2 -c dsputil_mmx.c -MT dsputil_mmx.lo -MD -MP -MF .deps/dsputil_mmx.TPlo -o .libs/dsputil_mmx.o dsputil_mmx.c: In function `h263_h_loop_filter_mmx': dsputil_mmx.c:567: error: can't find a register in class `GENERAL_REGS' while reloading `asm' dsputil_mmx.c: In function `dsputil_init_mmx': dsputil_mmx.c:2116: warning: unused variable `dct_algo' dsputil_mmx.c: At top level: dsputil_mmx_rnd.h:363: warning: `avg_no_rnd_pixels8_l2_mmx' defined but not used dsputil_mmx_rnd.h:410: warning: `avg_no_rnd_pixels16_l2_mmx' defined but not used dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_3dnow' defined but not used dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_3dnow' defined but not used dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_mmx2' defined but not used dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_mmx2' defined but not used dsputil_mmx.c:1976: warning: `try_8x8basis_mmx' defined but not used dsputil_mmx.c:2024: warning: `add_8x8basis_mmx' defined but not used make[5]: *** [dsputil_mmx.lo] Error 1 make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/libffmpeg/libavcodec/i386'
Take a look at bug #45902 for suggestions on tuning back cflags to see if it allows compilation.
I cannot find the problem. aquarius i386 # CCFLAGS="" CFLAGS="" 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_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -O0 -c dsputil_mmx.c -MT dsputil_mmx.lo -MD -MP -MF .deps/dsputil_mmx.TPlo dsputil_mmx.c: In function `h263_h_loop_filter_mmx': dsputil_mmx.c:614: error: can't find a register in class `GENERAL_REGS' while reloading `asm' dsputil_mmx.c: In function `dsputil_init_mmx': dsputil_mmx.c:2116: warning: unused variable `dct_algo' dsputil_mmx.c: At top level: dsputil_mmx_rnd.h:363: warning: `avg_no_rnd_pixels8_l2_mmx' defined but not used dsputil_mmx_rnd.h:410: warning: `avg_no_rnd_pixels16_l2_mmx' defined but not used dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_3dnow' defined but not used dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_3dnow' defined but not used dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_mmx2' defined but not used dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_mmx2' defined but not used dsputil_mmx.c:1976: warning: `try_8x8basis_mmx' defined but not used dsputil_mmx.c:2024: warning: `add_8x8basis_mmx' defined but not used aquarius i386 # gcc --version gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. aquarius i386 #
When these get resolved, then it will work again. In the meantime, -O1 helps me to compile this file. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13850 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15482
bug #54345 should resolved this bug.
seems to be an issue of 'under optimization' :) *** This bug has been marked as a duplicate of 31243 ***