-
Notifications
You must be signed in to change notification settings - Fork 3.4k
build FFmpeg got the ERROR:emcc is unable to create an executable file.C compiler test failed. #21070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Often the Have you tried running |
same error here |
emcc -nologo -c -Fo/tmp/ffconf.UXpKlb94/test.o /tmp/ffconf.UXpKlb94/test.c |
You need to figure out why |
I removed all -nologo from ffmpeg's configure file and built it. Ubuntu 20.04.6 LTS (WSL2) $ cat ffbuild/config.log |
That seems very odd since it looks like You can always run |
Hello, I faced the same problem with the following environment:
When I ran the following command in the ffmpeg-4.3.2 directory, I checked ffbuild/config.log and investigate the problem:
Both of the wrong options are for Microsoft MSVC, so I conclude the root cause of the problem is wrong compiler judgement written in probe_cc(). This is a problem with the configure script, not with emcc, so I believe this should be discussed in the ffmpeg repository. |
I did as kashiken said. The build was successful by changing to the following environment: Ubuntu 20.04.6 LTS (WSL2) I believe this should be discussed in the ffmpeg repository too. Thank you very much. |
Please join our discussion related to ffmpeg build on the most recent emscripten on #22008 |
Please include the following in your bug report:
Version of emscripten/emsdk:
Please include the output
emcc -v
hereemcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.51 (c0c2ca1)
clang version 18.0.0git (https://github.com/llvm/llvm-project f2464ca317bfeeedddb7cbdea3c2c8ec487890bb)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /data/download/emsdk-lib/emsdk/upstream/bin
Failing command line in full:
If this is compile or link-time failure please include the full failing command
along with its entire output.
configure: ./configure --cc=emcc --cxx=em++ --ar=emar --nm=emnm --ranlib=emranlib --prefix=/data/site/wasm/ffmpeg/ffmpeg-lib --enable-cross-compile --target-os=none --arch=x86_64 --cpu=generic --enable-gpl --enable-version3 --disable-sdl2 --disable-iconv --disable-runtime-cpudetect --disable-cuda-llvm --disable-programs --disable-doc --disable-avdevice --disable-swresample --disable-swscale --disable-postproc --disable-avformat --disable-avfilter --disable-everything --disable-debug --disable-asm --disable-fast-unaligned --disable-network --enable-parser=hevc --enable-decoder=hevc
emcc is unable to create an executable file.
C compiler test failed.
use emcc build my "C" demo, is OK....what`s wrong ???
FFmpeg was builded success. see the next info:
ffmpeg version N-113275-g1081bae94d Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 11 (GCC)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 58. 36.101 / 58. 36.101
libavcodec 60. 37.100 / 60. 37.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
The text was updated successfully, but these errors were encountered: