← 输入框|github.com|刷新
Skip to content

wasm backend gives code generation error #2214

Closed

Description

@dynamite-bud
$ ./src/bin/lpython --version
LPython version: 0.19.0
Platform: macOS ARM
Default target: arm64-apple-darwin22.5.0
./src/bin/lpython --backend wasm examples/expr2.py

code generation error: String Types not yet supported


Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).

The --show-wat flag gives the same error as above.

Activity

  1. certik commented on Jul 29, 2023

    @certik
    Contributor

    Yes, the WASM backend is currently more limited than LLVM/C. Can you also post a minimal example?

    Thanks for the report!

  2. ubaidsk commented on Aug 1, 2023

    @ubaidsk
    Collaborator

    I think we can reproduce the error using the following:

    $ cat examples/expr2.py 
    if __name__ == "__main__":
       print(5)
    $ lpython examples/expr2.py --backend wasm
    code generation error: String Types not yet supported
    
    
    Note: if any of the above error or warning messages are not clear or are lacking
    context please report it to us (we consider that a bug that must be fixed).
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions