Skip to content

wasm backend gives code generation error #2214

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

Closed
dynamite-bud opened this issue Jul 28, 2023 · 2 comments · Fixed by #2245
Closed

wasm backend gives code generation error #2214

dynamite-bud opened this issue Jul 28, 2023 · 2 comments · Fixed by #2245
Labels

Comments

@dynamite-bud
Copy link

$ ./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.

@certik certik added the wasm label Jul 29, 2023
@certik
Copy link
Contributor

certik commented Jul 29, 2023

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

Thanks for the report!

@Shaikh-Ubaid
Copy link
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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants