Closed humbertodias closed 3 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
wasm-ld: error: duplicate symbol: path_is_valid
wasm-ld: error: duplicate symbol: path_get_size
wasm-ld: error: duplicate symbol: path_mkdir
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
wasm-ld: error: duplicate symbol: path_get_archive_delim
wasm-ld: error: duplicate symbol: find_last_slash
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
wasm-ld: error: duplicate symbol: path_basename
wasm-ld: error: duplicate symbol: path_remove_extension
wasm-ld: error: duplicate symbol: path_is_compressed_file
wasm-ld: error: duplicate symbol: fill_pathname
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__
wasm-ld: error: duplicate symbol: fill_pathname_slash
wasm-ld: error: duplicate symbol: fill_pathname_base_noext
wasm-ld: error: duplicate symbol: fill_pathname_basedir
https://github.com/hex007/freej2me/pull/94
Versions
How to reproduce
Error
LD freej2me_libretro_emscripten.bc_libretro.js wasm-ld: error: duplicate symbol: path_is_directory
wasm-ld: error: duplicate symbol: path_is_character_special
wasm-ld: error: duplicate symbol: path_is_valid
wasm-ld: error: duplicate symbol: path_get_size
wasm-ld: error: duplicate symbol: path_mkdir
wasm-ld: error: duplicate symbol: path_parent_dir
wasm-ld: error: duplicate symbol: path_basedir
wasm-ld: error: duplicate symbol: path_get_archive_delim
wasm-ld: error: duplicate symbol: find_last_slash
wasm-ld: error: duplicate symbol: strcasestr_retro__
wasm-ld: error: duplicate symbol: path_get_extension
wasm-ld: error: duplicate symbol: path_basename
wasm-ld: error: duplicate symbol: path_remove_extension
wasm-ld: error: duplicate symbol: path_is_compressed_file
wasm-ld: error: duplicate symbol: fill_pathname
wasm-ld: error: duplicate symbol: strlcpy_retro__
wasm-ld: error: duplicate symbol: strlcat_retro__
wasm-ld: error: duplicate symbol: fill_pathname_slash
wasm-ld: error: duplicate symbol: fill_pathname_base_noext
wasm-ld: error: duplicate symbol: fill_pathname_basedir