Gentoo Archives: gentoo-user

From: Matthias Hanft <mh@×××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags
Date: Sun, 01 Feb 2015 20:32:55
Message-Id: 54CE8D6D.70509@hanft.de
In Reply to: Re: [gentoo-user] Cannot reinstall ffmpeg since new cpu flags by Matthias Hanft
1 I wrote:
2 >
3 > /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
4
5 The piece of source code at that point:
6
7 #if HAVE_CMOV
8 #define COPY3_IF_LT(x, y, a, b, c, d)\
9 __asm__ volatile(\
10 "cmpl %0, %3 \n\t"\
11 "cmovl %3, %0 \n\t"\
12 "cmovl %4, %1 \n\t"\
13 "cmovl %5, %2 \n\t"\
14 : "+&r" (x), "+&r" (a), "+r" (c)\
15 : "r" (y), "r" (b), "r" (d)\
16 );
17 #endif
18
19 and the emerge messages:
20
21 [...]
22 In file included from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mathops.h:45:0,
23 from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/motion_est.c:35:
24 /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
25 __asm__ volatile(\
26 ^
27 /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'
28 COPY3_IF_LT(dminh, d, dx, x, dy, y)\
29 ^
30 /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'
31 CHECK_SAD_HALF_MV(xy2, +1, -1)
32 ^
33 [repeated 12 times]
34
35 -Matt