Comments (8)
I have deleted the ~/ffmpeg-windows-build-helpers
directory and cloned this repo once again and now compiling with the following options:
./cross_compile_ffmpeg.sh --build-ffmpeg-static=y --build-ffmpeg-shared=n --gcc-cpu-count=6 --disable-nonfree=n --sandbox-ok=y --compiler-flavors=win64 --cflags=-march=znver3 --build-x264-with-libav=y --enable-gpl=y
Edit: It returned the following error message:
No working C compiler found.
failed configure xavs_svn
Detailed log:
svn checking out to xavs_svn
A xavs_svn.tmp/encoder
A xavs_svn.tmp/common
A xavs_svn.tmp/common/i386
A xavs_svn.tmp/common/i386/dct.h
A xavs_svn.tmp/common/i386/quant_sse2.asm
A xavs_svn.tmp/common/i386/deblock.asm
A xavs_svn.tmp/common/i386/cpu-a.asm
A xavs_svn.tmp/common/i386/dct-c.c
A xavs_svn.tmp/common/pixel.c
A xavs_svn.tmp/common/predict.h
A xavs_svn.tmp/common/i386/predict-c.c
A xavs_svn.tmp/common/i386/mc-a.asm
A xavs_svn.tmp/common/mc.h
A xavs_svn.tmp/encoder/encoder.c
A xavs_svn.tmp/encoder/macroblock.c
A xavs_svn.tmp/common/i386/mc-c.c
A xavs_svn.tmp/encoder/cavlc.c
A xavs_svn.tmp/encoder/analyse.c
A xavs_svn.tmp/encoder/rdo.c
A xavs_svn.tmp/common/i386/dct-sse2.asm
A xavs_svn.tmp/common/macroblock.h
A xavs_svn.tmp/common/i386/pixel-sse2.asm
A xavs_svn.tmp/common/osdep.h
A xavs_svn.tmp/common/common.h
A xavs_svn.tmp/tools
A xavs_svn.tmp/common/set.h
A xavs_svn.tmp/common/dct.h
A xavs_svn.tmp/common/cpu.c
A xavs_svn.tmp/encoder/macroblock.h
A xavs_svn.tmp/encoder/set.h
A xavs_svn.tmp/encoder/analyse.h
A xavs_svn.tmp/build
A xavs_svn.tmp/encoder/me.c
A xavs_svn.tmp/encoder/ratecontrol.h
A xavs_svn.tmp/encoder/slicetype.c
A xavs_svn.tmp/encoder/me.h
A xavs_svn.tmp/encoder/lookahead.c
A xavs_svn.tmp/encoder/set.c
A xavs_svn.tmp/encoder/ratecontrol.c
A xavs_svn.tmp/encoder/eval.c
A xavs_svn.tmp/build/win32
A xavs_svn.tmp/common/common.c
A xavs_svn.tmp/common/dct.c
A xavs_svn.tmp/common/macroblock.c
A xavs_svn.tmp/common/pixel.h
A xavs_svn.tmp/common/csp.h
A xavs_svn.tmp/extras
A xavs_svn.tmp/doc
A xavs_svn.tmp/common/quant.c
A xavs_svn.tmp/common/vlc.h
A xavs_svn.tmp/common/cpu.h
A xavs_svn.tmp/Makefile
A xavs_svn.tmp/common/set.c
A xavs_svn.tmp/tools/checkasm.c
A xavs_svn.tmp/common/frame.c
A xavs_svn.tmp/configure
A xavs_svn.tmp/tools/xavs-format
A xavs_svn.tmp/tools/regression-test.pl
A xavs_svn.tmp/tools/checkasm-a.asm
A xavs_svn.tmp/common/predict.c
A xavs_svn.tmp/common/mc.c
A xavs_svn.tmp/common/i386/deblock_intra.asm
A xavs_svn.tmp/common/i386/predict.h
A xavs_svn.tmp/common/i386/qpel.asm
A xavs_svn.tmp/common/i386/deblock_inter.asm
A xavs_svn.tmp/common/i386/predict-a.asm
A xavs_svn.tmp/common/i386/dct.c
A xavs_svn.tmp/common/i386/mc-a01.asm
A xavs_svn.tmp/common/i386/i386inc.asm
A xavs_svn.tmp/common/i386/pixel.h
A xavs_svn.tmp/common/i386/pixel-a.asm
A xavs_svn.tmp/common/quant.h
A xavs_svn.tmp/common/frame.h
A xavs_svn.tmp/common/bs.h
A xavs_svn.tmp/common/csp.c
A xavs_svn.tmp/common/mdate.c
A xavs_svn.tmp/xavs.c
A xavs_svn.tmp/tools/patcheck
A xavs_svn.tmp/tools/q_matrix_avs.cfg
A xavs_svn.tmp/build/win32/xavs.vcproj
A xavs_svn.tmp/build/win32/xavs.sln
A xavs_svn.tmp/build/win32/libxavs.vcproj
A xavs_svn.tmp/xavs.h
A xavs_svn.tmp/muxers.c
A xavs_svn.tmp/muxers.h
A xavs_svn.tmp/extras/getopt.c
A xavs_svn.tmp/extras/stdint.h
A xavs_svn.tmp/extras/getopt.h
A xavs_svn.tmp/tools/xyuv.c
A xavs_svn.tmp/tools/countquant_xavs.pl
A xavs_svn.tmp/build/win32/libxavs.sln
A xavs_svn.tmp/matroska.c
A xavs_svn.tmp/doc/regression_test.txt
A xavs_svn.tmp/doc/vui.txt
A xavs_svn.tmp/matroska.h
A xavs_svn.tmp/doc/ratecontrol.txt
A xavs_svn.tmp/doc/standards.txt
A xavs_svn.tmp/doc/threads.txt
A xavs_svn.tmp/config.guess
A xavs_svn.tmp/version.sh
A xavs_svn.tmp/config.sub
Checked out revision 55.
configuring xavs_svn (/home/user/ffmpeg-windows-build-helpers/sandbox/win64/xavs_svn) as $ PKG_CONFIG_PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/pkgconfig PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH ./configure --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
all touch files already_configured* touchname= already_configured_9969f0555dc839d1cb007ddb15544253-
config options --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/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
~/ffmpeg-windows-build-helpers$
from ffmpeg-windows-build-helpers.
Worked for me recently, I think the xavs means the cross compilers failed, try again?
from ffmpeg-windows-build-helpers.
Worked for me recently, I think the xavs means the cross compilers failed, try again?
Unfortunately I get the same error when trying to cross-compile for Windows (win64) using a fresh clone of this repo in Ubuntu 22.04.3 LTS
on WSL. I've used the same configuration from #703 (comment).
svn checking out to xavs_svn
...
Checked out revision 55.
configuring xavs_svn (/home/user/ffmpeg-windows-build-helpers/sandbox/win64/xavs_svn) as $ PKG_CONFIG_PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/pkgconfig PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH ./configure --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
all touch files already_configured* touchname= already_configured_9969f0555dc839d1cb007ddb15544253-
config options --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/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
~/ffmpeg-windows-build-helpers$
I get the same error as issue #633.
When I change '--cflags=-march=znver3' from znver3
to x86-64
because gcc 10.2.0 doesn't support AMD Zen 3 processors I get the following error messages:
x86_64-w64-mingw32-gcc -march=x86-64 -Wall -DCST_NO_SOCKETS -DUNDER_WINDOWS -DWIN32 -shared -o ../bin/flite_sort flite_sort_main.o -L../build/x86_64-mingw32/lib -lflite -lm
x86_64-w64-mingw32-gcc -march=x86-64 -Wall -DCST_NO_SOCKETS -DUNDER_WINDOWS -DWIN32 -shared -o ../bin/find_sts find_sts_main.o -L../build/x86_64-mingw32/lib -lflite -lm
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_tokenstream.o):cst_tokenstream.c:(.text+0x92c): undefined reference to `ts_utf8_sequence_length'
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_val.o):cst_val.c:(.text+0xf37): undefined reference to `utf8_sequence_length'
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_val.o):cst_val.c:(.text+0xfd1): undefined reference to `utf8_sequence_length'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:75: ../bin/flite_sort] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_tokenstream.o):cst_tokenstream.c:(.text+0x92c): undefined reference to `ts_utf8_sequence_length'
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_val.o):cst_val.c:(.text+0xf37): undefined reference to `utf8_sequence_length'
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld: ../build/x86_64-mingw32/lib/libflite.a(cst_val.o):cst_val.c:(.text+0xfd1): undefined reference to `utf8_sequence_length'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:73: ../bin/find_sts] Error 1
make: *** [config/common_make_rules:133: build/x86_64-mingw32/obj//.make_build_dirs] Error 2
I now use BtbN's FFmpeg Builder which builds without errors, probably because it doesn't have the AVS codec, but instead it has XAVS2 and AVS3D.
from ffmpeg-windows-build-helpers.
from ffmpeg-windows-build-helpers.
what's your output from xavs' config.log? What command are you using to run the script?
run the script?
I've already mentioned in the previous comment that I use the same commands:
./cross_compile_ffmpeg.sh --build-ffmpeg-static=y --build-ffmpeg-shared=n --gcc-cpu-count=6 --disable-nonfree=n --sandbox-ok=y --compiler-flavors=win64 --cflags=-march=znver3 --build-x264-with-libav=y --enable-gpl=y
When I changed znver3
to x86-64
I got different error, after removing --cflags=-march=
option it compiles just fine.
I'm guessing it might be related to this GCC version which might need to be updated to something like 11.4.0.
Compiled on CPU: AMD 5600X Vermeer (Zen 3 based)
from ffmpeg-windows-build-helpers.
OK I finally figured out the xavs failure (gotta actually manually run it to see the failure message apparently)
/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-gcc conftest.c -march=znver3 -Wall -I. -o conftest
cc1: error: bad value ('znver3') for '-march=' switch
cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake cooperlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native; did you mean
znver1'?
so I guess the gcc isn't new enough to recognizer znver3, as expected.
libflite seems to have a very weird condition where if the method is declared __inline in the .h and in the .c, "sometimes" gcc would export it and sometimes not (?) maybe it was able to inline it more easily with some -march ? gcc bug? what?
related ../../include/cst_tokenstream.h:134:14: warning: inline function 'ts_utf8_sequence_length' declared but never defined 134 | __inline int ts_utf8_sequence_length(char c0);
Anyway pull the latest libflite, thanks for the report. I'll try some newer gcc's but have had problems in the past so it may not be easy...cheers!
from ffmpeg-windows-build-helpers.
Unfortunately bumping to gcc 13.2.0 causes a few things to fail, so that's not going to be trivial or forthcoming quick... :)
from ffmpeg-windows-build-helpers.
Moving the multiple definition of
AV1_VAR_OFFS'` to #704, building with -march=x86-64 should work again, thanks for the report, cheers!
from ffmpeg-windows-build-helpers.
Related Issues (20)
- JPEG-XL
- [Request] Add support for `libvmaf_cuda` filter HOT 3
- libaribcaption version not updating automatically HOT 5
- does not script have no install location parament? HOT 1
- Leptonica Failure to Build HOT 9
- REQ: Prebuilt Compiler Option HOT 4
- Build flite failed HOT 5
- VAMP missing - All builds broken
- Request: Add libsvt_vp9 (Code Provided) HOT 2
- FFMPEG compilation is never easy
- Replace libmfx with libvpl (libmfx has security issues)
- FFMPEG 5.1.4 build issues HOT 1
- Error pathspec origin/master HOT 3
- Issue with enabling --enable-libbluray option during FFmpeg build
- Can't build n7.0 HOT 2
- Issue with x265 3.6 x86 asm optimization HOT 3
- How do i get this particular ffmpeg build with a specific filter to be compiled using this script? HOT 7
- configure: error: Xvid supports only 32/64 bit architectures HOT 2
- JPEG-XL
- "init_static_data" not a member of "AVCodec" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-windows-build-helpers.