emscripten-core / emscripten-core/emscripten

Emscripten error with uninformative message while using tree-sitter

Open
#13,960 8 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 16h
Merged PRs (30d)
117

Description

Hello.
I have this error while building .wasm for [grammar](https://github.com/Lereena/tree-sitter-pascalabcnet) using [tree-sitter](https://github.com/tree-sitter/tree-sitter)

```
emcc command failed - emcc: error: '/home/coder/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -fno-inline-functions -fPIC -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=17 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/home/coder/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -Os -fno-exceptions -Isrc src/parser.c -c -o /tmp/emscripten_temp_i5zqhup0/parser_0.o' failed (-9)
```

I cannot find out the source of this problem because the work is done on a temporary file that is deleted when the command fails, and the message does not say what the problem is. What can be done to fix this?

My OS: Ubuntu 20.04.2 LTS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.