Skip to content

Rehash is ambiguous during emscripten install #1181

Closed
@reesmanp

Description

@reesmanp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions