[FFmpeg-devel] [PATCH] get_cabac_inline_x86: Don't inline if 32-bit Windows
Christopher Degawa
ccom at randomderp.com
Tue Jan 3 20:32:29 EET 2023
On Mon, Jan 2, 2023 at 5:36 PM Hendrik Leppkes <h.leppkes at gmail.com> wrote:
> On Tue, Jan 3, 2023 at 12:01 AM Christopher Degawa <ccom at randomderp.com>
> wrote:
> >
>
> I regularly build with 12.2 on win32 and its fine.
>
> In fact, there is a fate station for that:
>
> https://fate.ffmpeg.org/report.cgi?slot=x86_32-mingw-w64-dll-windows-native&time=20230102232810
>
> So if you are seeing this issue, more details that trigger it will be
> required, and maybe a more targeted fix.
>
> - Hendrik
I can try to see if I can narrow down the configuration more, and try the
one used in fate, but for now, I was reproducing it by using ../configure
&& make -j 12
As additional information for now, I'm using
Target: i686-w64-mingw32
gcc version 12.2.0 (Rev7, Built by MSYS2 project)
with no notable environment variables like CFLAGS etc.
I did make sure to update my packages from msys2.
Interestingly, when I ran "../configure --enable-gpl
--enable-memory-poisoning --arch=x86 --cpu=i686 --enable-shared" there were
no errors, but did confirm that with just "../configure
&& make libavcodec/h264_cabac.o" the error reappeared.
CC libavcodec/h264_cabac.o
In file included from C:/Users/cddeg/FFmpeg/libavcodec/cabac_functions.h:49,
from C:/Users/cddeg/FFmpeg/libavcodec/h264_cabac.c:36:
In function 'get_cabac_inline_x86',
inlined from 'get_cabac' at
C:/Users/cddeg/FFmpeg/libavcodec/cabac_functions.h:145:12,
inlined from 'decode_cabac_mb_intra4x4_pred_mode' at
C:/Users/cddeg/FFmpeg/libavcodec/h264_cabac.c:1377:9,
inlined from 'ff_h264_decode_mb_cabac' at
C:/Users/cddeg/FFmpeg/libavcodec/h264_cabac.c:2081:32:
C:/Users/cddeg/FFmpeg/libavcodec/x86/cabac.h:199:5: error: 'asm' operand
has impossible constraints
199 | __asm__ volatile(
| ^~~~~~~
C:/Users/cddeg/FFmpeg/libavcodec/x86/cabac.h:199:5: error: 'asm' operand
has impossible constraints
C:/Users/cddeg/FFmpeg/libavcodec/x86/cabac.h:199:5: error: 'asm' operand
has impossible constraints
C:/Users/cddeg/FFmpeg/libavcodec/x86/cabac.h:199:5: error: 'asm' operand
has impossible constraints
make: *** [/c/Users/cddeg/FFmpeg/ffbuild/common.mak:81:
libavcodec/h264_cabac.o] Error 1
I will try to see which flag in that configure line causes the issues to
disappear
More information about the ffmpeg-devel
mailing list