View previous topic :: View next topic |
Author |
Message |
121488 n00b
Joined: 21 Oct 2005 Posts: 9
|
Posted: Tue Jun 19, 2018 7:59 pm Post subject: Error when emerging ffmpeg |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Jun 19, 2018 11:01 pm Post subject: |
|
|
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 |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4554 Location: Germany
|
Posted: Tue Jun 19, 2018 11:15 pm Post subject: |
|
|
Disable the LTO Stuff should probably help. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
|
Back to top |
|
|
121488 n00b
Joined: 21 Oct 2005 Posts: 9
|
Posted: Thu Jun 21, 2018 7:46 pm Post subject: |
|
|
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 |
|
|
|