Skip to content

Undefined symbol errors when build Emscripten tests for emsdk version 4.0.9 #412

@mcbarton

Description

@mcbarton

I started investigated xeus-cpp with emsdk version 4.0.9, and got the following undefined symbol errors when building the test executable

error: undefined symbol: _Unwind_CallPersonality (referenced by root reference (e.g. compiled C/C++ code))
warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
warning: __Unwind_CallPersonality may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: __cpp_exception (referenced by root reference (e.g. compiled C/C++ code))
warning: ___cpp_exception may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: __wasm_lpad_context (referenced by root reference (e.g. compiled C/C++ code))
warning: ___wasm_lpad_context may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors

This may be something @anutosh491 has already spotted with his investigations, but thought I would raise the issue anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions