Skip to content

--spill-pointers not working in version 6 #27392

Description

@hughsando

Please include the following in your bug report:

Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.3-git
clang version 23.0.0git
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/emscripten/6.0.3/libexec/llvm/bin

Failing command line in full:

emcc main.cpp -s BINARYEN_EXTRA_PASSES='--spill-pointers'
Fatal: getStackSpace: failed to find the stack pointer
emcc: error: '/opt/homebrew/Cellar/emscripten/6.0.3/libexec/binaryen/bin/wasm-opt --spill-pointers a.out.wasm -o a.out.wasm --mvp-features --enable-bulk-memory --enable-bulk-memory-opt --enable-call-indirect-overlong --enable-multivalue --enable-mutable-globals --enable-nontrapping-float-to-int --enable-reference-types --enable-sign-ext' failed (returned 1)

#include <stdio.h>
int main(int argc, char **argv)
{
	printf("Hello!\n");
}

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