error: Linking globals named 'regerror' with Emscripten
vadi2 opened this issue · comments
Vadim Peretokin commented
Continuing my quest to build Onigmo with emscripten (see #130), I'm getting the following error at the linking stage:
shared:WARNING: emcc: cannot find library "lua5.1"
shared:WARNING: emcc: cannot find library "hunspell"
shared:WARNING: emcc: cannot find library "pcre"
shared:WARNING: emcc: cannot find library "zip"
shared:WARNING: emcc: cannot find library "z"
shared:WARNING: emcc: cannot find library "pugixml"
error: Linking globals named 'regerror': symbol multiply defined!
shared:WARNING: Note: Input file "@/tmp/tmp8v4osF.response" did not exist.
shared:ERROR: Failed to run llvm optimizations:
Makefile:1320: recipe for target 'mudlet.js' failed
make: *** [mudlet.js] Error 1
The warnings are mine, but the confusing error, I think, comes from Onigmo - research says that Oniguruma had the same error and fixed it with an optional posix include flag: kkos/oniguruma#77
Could a similar flag be added to Onigmo, as it suffers from the same issue when building with Emscripten?
Thank you very much.