ffmpeg-windows-build-helpers
ffmpeg-windows-build-helpers copied to clipboard
failed at xavs_svn
Ubuntu 22.04 LTS in VMWare workstation 16.2 CPU: Intel i7-1260P
./cross_compile_ffmpeg.sh --gcc-cpu-count=12 --disable-nonfree=n --build-intel-qsv=y --cflags='-march=skylake -mtune=alderlake -Ofast'
setting cflags as -march=skylake -mtune=alderlake -Ofast
##################### Welcome ######################
Welcome to the ffmpeg cross-compile builder-helper script.
Downloads and builds will be installed to directories within /home/lzy0702/ffmpeg-windows-build-helpers/sandbox
If this is not ok, then exit now, and cd to the directory where you'd
like them installed, then run this script again from there.
NB that once you build your compilers, you can no longer rename/move
the sandbox directory, since it will have some hard coded paths in there.
You can, of course, rebuild ffmpeg from within it, etc.
Fri Jun 17 04:07:48 PM EDT 2022
sit back, this may take awhile...
MinGW-w64 compilers both already installed, not re-installing...
selecting multi build (both win32 and win64)...since both cross compilers are present assuming you want both...
Starting 32-bit builds...
Building ffmpeg dependency libraries...
doing git checkout origin/master
M Makefile
HEAD 目前位于 9d0ef11 Merge pull request #103 from pali/master
fetched no code changes, not forcing reconfigure for that...
Already made /home/lzy0702/ffmpeg-windows-build-helpers/sandbox/win32 dlfcn-win32_git ...
not svn Updating xavs_svn since usually svn repo's aren't updated frequently enough...
configuring xavs_svn (/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/win32/xavs_svn) as $ PKG_CONFIG_PATH=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig PATH=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin:$PATH ./configure --host=i686-w64-mingw32 --prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --cross-prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-
all touch files already_configured* touchname= already_configured_7de7d1094986308b9613e6ff44c4062f-
config options --host=i686-w64-mingw32 --prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --cross-prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- ./configure
No working C compiler found.
failed configure xavs_svn
Ovbiously, I have "build-essential" package installed.
you need a LANG=en_US
or LANG=C
environment
you need a
LANG=en_US
orLANG=C
environment
I switched to en_US, and still have the same problem.
LANG=en_US LANGUAGE=en_US:en LC_CTYPE="en_US" LC_NUMERIC="en_US" LC_TIME="en_US" LC_COLLATE="en_US" LC_MONETARY="en_US" LC_MESSAGES="en_US" LC_PAPER="en_US" LC_NAME="en_US" LC_ADDRESS="en_US" LC_TELEPHONE="en_US" LC_MEASUREMENT="en_US" LC_IDENTIFICATION="en_US" LC_ALL=en_US
**************Starting 64-bit builds... Building ffmpeg dependency libraries... doing git checkout origin/master M Makefile HEAD is now at 9d0ef11 Merge pull request #103 from pali/master fetched no code changes, not forcing reconfigure for that... Already made /home/lzy0702/ffmpeg-windows-build-helpers/sandbox/win64 dlfcn-win32_git ... not svn Updating xavs_svn since usually svn repo's aren't updated frequently enough... configuring xavs_svn (/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/win64/xavs_svn) as $ PKG_CONFIG_PATH=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/pkgconfig PATH=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH ./configure --host=x86_64-w64-mingw32 --prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- all touch files already_configured* touchname= already_configured_80d75c940d8ead15d2a23c177cfd9366- config options --host=x86_64-w64-mingw32 --prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/lzy0702/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- ./configure No working C compiler found. failed configure xavs_svn
nuke sandbox and try with LANG=C
again?
nuke sandbox and try with
LANG=C
again?
unfortunately, same error message.
As I tried, it seems the GCC 10.2 in the toolchain does not support 'alderlabke' architecture. GCC 10.2 only supports up to tigerlake. Maybe it's necessary to upgrade the toolchain to most up to date GCC.
Faced the same issue when trying to compile for AMD Zen 3 processors, 10.2 doesn't support Zen 3 processors -march=znver3
, unfortunately it only goes up to Zen 2.
GCC version 10.2 docs: https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gcc/x86-Options.html
gcc latest version docs: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html