Wednesday 15 April 2015

c++ - emscripten issue with ubuntu version "aborting from js compiler due to exception: unknown vector type | undefined" -



c++ - emscripten issue with ubuntu version "aborting from js compiler due to exception: unknown vector type <4 x i8> | undefined" -

i cannot compile current version of emscripten ubuntu repos

here error

http://pastebin.com/j5z0ztts

i suspect might because emscripten outdated in repos, why there no bug reports??

could help? cannot find updated information.

thanks in advance.

the reason because using /usr/bin/clang++ comes linux distribution.

this version not back upwards javascript backend. in order utilize emscripten, you have compile fastcomp (an llvm clang compiler javascript backend added)

if have not built fastcomp yet, emscripten won't work.

check out page installation instructions:

http://kripken.github.io/emscripten-site/docs/building_from_source/llvm-backend.html

if have built fastcomp, problem in emscriptenrc file, , path.

this how worked around issue:

i created file called emscriptenrc.sh did this:

export path=/home/mike/emscripten/fastcomp/build/master/bin:/home/mike/emscripten/fastcomp/build/master/include:/home/mike/emscripten/fastcomp/build/master/lib:$path

then after created file

i rebuilt ~/.emscripten configuration file calling

./emcc -v emscripten build directory -- seemed right version of clang registered...

now can go ahead , compile emcc

i suggest reading http://kripken.github.io/emscripten-site/docs/building_from_source/llvm-backend.html rest of documentation prior trying utilize emscripten.

c++ ubuntu emscripten

No comments:

Post a Comment