Skip to content

Error: "exports count of 143958 exceeds internal limit of 10000" #22863

@anutosh491

Description

@anutosh491

Hi,

I am facing this issue

RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): exports count of 143958 exceeds internal limit of 100000 @+214486)

I am not planning on missing out any function/symbol (hence providing EXPORT_ALL=1 to em++ and --export-all to wasm-ld)

When building with EMCC_DEBUG=1 emmake make -j16 install VERBOSE=1, it generates a file (/var/folders/m1/cdn74f917994jd99d_2cpf440000gn/T/emscripten_temp/tmp6qr4um78.json) which is giving me more info on the exported functions. I see a lot of them hence wanted to confirm if this is due to the huge list of functions I am interested in and is there a way to get past this error ?

I've pasted the contents of the file here for anyone interested (https://raw.githubusercontent.com/anutosh491/xeus-cpp-lite-debug/refs/heads/main/tmp6qr4um78.json)

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