error emscripten
Hello, kripken! I have installed LLVM with Clang (3.0) and Node.js in the Centos 5.5 OS. Its OK.
even if Before run the ./emcc I've changed the LLVM_ROOT in the settings.py , but when I input the line ./emcc. I got the error:
(Emscripten: Config file changed, clearing cache) warning: Could not verify LLVM version: [Errno 2] No such file or directory (Emscripten: Running sanity checks) FATAL: Cannot find /home/benamara/Dev/llvm-3.0/cbuild/bin/clang++, check the paths in ~/.emscripten
I don't known how i can do it .
Waiting for your help! Thanks!
- We support only LLVM 3.1, not 3.0.
- Does the file it says does not exist, exist? Might be a small typo in the path there. (But again, you need LLVM 3.1 even after that.)
I'm sure the the road to LLVM is correct in the settings.py file, but it still gives me the same error !!! , I started to lose hope to work Emscripten .
If you are sure the path is right, all I can think of is that there is a problem with your Python installation or some other basic issue. If you want, you can debug this by putting some debug printouts in the code right before it shows that error, to see why it has a problem finding that file.
give me the link where I need to download Python and Node Js, so I make mistakes in the choice of versions or link, and thank you !!
You need to have python already installed to run emcc. And I don't think node is the issue here.
What OS are you on? And what is the output of ls -al /home/benamara/Dev/llvm-3.0/cbuild/bin/clang++?
my OS is ubuntu 12.04
benamara@benamara-K50IE:~$ ls -al /home/benamara/Dev/llvm-3.0/cbuild/bin/clang++ ls: can not access / home/benamara/Dev/llvm-3.0/build/bin/clang + +: No such file or such
Then that is why it fails when you run emcc. Where did you install LLVM?
I installed LLVM in ~, I think the problem that emscripten not read the file setting.py !!!
You need to edit ~/.emscripten, not settings.py. Read the comment at the top of settings.py
EMSCRIPTEN_ROOT = os.path.expanduser('~/emscripten') # this helps projects using emscripten find it
LLVM_ROOT = os.path.expanduser('/usr/bin/')
(Emscripten: Config file changed, clearing cache) warning: LLVM version appears incorrect (seeing "Debian clang vers", expected "clang version 3.1") (Emscripten: Running sanity checks) FATAL: Cannot find /usr/bin/llvm-dis, check the paths in ~/.emscripten
Does /usr/bin/llvm-dis exist?
I had a similar issue. For me, on OSX 10.7.5, I had to edit ~/.emscripten like so:
LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/bin') # directory
Needed to be:
LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/local/bin') # directory
Check where your llvm is installed with this, or similar:
which llvm-link
I am having similar trouble after 2 days work!!!
typing:
/usr/lib/llvm-3.2/bin/llvm-link -version
gives me:
LLVM (http://llvm.org/): LLVM version 3.2 ... etc ...
so the path to LLVM directory is: /usr/lib/llvm-3.2/bin
which is what I have in ~/.emscripten file
LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/lib/llvm-3.2/bin') # directory
and the python executable is: /usr/bin/python2 again in ~/.emscripten file I have
PYTHON = os.path.expanduser(os.getenv('PYTHON') or '/usr/bin/python2') # executable
but when I run emcc I get
WARNING root: (Emscripten: settings file has changed, clearing cache)
WARNING root: Could not verify LLVM version: [Errno 2] No such file or directory
INFO root: (Emscripten: Running sanity checks)
CRITICAL root: Cannot find /usr/lib/llvm-3.2/bin/clang++, check the paths in ~/.emscripten
What could be wrong?
Thanks for any help
That path for clang++ is wrong, but where/how do I set the path to clang++ in the ~/.emscripten file ?
ahh more info. getting a new error WARNING root: LLVM version appears incorrect (seeing "Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)", expected "clang version 3.2") will try to fix and report for future reference!
now runnning em++ gives me
./em++
Traceback (most recent call last):
File "./em++", line 11, in
Any ideas?? Thanks
ok fixed by symlinking clang++ into the llvm folder with sudo ln -s /usr/bin/clang++ /usr/lib/llvm-3.2/bin/clang++
Closing this as fixed. Also, in the new fastcomp we have migrated to using a custom build of LLVM. The portable Emscripten SDK will allow you to build the fastcomp backend from sources in an automated manner.