emscripten-core / emscripten-core/emscripten
build FFmpeg got the ERROR:emcc is unable to create an executable file.C compiler test failed.
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Please include the following in your bug report:
**Version of emscripten/emsdk:**
Please include the output `emcc -v` here
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.51 (c0c2ca1314672a25699846b4663701bcb6f69cca)
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
Contributor guide
Assessment
This issue has not been assessed yet.