tree-sitter-sql icon indicating copy to clipboard operation
tree-sitter-sql copied to clipboard

Building playground fails

Open vjerci opened this issue 2 years ago • 1 comments

When using mac m1 and building playground it just fails

tree-sitter build-wasm

commit hash when it failed for me: 218b672499729ef71e4d66a949e4a1614488aeaa

Here is full logs:

https://gist.github.com/vjerci/19d2166a14c15aaf66663ff5c1937dbb

It seems as if some wrong version of c is used, but to be honest it doesn't happen with other parsers and I'm using about 15 different ones

I'm using dockerized version of emscripten, I've tried bumping it's version but it still fails. When trying with local version of emscripten it seems to be stuck in for loop indefinitely.

If you have any tips how to get it working I would much appreciate it.

vjerci avatar Aug 16 '22 13:08 vjerci

When I run build-wasm on a machine with 8GB RAM, it gets SIGKILLed due to running OOM.

I managed to build it on a machine with 128GB of RAM (took 30 mins) at 218b672499729ef71e4d66a949e4a1614488aeaa: tree-sitter-sql.zip, but it doesn't work in the playground. I get the following console error (I used https://hub.docker.com/r/emscripten/emsdk):

RuntimeError: abort(Assertion failed: undefined). Build with -s ASSERTIONS=1 for more info.

chrismwendt avatar Nov 06 '22 22:11 chrismwendt