[FFmpeg-user] Compiling Error within MSYS2-mingw32-environment

Reiner Sombrowsky test at somby.de
Sun Feb 26 14:49:45 EET 2023


Hello *ffmpeg* developers,
I compile *ffmpeg* sources within a *Windows 11 MSYS2*
*mingw64* and *mingw32* environment for using in my
applications that can be downloaded for free
on my homepage***www.somby.de <https://www.somby.de>*.
Since the last 2 months I have problems with compiling
within *mingw32* environment. The compiling within *mingw64*
environment is ok.
I use the *git repository* of *ffmpeg*. My last checked
*HEAD -> master* revision was *ac6eec1fc2*.
Following *MSYS2* packets are installed:
*pacman -S --needed base-devel \**
**          mingw-w64-i686-gcc \**
**          mingw-w64-x86_64-gcc \**
**          mingw-w64-i686-toolchain \**
**          mingw-w64-x86_64-toolchain \**
**          git \**
**          subversion \**
**          mercurial \**
**          mingw-w64-i686-cmake \**
**          mingw-w64-x86_64-cmake \**
**          autoconf \**
**          mingw-w64-i686-gtk3 \**
**          mingw-w64-x86_64-gtk3 \**
**          yasm \**
**          nasm \**
**          perl \**
**          diffutils \**
**          make \**
**          pkgconf \**
**          mingw-w64-i686-SDL2 \**
**          mingw-w64-x86_64-SDL2 \**
**          mingw-w64-i686-ffmpeg \**
**          mingw-w64-x86_64-ffmpeg *


The current versions of
*mingw-w64-i686-gcc* and *mingw-w64-x86_64-gcc* are
*12.2.0-10*.

My current *ffmpeg-configuration* is:
*./configure --enable-gpl \**
**     --enable-libmp3lame \**
**     --enable-libxvid \**
**     --enable-libx264 \**
**     --enable-libx265 \**
**     --enable-libvorbis \**
**     --disable-static \**
**     --enable-shared \**
**     --enable-ffplay \**
**     --disable-debug \**
**     --enable-vulkan \**
**     --enable-version3 \**
**     --enable-opengl \**
**     --prefix="$HOME/ffmpeg_build"*

If I compile within the *mingw32* environment
the following error occurs during *make*:
*...**
**CC      libavcodec/h2645_sei.o**
**CC      libavcodec/h2645_vui.o**
**CC      libavcodec/h2645data.o**
**CC      libavcodec/h264_cabac.o**
**In file included from libavcodec/cabac_functions.h:49,**
**                 from libavcodec/h264_cabac.c:36:**
**In function 'get_cabac_inline_x86',**
**    inlined from 'get_cabac' at libavcodec/cabac_functions.h:145:12,**
**    inlined from 'decode_cabac_mb_intra4x4_pred_mode' at 
libavcodec/h264_cabac.c:1377:9,**
**    inlined from 'ff_h264_decode_mb_cabac' at 
libavcodec/h264_cabac.c:2081:32:**
**libavcodec/x86/cabac.h:199:5: error: 'asm' operand has impossible 
constraints**
**  199 |     __asm__ volatile(**
**      |     ^~~~~~~**
**libavcodec/x86/cabac.h:199:5: error: 'asm' operand has impossible 
constraints**
**libavcodec/x86/cabac.h:199:5: error: 'asm' operand has impossible 
constraints**
**libavcodec/x86/cabac.h:199:5: error: 'asm' operand has impossible 
constraints**
**make: *** [ffbuild/common.mak:81: libavcodec/h264_cabac.o] Error 1*

Perhaps you can fix this error in the
next revisions.

Best regards
Reiner Sombrowsky


More information about the ffmpeg-user mailing list