> /usr/lib/llvm-3.1/bin

Emscripten requires llvm 3.2.

- Alon



On Fri, Jan 10, 2014 at 4:55 PM, Sasha Fonseca <[email protected]> wrote:

> Hello,
>
> I'm trying to install emscripten on a new laptop with Ubuntu 12.04
> (running as a guest on VirtualBox) and I followed the guide and have
> installed:
>
>    -
>    - Ubuntu clang version 3.2-1~exp9ubuntu1~precise1
>    (tags/RELEASE_32/final) (based on LLVM 3.2)
>    - LLVM-3.2
>
>
> This is my output when I try to test emscripten:
>
> sashavm@UbuntuVM:~/emscripten$ ./em++ tests/hello_world.cpp
>>
>> /usr/lib/llvm-3.1/bin/llvm-nm: /tmp/tmpZMGXR8/hello_world_0.o: Unknown
>>> bitstream version!.
>>
>> /usr/lib/llvm-3.1/bin/opt: /tmp/tmpZMGXR8/a.out.bc: error: Unknown
>>> bitstream version!
>>
>> Traceback (most recent call last):
>>
>>   File "/home/sashavm/emscripten/emcc", line 1750, in <module>
>>
>>     shared.Building.llvm_opt(final, link_opts, final + '.link.ll')
>>
>>   File "/home/sashavm/emscripten/tools/shared.py", line 1169, in llvm_opt
>>
>>     assert os.path.exists(target), 'Failed to run llvm optimizations: ' +
>>> output
>>
>> AssertionError: Failed to run llvm optimizations:
>>
>>
> And my .emscripten file is the following:
>
>
>
> # Note: If you put paths relative to the home directory, do not forget
>> os.path.expanduser
>
>
>> import os
>
>
>> # this helps projects using emscripten find it
>
> EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or
>> '/home/sashavm/emscripten') # directory
>
> LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or
>> '/usr/lib/llvm-3.1/bin') # directory
>
> PYTHON = os.path.expanduser(os.getenv('PYTHON') or '/usr/bin/python2') #
>> executable
>
>
>> # See below for notes on which JS engine(s) you need
>
> NODE_JS = os.path.expanduser(os.getenv('NODE') or '/usr/local/bin/node') #
>> executable
>
> SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or
>> 'js')] # executable
>
> V8_ENGINE = os.path.expanduser(os.getenv('V8') or 'd8') # executable
>
>
>> JAVA = 'java' # executable
>
>
>> TEMP_DIR = '/tmp'
>
>
>> CRUNCH = os.path.expanduser(os.getenv('CRUNCH') or 'crunch') # executable
>
>
>> #CLOSURE_COMPILER = '..' # define this to not use the bundled version
>
>
>>
>> ########################################################################################################
>
>
>>
>> # Pick the JS engine to use for running the compiler. This engine must
>> exist, or
>
> # nothing can be compiled.
>
> #
>
> # Recommendation: If you already have node installed, use that. Otherwise,
>> build v8 or
>
> #                 spidermonkey from source. Any of these three is fine, as
>> long as it's
>
> #                 a recent version (especially for v8 and spidermonkey).
>
>
>> COMPILER_ENGINE = NODE_JS
>
> #COMPILER_ENGINE = V8_ENGINE
>
> #COMPILER_ENGINE = SPIDERMONKEY_ENGINE
>
>
>>
>> # All JS engines to use when running the automatic tests. Not all the
>> engines in this list
>
> # must exist (if they don't, they will be skipped in the test runner).
>
> #
>
> # Recommendation: If you already have node installed, use that. If you
>> can, also build
>
> #                 spidermonkey from source as well to get more test
>> coverage (node can't
>
> #                 run all the tests due to node issue 1669). v8 is
>> currently not recommended
>
> #                 here because of v8 issue 1822.
>
>
>> JS_ENGINES = [NODE_JS] # add this if you have spidermonkey installed too,
>> SPIDERMONKEY_ENGINE]
>
>
>
> Can someone help me with this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to