Skip to content

wasm-split support for MEMORY64 #24689

Closed as duplicate
Closed as duplicate

Description

@wenhanchong

Please include the following in your bug report:

Version of emscripten/emsdk:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.10 (b7dc6e5747465580df5984e723b9d1f10d8e804b)
clang version 21.0.0git (https:/github.com/llvm/llvm-project 8f7e57485ee73205e108d74abb5565d5c63beaca)
Target: wasm32-unknown-emscripten
Thread model: posix

Failing command line in full:
If this is compile or link-time failure please include the full failing command
along with its entire output.

wasm-split: /home/chongw/binaryen/src/literal.h:288: int32_t wasm::Literal::geti32() const: Assertion `type == Type::i32' failed.
rebuild.sh: line 30:  4052 Aborted                 (core dumped) /home/chongw/binaryen/bin/wasm-split --enable-mutable-globals --export-prefix=% build/main.wasm.orig -o1 build/main.wasm -o2 build/main.deferred.wasm --profile=build/profile.data --enable-memory64 --verbose

Unable to run wasm-split for wasm built with -sMEMORY64=1 even with wasm-split --enable-memory64 flag.
Sample app attached.

wasmsplit_memory64.zip

Activity

  1. sbc100 commented on Jul 11, 2025

    @sbc100
    Collaborator

    Could you open a bug in the binaryen repo for this?

  2. kripken commented on Jul 14, 2025

    @kripken
    Member

    Replacing with that new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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