emscripten-core / emscripten-core/emscripten
Can not pass the compiler test in FFmpeg configure
- 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:**
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.52 (fa478400df3351f7153c0279bc638784d3d90334)
clang version 18.0.0git (https://github.com/llvm/llvm-project 0a3a0ea5914cb4633f4f4c14f1ddc46ce067061a)
Target: wasm32-unknown-emscripten
Thread model: posix
**Failing command line in full:**
cmd line:
```bash
emconfigure ./configure --cc="emcc" --cxx="em++" --ar="emar" --prefix=/usr/local/decoder_wasm/ffmpeg --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic \
--enable-gpl --enable-version3 --disable-avdevice --enable-avformat --disable-swresample --disable-postproc --disable-avfilter \
--disable-programs --disable-everything \
--disable-ffplay --disable-ffprobe --disable-asm --disable-doc --disable-devices --disable-network \
--disable-hwaccels --enable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs \
--enable-demuxers \
--enable-decoder=hevc --enable-parser=hevc \
--enable-decoder=h264 --enable-parser=h264
```
At the begaining, clang says -nologo is not a valid arg, then I delete all -nologo in the configure file. But it still refuses working...
the new error in config.log
```
C compiler ttest_cc
BEGIN /tmp/ffconf.zPAWC515/test.c
1 int main(void){ return 0; }
END /tmp/ffconf.zPAWC515/test.c
emcc -c -Fo/tmp/ffconf.zPAWC515/test.o /tmp/ffconf.zPAWC515/test.c
emcc -Fe/tmp/ffconf.zPAWC515/test /tmp/ffconf.zPAWC515/test.o
wasm-ld: error: unknown file type: /tmp/ffconf.zPAWC515/test.o
**Full link command and output with `-v` appended:**
Even for runtime issues it helps a lot if you can include the full link command.
Adding `-v` to the link command will show all of the sub-commands run which
can help us diagnose your issue.
Note: Where possible, please avoid attaching screen shots of code or console
logs. Instead, please include them as text so that they may be copied /
searched. To make code blocks more readable and syntax highlighted, please
escape them with three backticks before and after, like this:
```
Contributor guide
Assessment
This issue has not been assessed yet.