Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Linking globals named 'regerror' with Emscripten #142

Open
vadi2 opened this issue Aug 14, 2019 · 0 comments
Open

error: Linking globals named 'regerror' with Emscripten #142

vadi2 opened this issue Aug 14, 2019 · 0 comments

Comments

@vadi2
Copy link

vadi2 commented Aug 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant