emscripten issue with ubuntu version “aborting from js compiler due to exception: unknown vector typ


I cannot compile anything with the current version of emscripten from the ubuntu repos

Here is the error

<a href="http://pastebin.com/j5Z0ztTs" rel="nofollow">http://pastebin.com/j5Z0ztTs</a>

I suspect it might be because emscripten is outdated in the repos, but why is there no bug reports??

Could anyone help? I cannot find any updated information.

Thanks in advance.


The reason is because you are using the /usr/bin/clang++ that comes with your Linux distribution.

This version does not support Javascript backend. In order to use emscripten, you have to compile fastcomp (an LLVM clang compiler with Javascript backend added)

If you have not built fastcomp yet, Emscripten won't work.

Check out this page for installation instructions:

<a href="http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html" rel="nofollow">http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html</a>

<hr />

If you have already built fastcomp, then the problem is in your emscriptenrc file, and moreover your PATH.

This is how I worked around the issue:

I created a file called emscriptenrc.sh that 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 I created that file

I rebuilt the ~/.emscripten configuration file by calling

./emcc -v from the emscripten build directory -- this seemed to get the right version of clang registered...

now you can go ahead and compile with emcc

I would suggest reading <a href="http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html" rel="nofollow">http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html</a> as well as the rest of the documentation prior to trying to use emscripten.


  • -fobjc-weak is not supported on the current deployment target
  • With Xcode 4.5.2, Clang compiler seems not to be SDK version dependent. Why?
  • /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
  • In IEEE 754, why does adding negative zero result in a no-op but adding positive zero does not?
  • Getting undefined symbol: __asan_memset when trying to use Clang address sanitizer
  • LLVM-5.0 Makefile undefined reference fail
  • The use of getSmallConstantTripCount method of Loop in LLVM
  • Can't compile/assemble MRC and MCR coprocessor instructions on iPhone?
  • Cannot install ruby-1.9.2 in Mac OSX 10.8.1 due to symlink error
  • How to distinguish field that requires null=True when blank=True is set in Django models?
  • Find substring in string using locale
  • Majority function in SQL
  • Installing Python modules with Anaconda or Canopy
  • How to distribute Java-based software?
  • Msvcr71.dll Msvcp71.dll missing
  • Portable JRE on Linux - possible?
  • Is it possible to run clang with llc flags
  • nodemcu custom firmware build problems
  • Android Studio Can't Find tools.jar
  • Convert SQLite database to XML
  • uniform generation of points on 3D box
  • Eclipse CDT error: Unable to compile
  • Hardware Accelerated Image Scaling in windows using C++
  • Breeze - Deleted Items nav properties bug
  • javaw.exe and eclipse startup problems
  • HTML download movie download link
  • Updating server-side rendering client-side
  • Can I make an Android app that runs a web view in Chrome 39?
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • How to include full .NET prerequisite for Wix Burn installer
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How to set the response of a form post action to a iframe source?
  • coudnt use logback because of log4j
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • need help with bizarre java.net.HttpURLConnection behavior
  • Add sale price programmatically to product variations