Frage

I installed Emscripten using the instructions here, with a few differences for 13.10:

Instead of compiling and setting up clang 3.2, installed from the repository since it's 3.2. (clang --version shows expected output)

Linked the llvm since the compiler didn't find it:

sudo ln -s /usr/bin/llvm-link-3.2 /usr/bin/llvm-link
sudo ln -s /usr/bin/llvm-ar-3.2 /usr/bin/llvm-ar

But now I get an error about the nonexistence of /usr/bin/opt, even though ~/.emscripten has no mention of that directory:

$ ./em++ tests/hello_world.cpp
WARNING  root: LLVM version appears incorrect (seeing "version", expected "3.2")
INFO     root: (Emscripten: Running sanity checks)
CRITICAL root: Cannot find /usr/bin/opt, check the paths in ~/.emscripten
War es hilfreich?

Lösung

As described here, there were several more that needed links from -3.2 to normal.

Andere Tipps

  1. Check /usr/bin installed files from llvm-3.2 package:

    dpkg -L llvm-3.2 | grep /usr/bin/ | sort
    
  2. Create sym-links without version number

    sudo ln -s /usr/bin/llvm-ar-3.2 /usr/bin/llvm-ar
    ...
    sudo ln -s /usr/bin/opt-3.2 /usr/bin/opt
    

    Note: Don't forget 5 files named no include "llvm-". ( bugpoint, c-index-test, llc, macho-dump, opt)

  3. Check /usr/bin installed files from llvm-3.2-runtime package:

    dpkg -L llvm-3.2-runtime | grep /usr/bin/ | sort
    
  4. Create sym-link without version number:

    sudo ln -s /usr/bin/lli-3.2 /usr/bin/lli
    
  5. Run Emscripten:

    emcc
    
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top