emscripten-core / emscripten-core/emscripten
Can not pass the compiler test in FFmpeg configure
- Lingua principale
- C++
- Stelle
- 27.6k
- Fork
- 3.6k
- Merge medio
- 1g 14h
- PR unite (30g)
- 125
Descrizione
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:
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo l’invocazione di FFmpeg ./configure con emcc, emar ed emconfigure, quindi esamina il file configure generato e config.log. Concentrati sulla gestione di -nologo e sui comandi emcc che creano e collegano test.o; il lavoro è completato quando il test del compilatore termina senza che wasm-ld rifiuti il file oggetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- wasm
- Ambito
- build-system, compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100