[FFmpeg-user] ./configure: 1434: shift: can't shift that many

Reindl Harald h.reindl at thelounge.net
Mon Aug 12 11:17:38 EEST 2019



Am 12.08.19 um 09:54 schrieb Pei Jia:
> Hi, all:
> 
> I'm just trying to build *FFmpeg 4.2 release* from source, on Ubuntu
> 19.04, with gcc 8.3.0:
> 
> However, failed with this *ERROR* message:
> 
> /./configure: 1434: shift: can't shift that many/
> 
> *Line 1434* of file *configure* is *shift 4* in function
> *test_pkg_config()*

what about post your configure line?
obviously not a general problem


[harry at srv-rhsoft:~]$ ffmpeg
ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (GCC)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin
--mandir=/usr/local/man
--extra-cflags='-I/rpmbuild/BUILD/ffmpeg-20180810/x264-static -m64 -O2
-g0 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge
-ftree-slp-vectorize -fopt-info-vec-optimized -fopenmp -pipe
-fno-strict-aliasing -fomit-frame-pointer -fexceptions
-fno-asynchronous-unwind-tables -fstack-protector-strong
--param=ssp-buffer-size=6 -Wp,-D_FORTIFY_SOURCE=2 -Wstack-protector
-Wformat -Werror=format-security -O3 -fno-strict-aliasing
-fno-tree-vectorize -ftree-slp-vectorize -fno-gcse-after-reload
-fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops
-fno-predictive-commoning -fno-tree-loop-distribute-patterns
-fno-unswitch-loops -Os -fno-strict-aliasing -fno-tree-vectorize
-ftree-slp-vectorize -falign-functions -falign-jumps -falign-loops
-fno-align-labels -fexpensive-optimizations -fmove-loop-invariants
-foptimize-strlen -fexpensive-optimizations -foptimize-strlen -fdce
-fdse -ftree-ch -ftree-dce -ftree-dse -fsplit-paths -fpeel-loops -fPIC
-flto=10 -ffat-lto-objects -fwhole-program -Wno-pointer-sign
-Wno-array-bounds -Wno-format-truncation -Wno-deprecated-declarations
-Wno-strict-overflow -Wno-discarded-qualifiers -Wno-address
-Wno-unused-variable -Wno-unused-function -Wno-unused-result
-Wno-misleading-indentation -fuse-ld=gold -fuse-linker-plugin
-Wa,--noexecstack'
--extra-ldflags='-I/rpmbuild/BUILD/ffmpeg-20180810/x264-static
-L/rpmbuild/BUILD/ffmpeg-20180810/x264-static -ldl -Wl,--as-needed
-Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -m64 -O2 -g0 -mfpmath=sse
-mavx -msse2avx -march=sandybridge -mtune=sandybridge
-ftree-slp-vectorize -fopt-info-vec-optimized -fopenmp -pipe
-fno-strict-aliasing -fomit-frame-pointer -fexceptions
-fno-asynchronous-unwind-tables -fstack-protector-strong
--param=ssp-buffer-size=6 -Wp,-D_FORTIFY_SOURCE=2 -Wstack-protector
-Wformat -Werror=format-security -O3 -fno-strict-aliasing
-fno-tree-vectorize -ftree-slp-vectorize -fno-gcse-after-reload
-fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops
-fno-predictive-commoning -fno-tree-loop-distribute-patterns
-fno-unswitch-loops -Os -fno-strict-aliasing -fno-tree-vectorize
-ftree-slp-vectorize -falign-functions -falign-jumps -falign-loops
-fno-align-labels -fexpensive-optimizations -fmove-loop-invariants
-foptimize-strlen -fexpensive-optimizations -foptimize-strlen -fdce
-fdse -ftree-ch -ftree-dce -ftree-dse -fsplit-paths -fpeel-loops -fPIC
-flto=10 -ffat-lto-objects -fwhole-program -Wno-pointer-sign
-Wno-array-bounds -Wno-format-truncation -Wno-deprecated-declarations
-Wno-strict-overflow -Wno-discarded-qualifiers -Wno-address
-Wno-unused-variable -Wno-unused-function -Wno-unused-result
-Wno-misleading-indentation -pie -fPIE -fuse-ld=gold -fuse-linker-plugin
-Wa,--noexecstack' --ar=gcc-ar --ranlib=true --enable-lto --enable-gpl
--enable-libmp3lame --enable-libtheora --enable-libvpx --enable-libx264
--enable-libx265 --enable-nonfree --enable-openssl --enable-pic
--enable-runtime-cpudetect --enable-static --enable-version3
--disable-amd3dnow --disable-amd3dnowext --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe
--disable-htmlpages --disable-hwaccels --disable-iconv
--disable-libdc1394 --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb
--disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libspeex --disable-libvorbis
--disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes
--disable-libxcb-shape --disable-libxvid --disable-podpages
--disable-postproc --disable-protocol=gopher --disable-shared
--disable-txtpages --disable-xlib
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile
options] outfile}...


More information about the ffmpeg-user mailing list