Closed liudonghua123 closed 2 years ago
I also tried emmake make SUBTARGET=arcade TOOLS=1 REGENIE=1 -j8
provided on https://github.com/mamedev/mame/issues/7031. But it's the same error.
Try adding NOWERROR=1 to your make and retry. Pretty sure those are errors which can be ignored. If not, someone else might have a more authoritative answer.
Adding NOWERROR=1
seems to work for me.
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ emmake make SUBTARGET=arcade TOOLS=1 NOWERROR=1 -j8
make: make SUBTARGET=arcade TOOLS=1 NOWERROR=1 -j8
Clang 16.0.0 detected
1534 source file(s) found
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --libs
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
Building configurations...
Running action 'gmake'...
Generating "build/projects/sdl/mamearcade/gmake-asmjs/Makefile"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/qtdbg_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/osd_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ocore_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/utils.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/netlist.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/formats.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/expat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/zlib.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/softfloat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/softfloat3.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/jpeg.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/flac.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/7z.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/lua.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/lualibs.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sqlite3.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bx.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bimg.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bgfx.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/linenoise.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/utf8proc.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/wdlfft.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ymfm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/emu.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/precompile.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/frontend.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/optional.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dasm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/acorn.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/adp.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/alba.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/alliedleisure.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/alpha.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/amiga.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/apple.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/aristocrat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/atari.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/atlus.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/barcrest.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bfm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bmc.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/capcom.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ces.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/cinematronics.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/cirsa.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/comad.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/cvs.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dataeast.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ddr.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dgrm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dooyong.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dynax.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/edevices.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/efo.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/eolith.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/excellent.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/exidy.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/f32.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/funworld.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/fuuki.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/gaelco.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/galaxian.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/gameplan.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/gametron.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/gottlieb.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/igs.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/igt.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/irem.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/itech.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/jaleco.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/jpm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/kaneko.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/kiwako.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/konami.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/matic.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/maygay.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/meadows.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/merit.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/metro.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/midcoin.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/midw8080.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/midway.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/miltonbradley.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/misc.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/mr.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/msx.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/namco.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nasco.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/neogeo.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nichibutsu.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nintendo.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nix.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nmk.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/novadesitec.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/olympia.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/omori.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/orca.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pacific.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pacman.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pc.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pce.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/philips.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/phoenix.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pinball.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/playmark.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/promat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/psikyo.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ramtek.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/rare.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sanritsu.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sega.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/seibu.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/seta.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/shared.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sigma.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/snk.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sony.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/stern.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/subsino.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/suna.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sunelectronics.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/taito.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/tatsumi.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/tch.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/tecfri.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/technos.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/tehkan.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/thepit.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/toaplan.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/unico.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/universal.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/upl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ussr.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/valadon.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/venture.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/vsystem.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/wing.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/yunsung.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/zaccaria.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/mamearcade.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/romcmp.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/chdman.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/jedutil.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/unidasm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ldresample.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ldverify.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/regrep.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/srcclean.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/split.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/pngcmp.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nltool.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/nlwav.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/castool.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/floptool.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/imgtool.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/testkeys.make"
Done. Generated 157/157 projects.
Compiling src/mame/bfm/bfcobra.cpp...
Compiling src/mame/bfm/bfm_ad5.cpp...
Compiling src/mame/bfm/bfm_ad5sw.cpp...
Compiling src/mame/bfm/bfm_adr2.cpp...
Compiling src/lib/formats/2d_dsk.cpp...
Compiling src/mame/bfm/bfm_bd1.cpp...
Compiling src/mame/bfm/bfm_bda.cpp...
Compiling src/lib/util/avhuff.cpp...
Compiling src/lib/formats/a26_cas.cpp...
../../../../../src/mame/bfm/bfm_bd1.cpp:231:6: warning: variable 'change' set but not used [-Wunused-but-set-variable]
int change = 0;
^
Compiling src/lib/formats/a5105_dsk.cpp...
../../../../../src/mame/bfm/bfcobra.cpp:1871:6: warning: variable 'cycles_used' set but not used [-Wunused-but-set-variable]
int cycles_used = 0;
^
Compiling src/lib/util/aviio.cpp...
Compiling src/lib/formats/abc1600_dsk.cpp...
1 warning generated.
...
However, I got another error.
Compiling src/devices/cpu/upd78k/upd78k0d.cpp...
em++: error: undefined exported symbol: "__ZN13sound_manager4muteEbh" [-Wundefined] [-Werror]
make[2]: *** [floptool.make:270: ../../../../../floptool] Error 1
You could try adding TOOLS=0
to the command line (and REGENIE=1
to regenerate the makefiles).
I will say that I have never tried doing an Emscripten build with SUBTARGET=arcade
, as the resulting file is likely to be too large to be usable in a web browser environment. Normally Emscripten builds are single driver builds using SOURCES=
as described in the docs.
If I set TOOLS=0
when invoking emmake
, I finally got the following errors.
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ emmake make SUBTARGET=arcade TOOLS=0 NOWERROR=1 -j4
make: make SUBTARGET=arcade TOOLS=0 NOWERROR=1 -j4
Clang 16.0.0 detected
Compiling src/mame/excellent/excellent_spr.cpp...
Archiving libexcellent.a...
Compiling src/mame/mame.cpp...
Compiling generated/version.cpp...
Building driver list...
1534 source file(s) found
34393 driver(s) found
Compiling generated/mame/arcade/drivlist.cpp...
Linking mamearcade.html...
wasm-ld: error: initial memory too small, 52082176 bytes needed
em++: error: '/mnt/d/code/webassembly/emsdk/upstream/bin/wasm-ld @/tmp/emscripten_8wu7a3jr.rsp.utf-8' failed (returned 1)
make[2]: *** [mamearcade.make:272: ../../../../../mamearcade.html] Error 1
make[1]: *** [Makefile:433: mamearcade] Error 2
make: *** [makefile:1274: asmjs] Error 2
emmake: error: 'make SUBTARGET=arcade TOOLS=0 NOWERROR=1 -j4' failed (returned 2)
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$
SOURCES
Well, I just want to play some kov/kovplus games on browser which seems use neogeo
driver, so I should add SOURCES=src/mame/neogeo/neogeo.cpp
?
I tried emmake make SUBTARGET=arcade SOURCES=src/mame/neogeo/neogeo.cpp TOOLS=0 NOWERROR=1 REGENIE=1 -j8
and it build successfully, but I could not find the generated js/wasm file.
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ emmake make SUBTARGET=arcade SOURCES=src/mame/neogeo/neogeo.cpp TOOLS=0 NOWERROR=1 REGENIE=1 -j8
make: make SUBTARGET=arcade SOURCES=src/mame/neogeo/neogeo.cpp TOOLS=0 NOWERROR=1 REGENIE=1 -j8
Clang 16.0.0 detected
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --libs
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
emscripten sdl2-config called with /mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/bin/sdl2-config --cflags
Building configurations...
Running action 'gmake'...
Generating "build/projects/sdl/mamearcade/gmake-asmjs/Makefile"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/qtdbg_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/osd_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ocore_sdl.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/utils.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/formats.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/expat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/zlib.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/softfloat.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/softfloat3.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/jpeg.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/flac.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/7z.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/lua.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/lualibs.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/sqlite3.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bx.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bimg.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/bgfx.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/linenoise.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/utf8proc.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/wdlfft.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/ymfm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/emu.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/precompile.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/frontend.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/optional.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/dasm.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/mame_arcade.make"
Generating "build/projects/sdl/mamearcade/gmake-asmjs/arcade.make"
Done. Generated 30/30 projects.
Compiling src/lib/formats/all.cpp...
Archiving libmame_arcade.a...
Archiving libformats.a...
Building driver list...
1 source file(s) found
288 driver(s) found
Compiling generated/mame/arcade/drivlist.cpp...
Linking arcade.html...
warning: undefined symbol: glPopAttrib (referenced by top-level compiled C/C++ code)
warning: undefined symbol: glPushAttrib (referenced by top-level compiled C/C++ code)
em++: warning: warnings in JS library compilation [-Wjs-compiler]
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ find build -name "*.wasm" -type f
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ find build -name "*.js" -type f
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ find build -name "*.html" -type f
liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$
Please use a discussion forum for this. The emscripten target is only marginally supported, and a large subtarget or full build of MAME would be impractically large to use in a web browser.
Some forums you could consider:
@cuavas @DopefishJustin @Tafoid @brijohn Thanks for all, I find the built files in the root directory of mame now.
I want to try to build a wasm of mame0246 on ubuntu 22.04 according to https://docs.mamedev.org/initialsetup/compilingmame.html#emscripten-javascript-and-html. After I configured emscripten, I started with
emmake make SUBTARGET=arcade
. Then I gotsrc/mame/bfm/bfcobra.cpp:1871:6: error: variable 'cycles_used' set but not used [-Werror,-Wunused-but-set-variable]
errors.the full logs
```shell liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ git status HEAD detached at mame0246 nothing to commit, working tree clean liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ emmake make SUBTARGET=arcade make: make SUBTARGET=arcade Clang 16.0.0 detected Creating ../../../../asmjs/bin Precompiling src/emu/emu.h... Compiling src/emu/drivers/empty.cpp... Archiving libprecompile.a... Compiling 3rdparty/lzma/C/7zAlloc.c... Compiling 3rdparty/lzma/C/7zArcIn.c... Compiling 3rdparty/lzma/C/7zBuf.c... Compiling 3rdparty/lzma/C/7zBuf2.c... Compiling 3rdparty/lzma/C/7zCrc.c... Compiling 3rdparty/lzma/C/7zCrcOpt.c... Compiling 3rdparty/lzma/C/7zDec.c... Compiling 3rdparty/lzma/C/7zFile.c... Compiling 3rdparty/lzma/C/7zStream.c... Compiling 3rdparty/lzma/C/Aes.c... Compiling 3rdparty/lzma/C/AesOpt.c... Compiling 3rdparty/lzma/C/Alloc.c... Compiling 3rdparty/lzma/C/Bcj2.c... Compiling 3rdparty/lzma/C/Bra.c... Compiling 3rdparty/lzma/C/Bra86.c... Compiling 3rdparty/lzma/C/BraIA64.c... Compiling 3rdparty/lzma/C/CpuArch.c... Compiling 3rdparty/lzma/C/Delta.c... Compiling 3rdparty/lzma/C/LzFind.c... Compiling 3rdparty/lzma/C/Lzma2Dec.c... Compiling 3rdparty/lzma/C/Lzma2Enc.c... Compiling 3rdparty/lzma/C/Lzma86Dec.c... Compiling 3rdparty/lzma/C/Lzma86Enc.c... Compiling 3rdparty/lzma/C/LzmaDec.c... Compiling 3rdparty/lzma/C/LzmaEnc.c... Compiling 3rdparty/lzma/C/Ppmd7.c... Compiling 3rdparty/lzma/C/Ppmd7Dec.c... Compiling 3rdparty/lzma/C/Ppmd7Enc.c... Compiling 3rdparty/lzma/C/Sha256.c... Compiling 3rdparty/lzma/C/Sort.c... Archiving lib7z.a... Creating ../../../../asmjs/bin/mame_arcade Compiling src/mame/acorn/aristmk5.cpp... Compiling src/mame/acorn/ertictac.cpp... Compiling src/mame/acorn/ssfindo.cpp... Archiving libacorn.a... Compiling src/mame/adp/adp.cpp... Compiling src/mame/adp/manohman.cpp... Compiling src/mame/adp/stellafr.cpp... Archiving libadp.a... Compiling src/mame/alba/albazg.cpp... Compiling src/mame/alba/rmhaihai.cpp... Compiling src/mame/alba/vsmjtria.cpp... Archiving libalba.a... Compiling src/mame/alliedleisure/ace.cpp... Compiling src/mame/alliedleisure/aleisttl.cpp... Compiling src/mame/alliedleisure/clayshoo.cpp... Archiving liballiedleisure.a... Compiling src/mame/alpha/ad_sound.cpp... Compiling src/mame/alpha/alpha68k.cpp... Compiling src/mame/alpha/alpha68k_i.cpp... Compiling src/mame/alpha/alpha68k_n.cpp... Compiling src/mame/alpha/alpha68k_v.cpp... Compiling src/mame/alpha/alpha8201.cpp... Compiling src/mame/alpha/champbas.cpp... Compiling src/mame/alpha/champbas_v.cpp... Compiling src/mame/alpha/equites.cpp... Compiling src/mame/alpha/equites_v.cpp... Compiling src/mame/alpha/meijinsn.cpp... Compiling src/mame/alpha/shougi.cpp... Archiving libalpha.a... Compiling src/mame/amiga/alg.cpp... Compiling src/mame/amiga/amiga.cpp... Compiling src/mame/amiga/amiga_m.cpp... Compiling src/mame/amiga/amiga_v.cpp... Compiling src/mame/amiga/amigaaga.cpp... Compiling src/mame/amiga/arsystems.cpp... Compiling src/mame/amiga/cubo.cpp... Compiling src/mame/amiga/mquake.cpp... Compiling src/mame/amiga/upscope.cpp... Archiving libamiga.a... Compiling src/mame/apple/apple2common.cpp... Compiling src/mame/apple/apple2video.cpp... Compiling src/mame/apple/superga2.cpp... Archiving libapple.a... Compiling src/mame/aristocrat/aristmk4.cpp... Compiling src/mame/aristocrat/aristmk6.cpp... Compiling src/mame/aristocrat/caswin.cpp... Archiving libaristocrat.a... Compiling src/mame/atari/akkaarrh.cpp... Compiling src/mame/atari/antic.cpp... Compiling src/mame/atari/arcadecl.cpp... Compiling src/mame/atari/arcadecl_v.cpp... Compiling src/mame/atari/asic65.cpp... Compiling src/mame/atari/asteroid.cpp... Compiling src/mame/atari/asteroid_a.cpp... Compiling src/mame/atari/asteroid_m.cpp... Compiling src/mame/atari/atari400.cpp... Compiling src/mame/atari/atari400_m.cpp... Compiling src/mame/atari/atari400_v.cpp... Compiling src/mame/atari/atarifb.cpp... Compiling src/mame/atari/atarifb_a.cpp... Compiling src/mame/atari/atarifb_m.cpp... Compiling src/mame/atari/atarifb_v.cpp... Compiling src/mame/atari/atarifdc.cpp... Compiling src/mame/atari/atarig1.cpp... Compiling src/mame/atari/atarig1_v.cpp... Compiling src/mame/atari/atarig42.cpp... Compiling src/mame/atari/atarig42_v.cpp... Compiling src/mame/atari/atarigen.cpp... Compiling src/mame/atari/atarigt.cpp... Compiling src/mame/atari/atarigt_v.cpp... Compiling src/mame/atari/atarigx2.cpp... Compiling src/mame/atari/atarigx2_v.cpp... Compiling src/mame/atari/atarijsa.cpp... Compiling src/mame/atari/atarimo.cpp... Compiling src/mame/atari/atarirle.cpp... Compiling src/mame/atari/atarisac.cpp... Compiling src/mame/atari/atariscom.cpp... Compiling src/mame/atari/atarisy1.cpp... Compiling src/mame/atari/atarisy1_v.cpp... Compiling src/mame/atari/atarisy2.cpp... Compiling src/mame/atari/atarisy2_v.cpp... Compiling src/mame/atari/atarisy4.cpp... Compiling src/mame/atari/atarittl.cpp... Compiling src/mame/atari/atarivad.cpp... Compiling src/mame/atari/atarixga.cpp... Compiling src/mame/atari/atetris.cpp... Compiling src/mame/atari/avalnche.cpp... Compiling src/mame/atari/avalnche_a.cpp... Compiling src/mame/atari/badlands.cpp... Compiling src/mame/atari/badlands_m.cpp... Compiling src/mame/atari/badlands_ms.cpp... Compiling src/mame/atari/badlands_v.cpp... Compiling src/mame/atari/badlandsbl.cpp... Compiling src/mame/atari/bartop52.cpp... Compiling src/mame/atari/batman.cpp... Compiling src/mame/atari/batman_v.cpp... Compiling src/mame/atari/beathead.cpp... Compiling src/mame/atari/beathead_v.cpp... Compiling src/mame/atari/blstroid.cpp... Compiling src/mame/atari/blstroid_v.cpp... Compiling src/mame/atari/boxer.cpp... Compiling src/mame/atari/bsktball.cpp... Compiling src/mame/atari/bsktball_a.cpp... Compiling src/mame/atari/bsktball_m.cpp... Compiling src/mame/atari/bsktball_v.cpp... Compiling src/mame/atari/bwidow.cpp... Compiling src/mame/atari/bwidow_a.cpp... Compiling src/mame/atari/bzone.cpp... Compiling src/mame/atari/bzone_a.cpp... Compiling src/mame/atari/canyon.cpp... Compiling src/mame/atari/canyon_a.cpp... Compiling src/mame/atari/canyon_v.cpp... Compiling src/mame/atari/cball.cpp... Compiling src/mame/atari/ccastles.cpp... Compiling src/mame/atari/ccastles_v.cpp... Compiling src/mame/atari/centiped.cpp... Compiling src/mame/atari/centiped_v.cpp... Compiling src/mame/atari/cloak.cpp... Compiling src/mame/atari/cloak_v.cpp... Compiling src/mame/atari/cloud9.cpp... Compiling src/mame/atari/cloud9_v.cpp... Compiling src/mame/atari/cmmb.cpp... Compiling src/mame/atari/cops.cpp... Compiling src/mame/atari/copsnrob.cpp... Compiling src/mame/atari/copsnrob_a.cpp... Compiling src/mame/atari/copsnrob_v.cpp... Compiling src/mame/atari/cyberbal.cpp... Compiling src/mame/atari/cyberbal_v.cpp... Compiling src/mame/atari/cybstorm.cpp... Compiling src/mame/atari/cybstorm_v.cpp... Compiling src/mame/atari/destroyr.cpp... Compiling src/mame/atari/dragrace.cpp... Compiling src/mame/atari/dragrace_a.cpp... Compiling src/mame/atari/dragrace_v.cpp... Compiling src/mame/atari/eprom.cpp... Compiling src/mame/atari/eprom_v.cpp... Compiling src/mame/atari/firefox.cpp... Compiling src/mame/atari/firetrk.cpp... Compiling src/mame/atari/firetrk_a.cpp... Compiling src/mame/atari/firetrk_v.cpp... Compiling src/mame/atari/flyball.cpp... Compiling src/mame/atari/foodf.cpp... Compiling src/mame/atari/foodf_v.cpp... Compiling src/mame/atari/gauntlet.cpp... Compiling src/mame/atari/gauntlet_v.cpp... Compiling src/mame/atari/gtia.cpp... Compiling src/mame/atari/gumrally.cpp... Compiling src/mame/atari/harddriv.cpp... Compiling src/mame/atari/harddriv_a.cpp... Compiling src/mame/atari/harddriv_m.cpp... Compiling src/mame/atari/harddriv_v.cpp... Compiling src/mame/atari/irobot.cpp... Compiling src/mame/atari/irobot_m.cpp... Compiling src/mame/atari/irobot_v.cpp... Compiling src/mame/atari/jag_blitter.cpp... Compiling src/mame/atari/jaguar.cpp... Compiling src/mame/atari/jaguar_a.cpp... Compiling src/mame/atari/jaguar_v.cpp... Compiling src/mame/atari/jedi.cpp... Compiling src/mame/atari/jedi_a.cpp... Compiling src/mame/atari/jedi_v.cpp... Compiling src/mame/atari/klax.cpp... Compiling src/mame/atari/klax_v.cpp... Compiling src/mame/atari/liberatr.cpp... Compiling src/mame/atari/liberatr_v.cpp... Compiling src/mame/atari/marblmd2.cpp... Compiling src/mame/atari/mathbox.cpp... Compiling src/mame/atari/maxaflex.cpp... Compiling src/mame/atari/mediagx.cpp... Compiling src/mame/atari/metalmx.cpp... Compiling src/mame/atari/mgolf.cpp... Compiling src/mame/atari/mhavoc.cpp... Compiling src/mame/atari/mhavoc_m.cpp... ../../../../../src/mame/atari/mhavoc_m.cpp:137:24: warning: 'timer_set' is deprecated: timer_set is deprecated; please avoid anonymous timers. Use TIMER_CALLBACK_MEMBER and an allocated emu_timer instead. [-Wdeprecated-declarations] machine().scheduler().timer_set(attotime::from_usec(250), timer_expired_delegate()); ^ In file included from ../../../../../src/mame/atari/mhavoc_m.cpp:9: In file included from ../../../../../src/emu/emu.h:74: ../../../../../src/emu/schedule.h:123:4: note: 'timer_set' has been explicitly marked deprecated here [[deprecated("timer_set is deprecated; please avoid anonymous timers. Use TIMER_CALLBACK_MEMBER and an allocated emu_timer instead.")]] ^ 1 warning generated. Compiling src/mame/atari/missile.cpp... Compiling src/mame/atari/nitedrvr.cpp... Compiling src/mame/atari/nitedrvr_a.cpp... Compiling src/mame/atari/nitedrvr_m.cpp... Compiling src/mame/atari/nitedrvr_v.cpp... Compiling src/mame/atari/nl_breakout.cpp... Compiling src/mame/atari/nl_destroyr.cpp... Compiling src/mame/atari/nl_flyball.cpp... Compiling src/mame/atari/nl_gtrak10.cpp... Compiling src/mame/atari/nl_pong.cpp... Compiling src/mame/atari/nl_pongdoubles.cpp... Compiling src/mame/atari/nl_rebound.cpp... Compiling src/mame/atari/nl_stuntcyc.cpp... Compiling src/mame/atari/nl_tank.cpp... Compiling src/mame/atari/offtwall.cpp... Compiling src/mame/atari/offtwall_v.cpp... Compiling src/mame/atari/orbit.cpp... Compiling src/mame/atari/orbit_a.cpp... Compiling src/mame/atari/orbit_v.cpp... Compiling src/mame/atari/pong.cpp... Compiling src/mame/atari/poolshrk.cpp... Compiling src/mame/atari/poolshrk_a.cpp... Compiling src/mame/atari/poolshrk_v.cpp... Compiling src/mame/atari/quantum.cpp... Compiling src/mame/atari/quizshow.cpp... Compiling src/mame/atari/rampart.cpp... Compiling src/mame/atari/rampart_v.cpp... Compiling src/mame/atari/redbaron.cpp... Compiling src/mame/atari/relief.cpp... Compiling src/mame/atari/relief_v.cpp... Compiling src/mame/atari/runaway.cpp... Compiling src/mame/atari/sbrkout.cpp... Compiling src/mame/atari/shuuz.cpp... Compiling src/mame/atari/shuuz_v.cpp... Compiling src/mame/atari/skullxbo.cpp... Compiling src/mame/atari/skullxbo_v.cpp... Compiling src/mame/atari/skydiver.cpp... Compiling src/mame/atari/skydiver_a.cpp... Compiling src/mame/atari/skydiver_v.cpp... Compiling src/mame/atari/skyraid.cpp... Compiling src/mame/atari/skyraid_a.cpp... Compiling src/mame/atari/skyraid_v.cpp... Compiling src/mame/atari/slapstic.cpp... Compiling src/mame/atari/sprint2.cpp... Compiling src/mame/atari/sprint2_a.cpp... Compiling src/mame/atari/sprint2_v.cpp... Compiling src/mame/atari/sprint4.cpp... Compiling src/mame/atari/sprint4_a.cpp... Compiling src/mame/atari/sprint8.cpp... Compiling src/mame/atari/sprint8_a.cpp... Compiling src/mame/atari/sprint8_v.cpp... Compiling src/mame/atari/starshp1.cpp... Compiling src/mame/atari/starshp1_a.cpp... Compiling src/mame/atari/starshp1_v.cpp... Compiling src/mame/atari/starwars.cpp... Compiling src/mame/atari/starwars_a.cpp... Compiling src/mame/atari/starwars_m.cpp... Compiling src/mame/atari/subs.cpp... Compiling src/mame/atari/subs_a.cpp... Compiling src/mame/atari/subs_m.cpp... Compiling src/mame/atari/subs_v.cpp... Compiling src/mame/atari/tank8.cpp... Compiling src/mame/atari/tank8_a.cpp... Compiling src/mame/atari/tank8_v.cpp... Compiling src/mame/atari/tempest.cpp... Compiling src/mame/atari/thunderj.cpp... Compiling src/mame/atari/thunderj_v.cpp... Compiling src/mame/atari/tia.cpp... Compiling src/mame/atari/tomcat.cpp... Compiling src/mame/atari/toobin.cpp... Compiling src/mame/atari/toobin_v.cpp... Compiling src/mame/atari/tourtabl.cpp... Compiling src/mame/atari/triplhnt.cpp... Compiling src/mame/atari/triplhnt_a.cpp... Compiling src/mame/atari/triplhnt_v.cpp... Compiling src/mame/atari/tunhunt.cpp... Compiling src/mame/atari/tunhunt_v.cpp... Compiling src/mame/atari/ultratnk.cpp... Compiling src/mame/atari/ultratnk_v.cpp... Compiling src/mame/atari/videopin.cpp... Compiling src/mame/atari/videopin_a.cpp... Compiling src/mame/atari/videopin_v.cpp... Compiling src/mame/atari/vindictr.cpp... Compiling src/mame/atari/vindictr_v.cpp... Compiling src/mame/atari/wolfpack.cpp... Compiling src/mame/atari/wolfpack_v.cpp... Compiling src/mame/atari/xybots.cpp... Compiling src/mame/atari/xybots_v.cpp... Archiving libatari.a... Compiling src/mame/atlus/bowltry.cpp... Compiling src/mame/atlus/ohmygod.cpp... Compiling src/mame/atlus/patapata.cpp... Compiling src/mame/atlus/rallypnt.cpp... Archiving libatlus.a... Compiling src/mame/barcrest/mpu2.cpp... Compiling src/mame/barcrest/mpu3.cpp... Compiling src/mame/barcrest/mpu4.cpp... Compiling src/mame/barcrest/mpu4_characteriser_bootleg.cpp... Compiling src/mame/barcrest/mpu4_characteriser_pal.cpp... Compiling src/mame/barcrest/mpu4_characteriser_pal_bwb.cpp... Compiling src/mame/barcrest/mpu4avan.cpp... Compiling src/mame/barcrest/mpu4bwb.cpp... Compiling src/mame/barcrest/mpu4concept.cpp... Compiling src/mame/barcrest/mpu4crystal.cpp... Compiling src/mame/barcrest/mpu4dealem.cpp... Compiling src/mame/barcrest/mpu4empire.cpp... Compiling src/mame/barcrest/mpu4mdm.cpp... Compiling src/mame/barcrest/mpu4misc.cpp... Compiling src/mame/barcrest/mpu4mod2sw.cpp... Compiling src/mame/barcrest/mpu4mod4oki.cpp... Compiling src/mame/barcrest/mpu4mod4yam.cpp... Compiling src/mame/barcrest/mpu4plasma.cpp... Compiling src/mame/barcrest/mpu4union.cpp... Compiling src/mame/barcrest/mpu4unsorted.cpp... Compiling src/mame/barcrest/mpu4vid.cpp... Compiling src/mame/barcrest/mpu5.cpp... Compiling src/mame/barcrest/mpu5sw.cpp... Archiving libbarcrest.a... Compiling src/mame/bfm/bfcobra.cpp... ../../../../../src/mame/bfm/bfcobra.cpp:1871:6: error: variable 'cycles_used' set but not used [-Werror,-Wunused-but-set-variable] int cycles_used = 0; ^ 1 error generated. em++: error: '/mnt/d/code/webassembly/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -emscripten-cxx-exceptions-allowed=_ZN15running_machine17start_all_devicesEv,_ZN12cli_frontend7executeEiPPc,_ZN8chd_file11open_commonEb,_ZN8chd_file13read_metadataEjjRNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE,_ZN8chd_file13read_metadataEjjRNSt3__26vectorIhNS0_9allocatorIhEEEE,_ZNK19netlist_mame_device19base_validity_checkER16validity_checker -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=18 -Werror=implicit-function-declaration -I/mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/include/SDL -I/mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/include/freetype2/freetype -I/mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/include/SDL2 -I/mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot/include/harfbuzz -DTTF_USE_HARFBUZZ=1 --sysroot=/mnt/d/code/webassembly/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -I../../../../../src/osd -I../../../../../src/emu -I../../../../../src/devices -I../../../../../src/mame/shared -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../src/lib/netlist -I../../../../../3rdparty -I../../../../generated/mame/layout -I../../../../../3rdparty/asio/include -I../../../../../3rdparty/libflac/include -I../../../../../3rdparty/glm -I../../../../../3rdparty/libjpeg -I../../../../../3rdparty/rapidjson/include -I../../../../../3rdparty/zlib -std=c++17 -pipe -Werror -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -fdiagnostics-show-note-include-stack -Wno-cast-align -Wno-constant-logical-operand -Wno-extern-c-compat -Wno-ignored-qualifiers -Wno-pragma-pack -Wno-tautological-compare -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-unused-value -Wno-unused-const-variable -Wno-xor-used-as-pow -Wno-bitwise-instead-of-logical -Wno-self-assign-field -Wno-format-security -Wno-inline-new-delete -Wno-absolute-value -std=gnu89 -Wno-implicit-function-declaration -std=c++17 -Woverloaded-virtual -c ../../../../../src/mame/bfm/bfcobra.cpp -o ../../../../asmjs/obj/Release/src/mame/bfm/bfcobra.o' failed (returned 1) make[2]: *** [bfm.make:413: ../../../../asmjs/obj/Release/src/mame/bfm/bfcobra.o] Error 1 make[1]: *** [Makefile:133: bfm] Error 2 make: *** [makefile:1274: asmjs] Error 2 emmake: error: 'make SUBTARGET=arcade' failed (returned 2) liudonghua@DESKTOP-DELL:/mnt/d/code/other/mame_binaries/mame$ ```