Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffmpeg compile error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Dec 15, 2009 4:18 pm    Post subject: ffmpeg compile error [SOLVED] Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Dec 15, 2009 5:25 pm    Post subject: Reply with quote

Yes, there's already a bug about it - it looks like
a compiler problem with inlining.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Dec 15, 2009 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Wed Dec 16, 2009 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Wed Dec 16, 2009 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
keola
n00b
n00b


Joined: 22 Feb 2005
Posts: 53

PostPosted: Thu Jul 01, 2010 2:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum