public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
@ 2015-02-01 18:44 Matthias Hanft
  2015-02-01 19:13 ` Alexey Mishustin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Matthias Hanft @ 2015-02-01 18:44 UTC (permalink / raw
  To: gentoo-user

Hi,

I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"

When I did "emerge -NDuv @world" afterwards, there were some re-installs.
Everything was fine, except ffmpeg. emerge displays:

[ebuild   R    ] media-video/ffmpeg-1.2.6-r1  USE="bzip2 encode examples fontconfig gnutls hardcoded-tables iconv libcaca mp3 network truetype vorbis x264 xvid zlib -X -aac -aacplus -alsa (-altivec)
-amr -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -faac -fdk -flite -frei0r -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libsoxr -libv4l -modplug (-neon) -openal -openssl -opus -oss
-pic -pulseaudio -rtmp -schroedinger -sdl -speex -static-libs {-test} -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx (-3dnow%) (-3dnowext%) (-avx%) (-mmx%) (-mmxext%) (-ssse3%)"
CPU_FLAGS_X86="mmx%* mmxext%* -3dnow% -3dnowext% -avx% -ssse3%" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 KiB

and running emerge, after many lines, I get

[...]
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mpeg12.c:1164:12: warning: 'mpeg_decode_update_thread_context' defined but not used [-Wunused-function]
 static int mpeg_decode_update_thread_context(AVCodecContext *avctx, const AVCodecContext *avctx_from)
            ^
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/common.mak:48: recipe for target 'libavcodec/motion_est.o' failed
make: *** [libavcodec/motion_est.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: media-video/ffmpeg-1.2.6-r1::gentoo failed (compile phase):
 *   emake failed

Google can't find this special error message (yet?), so I believe I'm
the only one getting that error (and, hence, didn't want to file a bug
report instantly). Perhaps I set some weird use flags?

(No graphics installed on that machine, it's just a server which uses
command-line ffmpeg-converting, mainly sound files, not even videos.)

Thanks,

-Matt


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 18:44 [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Matthias Hanft
@ 2015-02-01 19:13 ` Alexey Mishustin
  2015-02-01 20:24   ` Mike Gilbert
  2015-02-01 19:17 ` Alexander Kapshuk
  2015-02-01 19:42 ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Mike Gilbert
  2 siblings, 1 reply; 11+ messages in thread
