Summary: | xine-lib-1.1.1-r3 fails with compiler error in h263.cc : mpeg4_decode_partition_a | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Armyr <daniel.armyr> |
Component: | Current packages | Assignee: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aakash.chopra, chance2105, media-video, paul |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch to move functions up in source code body.
fixes for several static inline function calls - just moved them up before they are called. fix to move one static inline function up before it is called. |
Description
Daniel Armyr
2006-01-14 11:49:45 UTC
Uh...
> sys-devel/libtool: 1.4.3-r4, 1.5.22
> virtual/os-headers: 2.4.19, 2.6.11-r2
emerge -C =sys-kernel/linux-headers-2.4.19 =sys-devel/libtool-1.4.3-r4; emerge sys-kernel/linux-headers sys-devel/libtool
Reopen if the above does not fix the issue.
Sorry. I followed the recommended course of action, but got an, as far as I can see, identical error: i686-pc-linux-gnu-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/in put -I../../../lib -I../../../src/libffmpeg/libavutil -DSIMPLE_IDCT -DHAVE_AV_CO NFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DX INE_MPEG_ENCODER -DCONFIG_ZLIB -DCONFIG_GPL -DNDEBUG -D_REENTRANT -D_FILE_OFFSET _BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -march=athlon -O1 -pipe -fomit-frame-point er -frename-registers -ffunction-sections -mno-sse -fomit-frame-pointer -c h263. c -fPIC -DPIC -o .libs/h263.o h263.c: In function `mpeg4_decode_partition_a': h263.c:69: sorry, unimplemented: inlining failed in call to 'mpeg4_decode_dc': f unction body not available h263.c:3445: sorry, unimplemented: called from here make[5]: *** [h263.lo] Error 1 make[5]: Leaving directory `/var/tmp/portage/xine-lib-1.1.1-r3/work/xine-lib-1.1 .1/src/libffmpeg/libavcodec' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/xine-lib-1.1.1-r3/work/xine-lib-1.1 .1/src/libffmpeg/libavcodec' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/xine-lib-1.1.1-r3/work/xine-lib-1.1 .1/src/libffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/xine-lib-1.1.1-r3/work/xine-lib-1.1 .1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xine-lib-1.1.1-r3/work/xine-lib-1.1 .1' make: *** [all] Error 2 !!! ERROR: media-libs/xine-lib-1.1.1-r3 failed. !!! Function src_compile, Line 229, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Luca that's ffmpeg's code, and I can't see anything wrong with it, can you take a look? I'm getting this exact same build failure on sparc64. Interestingly, it compiles fine with the default CFLAGS setting most everyone uses on this arch -- "-O2 -mcpu=ultrapsarc -pipe" -- but change "mcpu" to "mtune", and it fails with the original poster's compile failure. I'm running gcc-3.4.5. Can you try with 1.1.2_pre20060329 ? *** Bug 128767 has been marked as a duplicate of this bug. *** Created attachment 83898 [details, diff]
patch to move functions up in source code body.
Same issue occurs with xine-lib-1.1.1-r5 and amd64. I've added a patch that seemed to fix this issue for me. Created attachment 83901 [details, diff]
fixes for several static inline function calls - just moved them up before they are called.
Created attachment 83902 [details, diff]
fix to move one static inline function up before it is called.
The same issue occurs for several static inline functions in mpeg12 and one in msmpeg4. The patches that seem to work for me are attached - NOTE: I have not QAed (beyond that of compilation) any of the patches that I am submitting. Is this still an issue with 1.1.2_pre20060328-r9 ? (In reply to comment #12) > Is this still an issue with 1.1.2_pre20060328-r9 ? > I get what looks like pretty much the same (though not identical) failure with 1.1.2_pre20060328-r9: i686-pc-linux-gnu-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 -I../../../lib -I../../../src/libffmpeg/libavutil -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -DCONFIG_GPL `test "-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -march=athlon-xp -pipe -O1 -frename-registers -ffunction-sections" = "-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -g -DDEBUG -DENABLE_IPV6 -march=athlon-xp -pipe -O1 -frename-registers -ffunction-sections" && echo -DCONFIG_ENCODERS` -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -march=athlon-xp -pipe -O1 -frename-registers -ffunction-sections -c -o h263dec.lo `test -f 'h263dec.c' || echo './'`h263dec.c h263.c: In function `mpeg4_decode_partition_a': h263.c:69: sorry, unimplemented: inlining failed in call to 'mpeg4_decode_dc': function body not available h263.c:3447: sorry, unimplemented: called from here make[5]: *** [h263.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-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 -I../../../lib -I../../../src/libffmpeg/libavutil -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -DCONFIG_GPL -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -march=athlon-xp -pipe -O1 -frename-registers -ffunction-sections -c h263dec.c -fPIC -DPIC -o .libs/h263dec.o make[5]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r9/work/xine-lib-1.1.2cvs/src/libffmpeg/libavcodec' make[4]: *** [all-recursive] Error 1 etc. etc. The failure I reported in comment #13 occurs with CFLAGS="-march=athlon-xp -pipe -O1" but does not occur with CFLAGS="-march=athlon-xp -pipe -O2" Fixed in the hard way, external ffmpeg is always used now. |