View previous topic :: View next topic |
Author |
Message |
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Tue Dec 15, 2009 4:18 pm Post subject: ffmpeg compile error [SOLVED] |
|
|
When I compile the latest ffmpeg I get the following error:
i686-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I. -I"/var/tmp/portage/media-video/ffmpeg-0.5_p20373/work/ffmpeg-0.5_p20373" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -march=pentium4 -fomit-frame-pointer -pipe -fomit-frame-pointer -march=pentium4 -std=c99 -fomit-frame-pointer -fPIC -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -MMD -MF libavcodec/x86/dsputil_mmx.d -MT libavcodec/x86/dsputil_mmx.o -c -o libavcodec/x86/dsputil_mmx.o libavcodec/x86/dsputil_mmx.c
libavcodec/x86/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
libavcodec/x86/dsputil_mmx.c:727: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
libavcodec/x86/dsputil_mmx.c:727: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/h264dsp_mmx.c:633: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/h264dsp_mmx.c:633: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
libavcodec/x86/dsputil_mmx.c:727: error: 'asm' operand has impossible constraints
make: *** [libavcodec/x86/dsputil_mmx.o] Error 1
The system is a x86 P4 with mmx instructions. On and64 it's OK. Any thoughts?
TIA _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Last edited by binro on Wed Dec 16, 2009 1:57 pm; edited 1 time in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Tue Dec 15, 2009 5:25 pm Post subject: |
|
|
Yes, there's already a bug about it - it looks like
a compiler problem with inlining. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Dec 15, 2009 10:09 pm Post subject: |
|
|
I have that exact same version of ffmpeg installed on ~x86. No problem.
Code: | # qlist -Iv media-video/ffmpeg
media-video/ffmpeg-0.5_p20373 |
CFLAGS/CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Wed Dec 16, 2009 12:05 pm Post subject: |
|
|
Mike Hunt wrote: | I have that exact same version of ffmpeg installed on ~x86. No problem.
Code: | # qlist -Iv media-video/ffmpeg
media-video/ffmpeg-0.5_p20373 |
CFLAGS/CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" |
Curious, I have very similar settings. I am using gcc 4.3.4. _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Wed Dec 16, 2009 1:57 pm Post subject: |
|
|
VoidMage wrote: | Yes, there's already a bug about it - it looks like
a compiler problem with inlining. |
Thanks, I finally managed to find a bug report. USE=-pic solves the problem. _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling |
|
Back to top |
|
|
keola n00b
Joined: 22 Feb 2005 Posts: 53
|
Posted: Thu Jul 01, 2010 2:08 pm Post subject: |
|
|
Confirmed - using -pic worked for me on my Atom 330.
Every time I do a new install or a seriously overdue update, ffmpeg always gives me some sort of trouble!
Thanks! |
|
Back to top |
|
|
|