emscripten-core / emscripten-core/emscripten

Can not pass the compiler test in FFmpeg configure

Offen
#21,155 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
27.6k
Forks
3.6k
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
125

Beschreibung

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:
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den FFmpeg-./configure-Aufruf mit emcc, emar und emconfigure zu reproduzieren, und untersuche anschließend die erzeugte configure-Datei und config.log. Konzentriere dich auf die Behandlung von -nologo und auf die emcc-Befehle, die test.o erstellen und linken; abgeschlossen ist die Aufgabe, wenn der Compiler-Test beendet wird, ohne dass wasm-ld die Objektdatei zurückweist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
wasm
Bereich
build-system, compilers
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.