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

Rehash is ambiguous during emscripten install #1181

Open
reesmanp opened this issue Sep 12, 2017 · 3 comments
Open

Rehash is ambiguous during emscripten install #1181

reesmanp opened this issue Sep 12, 2017 · 3 comments

Comments

@reesmanp
Copy link

reesmanp commented Sep 12, 2017

During install via http://webassembly.org/getting-started/developers-guide/ It tells me that the call to rehash is ambiguous in src/literal.h:156:12 pointing to two functions in src/support/hash.h

/Users/preesm/git/emsdk/binaryen/master/src/literal.h:156:12: error: call to 'rehash' is ambiguous
    return wasm::rehash(
           ^~~~~~~~~~~~
/Users/preesm/git/emsdk/binaryen/master/src/support/hash.h:25:17: note: candidate function
inline uint32_t rehash(uint32_t x, uint32_t y) { // see http://www.cse.yorku.ca/~oz/hash.html
                ^
/Users/preesm/git/emsdk/binaryen/master/src/support/hash.h:38:15: note: candidate function
inline size_t rehash(uint64_t x, uint64_t y) { // see boost and https://stackoverflow.com/a/2595226/1176841
            

I'm on OSX if that makes a difference.

@kripken
Copy link
Member

kripken commented Sep 12, 2017

Surprising that it's ambiguous on your compiler. Not sure why that is. Anyhow, #1182 should fix it, please confirm (since this is an issue our bots don't see).

@reesmanp
Copy link
Author

@kripken yes, the fix works and I have now completed the install without any further issues. Thank you.

@kripken
Copy link
Member

kripken commented Sep 12, 2017

Great, thanks for confirming.

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

2 participants