hex007 / freej2me

A free J2ME emulator with libretro, awt and sdl2 frontends.
Other
496 stars 78 forks source link

emscripten compilation error #93

Closed humbertodias closed 3 years ago

humbertodias commented 4 years ago

Versions

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
uname -a
19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64

How to reproduce

mkdir ~/retroarch
cd ~/retroarch
git clone https://github.com/hex007/freej2me.git
cd freej2me/src/libretro
emmake make -f Makefile platform=emscripten
git clone https://github.com/libretro/RetroArch.git ~/retroarch/RetroArch
cp ~/retroarch/freej2me/src/libretro/freej2me_libretro_emscripten.bc ~/retroarch/RetroArch/dist-scripts/
cd ~/retroarch/RetroArch/dist-scripts
emmake ./dist-cores.sh emscripten

Error


LD freej2me_libretro_emscripten.bc_libretro.js wasm-ld: error: duplicate symbol: path_is_directory

defined in obj-emscripten/./libretro-common/file/file_path_io.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_is_character_special

defined in obj-emscripten/./libretro-common/file/file_path_io.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_is_valid

defined in obj-emscripten/./libretro-common/file/file_path_io.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_get_size

defined in obj-emscripten/./libretro-common/file/file_path_io.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_mkdir

defined in obj-emscripten/./libretro-common/file/file_path_io.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_parent_dir

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_basedir

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_get_archive_delim

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: find_last_slash

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: strcasestr_retro__

defined in obj-emscripten/./libretro-common/compat/compat_strcasestr.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_get_extension

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_basename

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_remove_extension

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: path_is_compressed_file

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: fill_pathname

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: strlcpy_retro__

defined in obj-emscripten/./libretro-common/compat/compat_strl.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: strlcat_retro__

defined in obj-emscripten/./libretro-common/compat/compat_strl.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: fill_pathname_slash

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: fill_pathname_base_noext

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

wasm-ld: error: duplicate symbol: fill_pathname_basedir

defined in obj-emscripten/./libretro-common/file/file_path.o defined in libretro_emscripten.bc

humbertodias commented 4 years ago

https://github.com/hex007/freej2me/pull/94