Skip to content

RuntimeError: abort(Assertion failed: Missing signature argument to addFunction: ...) when building with -g #14959

@ravisumit33

Description

@ravisumit33

I am trying to enable debugging for wasm in chrome. So, I compiled and linked my code with -g instead of -O3 which I was doing earlier. But I am facing this strange error below at runtime.
Screenshot 2021-08-27 at 6 37 54 PM

I also tried adding gettimeofday inside DEFAULT_LIBRARY_FUNCS_TO_INCLUDE and _gettimeofday in EXPORTED_FUNCTIONS but the issue still persists. It seems that this function is there in the generated js but its signature (sig) isn't.

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