Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error when emerging ffmpeg
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
121488
n00b
n00b


Joined: 21 Oct 2005
Posts: 9

PostPosted: Tue Jun 19, 2018 7:59 pm    Post subject: Error when emerging ffmpeg Reply with quote

Hi,

I get the following errors when trying to emerge ffmpeg. Any ideas what I can do to resolve this?

Code:
src/libpostproc/postprocess_template.c: In function ‘dering_SSE2’:
src/libpostproc/postprocess_template.c:1097:5: error: ‘asm’ operand has impossible constraints
     __asm__ volatile(
     ^

src/libswscale/x86/rgb2rgb_template.c: In function ‘rgb24toyv12_mmx’:
src/libswscale/x86/rgb2rgb_template.c:1727:9: error: ‘asm’ operand has impossible constraints
         __asm__ volatile(
         ^


The emerge output...

https://www.dropbox.com/s/y43hma3zxbvj5id/ffmpeg.log?dl=0
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jun 19, 2018 11:01 pm    Post subject: Reply with quote

the ‘asm’ operand has impossible constraints is because gcc is starving registers, once gcc have no way to backup and find one free register for the needed operation, it will emit the "impossible constraints", as a "hey i need put that ball in that hole, to do so i need to move away the one that is in to another hole first, but there's just no hole to move it to! impossible"

this should of course appears on 32bits build.
your solve is:
* do not build 32bits version
* drop -fomit-frame-pointer because it take an extra register, and it's too much here
* reduce pressure on registers (another way to do that is by dropping need of registers, avx, sse2... take the one you wish lost, you might also build a less optimize 32bits and keep high optimization for the 64bits version)
* disable lto
* report and wait for a fix
Pick the one you think is the more acceptable for you.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4554
Location: Germany

PostPosted: Tue Jun 19, 2018 11:15 pm    Post subject: Reply with quote

Disable the LTO Stuff should probably help.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Wed Jun 20, 2018 5:29 am    Post subject: Reply with quote

https://bugs.gentoo.org/645778
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
121488
n00b
n00b


Joined: 21 Oct 2005
Posts: 9

PostPosted: Thu Jun 21, 2018 7:46 pm    Post subject: Reply with quote

Josef.95 wrote:
Disable the LTO Stuff should probably help.


I've removed LTO from my make.conf now ffmpeg emerges.

Thank you.
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