From: Alexey Mishustin @ 2015-02-01 19:13 UTC (permalink / raw
  To: gentoo-user

2015-02-01 21:44 GMT+03:00 Matthias Hanft <mh@hanft.de>:
> Hi,

Hello

> I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
> told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"

"cpuinfo2cpuflags-x86" isn't telling to turn on all these flags
unconditionally but only those that are included in "USE" in
make.conf.

> When I did "emerge -NDuv @world" afterwards, there were some re-installs.
> Everything was fine, except ffmpeg. emerge displays:
>
> [ebuild   R    ] media-video/ffmpeg-1.2.6-r1  USE="bzip2 encode examples fontconfig gnutls hardcoded-tables iconv libcaca mp3 network truetype vorbis x264 xvid zlib -X -aac -aacplus -alsa (-altivec)
> -amr -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -faac -fdk -flite -frei0r -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libsoxr -libv4l -modplug (-neon) -openal -openssl -opus -oss
> -pic -pulseaudio -rtmp -schroedinger -sdl -speex -static-libs {-test} -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx (-3dnow%) (-3dnowext%) (-avx%) (-mmx%) (-mmxext%) (-ssse3%)"
> CPU_FLAGS_X86="mmx%* mmxext%* -3dnow% -3dnowext% -avx% -ssse3%" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 KiB
>
> and running emerge, after many lines, I get
>
> [...]
> /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mpeg12.c:1164:12: warning: 'mpeg_decode_update_thread_context' defined but not used [-Wunused-function]
>  static int mpeg_decode_update_thread_context(AVCodecContext *avctx, const AVCodecContext *avctx_from)
>             ^
> /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/common.mak:48: recipe for target 'libavcodec/motion_est.o' failed
> make: *** [libavcodec/motion_est.o] Error 1
> make: *** Waiting for unfinished jobs....
>  * ERROR: media-video/ffmpeg-1.2.6-r1::gentoo failed (compile phase):
>  *   emake failed
>
> Google can't find this special error message (yet?), so I believe I'm
> the only one getting that error (and, hence, didn't want to file a bug
> report instantly). Perhaps I set some weird use flags?
>
> (No graphics installed on that machine, it's just a server which uses
> command-line ffmpeg-converting, mainly sound files, not even videos.)
>
> Thanks,
>
> -Matt

-- 
Regards,
Alex


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 18:44 [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Matthias Hanft
  2015-02-01 19:13 ` Alexey Mishustin
@ 2015-02-01 19:17 ` Alexander Kapshuk
  2015-02-02  9:36   ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags [SOLVED] Matthias Hanft
  2015-02-01 19:42 ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Mike Gilbert
  2 siblings, 1 reply; 11+ messages in thread
From: Alexander Kapshuk @ 2015-02-01 19:17 UTC (permalink / raw
  To: Gentoo mailing list

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

On Sun, Feb 1, 2015 at 8:44 PM, Matthias Hanft <mh@hanft.de> wrote:

> Hi,
>
> I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
> told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
>
> When I did "emerge -NDuv @world" afterwards, there were some re-installs.
> Everything was fine, except ffmpeg. emerge displays:
>
> [ebuild   R    ] media-video/ffmpeg-1.2.6-r1  USE="bzip2 encode examples
> fontconfig gnutls hardcoded-tables iconv libcaca mp3 network truetype
> vorbis x264 xvid zlib -X -aac -aacplus -alsa (-altivec)
> -amr -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -faac -fdk
> -flite -frei0r -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libsoxr
> -libv4l -modplug (-neon) -openal -openssl -opus -oss
> -pic -pulseaudio -rtmp -schroedinger -sdl -speex -static-libs {-test}
> -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx (-3dnow%)
> (-3dnowext%) (-avx%) (-mmx%) (-mmxext%) (-ssse3%)"
> CPU_FLAGS_X86="mmx%* mmxext%* -3dnow% -3dnowext% -avx% -ssse3%"
> FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex
> pktdumper qt-faststart trasher" 0 KiB
>
> and running emerge, after many lines, I get
>
> [...]
> /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mpeg12.c:1164:12:
> warning: 'mpeg_decode_update_thread_context' defined but not used
> [-Wunused-function]
>  static int mpeg_decode_update_thread_context(AVCodecContext *avctx, const
> AVCodecContext *avctx_from)
>             ^
> /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/common.mak:48:
> recipe for target 'libavcodec/motion_est.o' failed
> make: *** [libavcodec/motion_est.o] Error 1
> make: *** Waiting for unfinished jobs....
>  * ERROR: media-video/ffmpeg-1.2.6-r1::gentoo failed (compile phase):
>  *   emake failed
>
> Google can't find this special error message (yet?), so I believe I'm
> the only one getting that error (and, hence, didn't want to file a bug
> report instantly). Perhaps I set some weird use flags?
>
> (No graphics installed on that machine, it's just a server which uses
> command-line ffmpeg-converting, mainly sound files, not even videos.)
>
> Thanks,
>
> -Matt
>
>
What's the output of the command lines shown below on your system?

grep -Es 'ffmpeg|CPU' /etc/portage/*

equery -q u media-video/ffmpeg|grep cpu

[-- Attachment #2: Type: text/html, Size: 2883 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 18:44 [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Matthias Hanft
  2015-02-01 19:13 ` Alexey Mishustin
  2015-02-01 19:17 ` Alexander Kapshuk
@ 2015-02-01 19:42 ` Mike Gilbert
  2015-02-01 20:01   ` Matthias Hanft
  2 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2015-02-01 19:42 UTC (permalink / raw
  To: gentoo-user

On Sun, Feb 1, 2015 at 1:44 PM, Matthias Hanft <mh@hanft.de> wrote:
> Hi,
>
> I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
> told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
>
> When I did "emerge -NDuv @world" afterwards, there were some re-installs.
> Everything was fine, except ffmpeg. emerge displays:
>
> [ebuild   R    ] media-video/ffmpeg-1.2.6-r1  USE="bzip2 encode examples fontconfig gnutls hardcoded-tables iconv libcaca mp3 network truetype vorbis x264 xvid zlib -X -aac -aacplus -alsa (-altivec)
> -amr -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -faac -fdk -flite -frei0r -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libsoxr -libv4l -modplug (-neon) -openal -openssl -opus -oss
> -pic -pulseaudio -rtmp -schroedinger -sdl -speex -static-libs {-test} -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx (-3dnow%) (-3dnowext%) (-avx%) (-mmx%) (-mmxext%) (-ssse3%)"
> CPU_FLAGS_X86="mmx%* mmxext%* -3dnow% -3dnowext% -avx% -ssse3%" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 KiB
>
> and running emerge, after many lines, I get
>
> [...]

You failed to include the real error message in your email. Look
further up in the log for a line containing "error:".


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 19:42 ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Mike Gilbert
@ 2015-02-01 20:01   ` Matthias Hanft
  2015-02-01 20:32     ` Matthias Hanft
  0 siblings, 1 reply; 11+ messages in thread
From: Matthias Hanft @ 2015-02-01 20:01 UTC (permalink / raw
  To: gentoo-user

Mike Gilbert wrote:
> 
> You failed to include the real error message in your email. Look
> further up in the log for a line containing "error:".

Ah, I actually missed that:

/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/x86/mathops.h:94:1: error: 'asm' operand has impossible constrain
ts

(12 times)

Kernel 3.17.7, BTW. Last compilation is a long time ago (maybe 3.12 or so)

-Matt



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 19:13 ` Alexey Mishustin
@ 2015-02-01 20:24   ` Mike Gilbert
  2015-02-01 20:38     ` Alexey Mishustin
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2015-02-01 20:24 UTC (permalink / raw
  To: gentoo-user

On Sun, Feb 1, 2015 at 2:13 PM, Alexey Mishustin <shumkar@shumkar.ru> wrote:
> 2015-02-01 21:44 GMT+03:00 Matthias Hanft <mh@hanft.de>:
>> Hi,
>
> Hello
>
>> I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
>> told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
>
> "cpuinfo2cpuflags-x86" isn't telling to turn on all these flags
> unconditionally but only those that are included in "USE" in
> make.conf.

Where did you get that silly idea? cpuinfo2cpuflags-x86 tells you
exactly what to put in make.conf based on your host CPU.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 20:01   ` Matthias Hanft
@ 2015-02-01 20:32     ` Matthias Hanft
  0 siblings, 0 replies; 11+ messages in thread
From: Matthias Hanft @ 2015-02-01 20:32 UTC (permalink / raw
  To: gentoo-user

I wrote:
> 
> /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/x86/mathops.h:94:1: error: 'asm' operand has impossible constraints

The piece of source code at that point:

#if HAVE_CMOV
#define COPY3_IF_LT(x, y, a, b, c, d)\
__asm__ volatile(\
    "cmpl  %0, %3       \n\t"\
    "cmovl %3, %0       \n\t"\
    "cmovl %4, %1       \n\t"\
    "cmovl %5, %2       \n\t"\
    : "+&r" (x), "+&r" (a), "+r" (c)\
    : "r" (y), "r" (b), "r" (d)\
);
#endif

and the emerge messages:

[...]
In file included from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mathops.h:45:0,
                 from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/motion_est.c:35:
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/x86/mathops.h:94:1: error: 'asm' operand has impossible constraints
 __asm__ volatile(\
 ^
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/motion_est.c:378:5: note: in expansion of macro 'COPY3_IF_LT'
     COPY3_IF_LT(dminh, d, dx, x, dy, y)\
     ^
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/motion_est.c:440:17: note: in expansion of macro 'CHECK_SAD_HALF_MV'
                 CHECK_SAD_HALF_MV(xy2, +1, -1)
                 ^
[repeated 12 times]

-Matt



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 20:24   ` Mike Gilbert
@ 2015-02-01 20:38     ` Alexey Mishustin
  2015-02-01 20:41       ` Alexey Mishustin
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey Mishustin @ 2015-02-01 20:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]

02.02.2015 0:24 пользователь "Mike Gilbert" <floppym@gentoo.org> написал:
>
> On Sun, Feb 1, 2015 at 2:13 PM, Alexey Mishustin <shumkar@shumkar.ru>
wrote:
> > 2015-02-01 21:44 GMT+03:00 Matthias Hanft <mh@hanft.de>:
> >> Hi,
> >
> > Hello
> >
> >> I have installed the new CPU_FLAGS_X86, as "cpuinfo2cpuflags-x86"
> >> told me: CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
> >
> > "cpuinfo2cpuflags-x86" isn't telling to turn on all these flags
> > unconditionally but only those that are included in "USE" in
> > make.conf.
>
> Where did you get that silly idea? cpuinfo2cpuflags-x86 tells you
> exactly what to put in make.conf based on your host CPU.

Ok. It tells me what _could_ be put in the new variable in make.conf. But
make.conf existed before this new variable. And what flags existed in it -
it's a separate question. If one wants to keep 'status quo', he should only
duplicate those cpu flags whis were in USE to this new variable. If some
cpu flag wasn't in USE, he shouldn't add it to the new variable.

--
Regards,
Alex

[-- Attachment #2: Type: text/html, Size: 1458 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
  2015-02-01 20:38     ` Alexey Mishustin
@ 2015-02-01 20:41       ` Alexey Mishustin
  0 siblings, 0 replies; 11+ messages in thread
From: Alexey Mishustin @ 2015-02-01 20:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]

> whis were in USE

which were in USE

[-- Attachment #2: Type: text/html, Size: 54 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags [SOLVED]
  2015-02-01 19:17 ` Alexander Kapshuk
@ 2015-02-02  9:36   ` Matthias Hanft
  2015-02-02 17:48     ` Alexander Kapshuk
  0 siblings, 1 reply; 11+ messages in thread
From: Matthias Hanft @ 2015-02-02  9:36 UTC (permalink / raw
  To: gentoo-user

Alexander Kapshuk wrote:
> 
> What's the output of the command lines shown below on your system?
> grep -Es 'ffmpeg|CPU' /etc/portage/*

Ah uh...

/etc/portage/package.use:# this is necessary for ffmpeg update (see gentoo-bug 290741)
/etc/portage/package.use:media-video/ffmpeg -pic

Seems that I didn't USE "mmx" before, and, therefore, had to disable
"pic" manually (because of the bug mentioned). Now "mmx" came into
CPU_FLAGS, and obviously "mmx" and "pic" have to be enabled or disabled
simultaneously.

Thanks - this was a long-forgotten configuration...

-Matt



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags [SOLVED]
  2015-02-02  9:36   ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags [SOLVED] Matthias Hanft
@ 2015-02-02 17:48     ` Alexander Kapshuk
  0 siblings, 0 replies; 11+ messages in thread
From: Alexander Kapshuk @ 2015-02-02 17:48 UTC (permalink / raw
  To: Gentoo mailing list

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

On Mon, Feb 2, 2015 at 11:36 AM, Matthias Hanft <mh@hanft.de> wrote:

> Alexander Kapshuk wrote:
> >
> > What's the output of the command lines shown below on your system?
> > grep -Es 'ffmpeg|CPU' /etc/portage/*
>
> Ah uh...
>
> /etc/portage/package.use:# this is necessary for ffmpeg update (see
> gentoo-bug 290741)
> /etc/portage/package.use:media-video/ffmpeg -pic
>
> Seems that I didn't USE "mmx" before, and, therefore, had to disable
> "pic" manually (because of the bug mentioned). Now "mmx" came into
> CPU_FLAGS, and obviously "mmx" and "pic" have to be enabled or disabled
> simultaneously.
>
> Thanks - this was a long-forgotten configuration...
>
> -Matt
>
>
> No worries.

Glad it worked out for you.

[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-02 17:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01 18:44 [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Matthias Hanft
2015-02-01 19:13 ` Alexey Mishustin
2015-02-01 20:24   ` Mike Gilbert
2015-02-01 20:38     ` Alexey Mishustin
2015-02-01 20:41       ` Alexey Mishustin
2015-02-01 19:17 ` Alexander Kapshuk
2015-02-02  9:36   ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags [SOLVED] Matthias Hanft
2015-02-02 17:48     ` Alexander Kapshuk
2015-02-01 19:42 ` [gentoo-user] Cannot reinstall ffmpeg since new cpu flags Mike Gilbert
2015-02-01 20:01   ` Matthias Hanft
2015-02-01 20:32     ` Matthias Hanft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox