Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: undefined global variable "$__stack_top" #1

Open
steveklabnik opened this issue Oct 18, 2019 · 1 comment
Open

error: undefined global variable "$__stack_top" #1

steveklabnik opened this issue Oct 18, 2019 · 1 comment

Comments

@steveklabnik
Copy link

steveklabnik commented Oct 18, 2019

Hey there! I was checking this out today, and I got the following error:

> ..\fpc-wasm\compiler\ppwasm.exe -a .\lyff\lyff.pas
system.wat:8:13: error: undefined global variable "$__stack_top"
        get_global      $__stack_top
            ^^^^^^^^^^^^
system.wat:11:13: error: undefined global variable "$__stack_top"
        set_global      $__stack_top
            ^^^^^^^^^^^^
system.pas(19,1) Error: Error while assembling exitcode 1
system.pas(19,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted

I'm new to Free Pascal, and in fact, just installed it to give this a try. Is there anything I'm doing wrong? I was following https://wiki.freepascal.org/WebAssembly/Compiler. Thanks!

@skalogryz
Copy link
Owner

yes. sorry, the latest changes broke the compilation.
in the meantime you might want to revert to the revision of Sep 21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants