[FFmpeg-trac] #10491(avcodec:new): FFMPEG 6.0 compilation fails using gcc 13

FFmpeg trac at avcodec.org
Fri Jul 28 00:15:13 EEST 2023


#10491: FFMPEG 6.0 compilation fails using gcc 13
-------------------------------------+-------------------------------------
             Reporter:  Igor         |                     Type:  defect
  Serganov                           |
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  6.0
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 FFMPEG 6.0 build from source fails with gcc 13 compiler. With previous gcc
 version compilation worked well. See the script below:
 {{{
 wget -O ffmpeg-6.0.tar.bz2 https://ffmpeg.org/releases/ffmpeg-6.0.tar.bz2
 && \
 tar xjvf ffmpeg-6.0.tar.bz2 && \
 cd ffmpeg-6.0 && \
 PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
 ./configure \
   --pkg-config-flags="--static" \
   --extra-ldexeflags="-static" \
   --extra-cflags='-static -I$HOME/ffmpeg_build/include' \
   --extra-ldflags="-static -L$HOME/ffmpeg_build/lib" \
   --extra-cxxflags='-static -I$HOME/ffmpeg_build/include' \
   --extra-libs='-lpthread -lm -lz -lfdk-aac' \
   --ld="g++" \
   --bindir="/usr/local/bin" \
   --enable-static \
   --disable-debug \
   --disable-libxcb \
   --disable-libxcb-shm \
   --disable-libxcb-xfixes \
   --disable-libxcb-shape \
   --disable-shared \
   --disable-outdevs \
   --disable-indev=sndio \
   --disable-outdev=sndio \
   --enable-gpl \
   --enable-openssl \
   --enable-libfdk-aac \
   --enable-libfreetype \
   --enable-libmp3lame \
   --enable-libopus \
   --enable-libx264 \
   --enable-libx265 \
   --enable-nonfree && \
 PATH="$HOME/bin:$PATH" make -j10 && \
 make -j10 install && \
 hash -r
 }}}
 Error output:

 336.1 ./libavcodec/x86/mathops.h: Assembler messages:
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 ./libavcodec/x86/mathops.h:125: Error: operand type mismatch for
 `shr'
 336.1 make: *** [ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10491>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list