Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53287 - xine-lib compile bug: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
Summary: xine-lib compile bug: error: can't find a register in class `GENERAL_REGS' w...
Status: RESOLVED DUPLICATE of bug 31243
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 02:37 UTC by Martin Mokrejš
Modified: 2005-07-17 13:06 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 Martin Mokrejš 2004-06-08 02:37:25 UTC
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'
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-06-08 06:50:26 UTC
Take a look at bug #45902 for suggestions on tuning back cflags to see if it allows compilation.
Comment 2 Martin Mokrejš 2004-06-16 13:41:44 UTC
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 # 
Comment 3 Martin Mokrejš 2004-06-18 10:00:38 UTC
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
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-06-18 12:56:02 UTC
bug #54345 should resolved this bug.
Comment 5 SpanKY gentoo-dev 2004-06-23 07:27:19 UTC
seems to be an issue of 'under optimization' :)

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