emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

error emscripten

Open lampard8 opened this issue 14 years ago • 18 comments

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!

lampard8 avatar Aug 03 '12 01:08 lampard8

  1. We support only LLVM 3.1, not 3.0.
  2. 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.)

kripken avatar Aug 03 '12 03:08 kripken

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 .

lampard8 avatar Aug 03 '12 05:08 lampard8

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.

kripken avatar Aug 08 '12 18:08 kripken

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 !!

lampard8 avatar Aug 08 '12 23:08 lampard8

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++?

kripken avatar Aug 09 '12 01:08 kripken

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

lampard8 avatar Aug 09 '12 01:08 lampard8

Then that is why it fails when you run emcc. Where did you install LLVM?

kripken avatar Aug 10 '12 01:08 kripken

I installed LLVM in ~, I think the problem that emscripten not read the file setting.py !!!

lampard8 avatar Aug 10 '12 01:08 lampard8

You need to edit ~/.emscripten, not settings.py. Read the comment at the top of settings.py

kripken avatar Aug 10 '12 04:08 kripken

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

marti1125 avatar Aug 30 '12 18:08 marti1125

Does /usr/bin/llvm-dis exist?

kripken avatar Aug 30 '12 23:08 kripken

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

bwiklund avatar Apr 27 '13 21:04 bwiklund

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

zz-james avatar Jul 24 '13 19:07 zz-james

That path for clang++ is wrong, but where/how do I set the path to clang++ in the ~/.emscripten file ?

zz-james avatar Jul 24 '13 19:07 zz-james

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!

zz-james avatar Jul 24 '13 19:07 zz-james

now runnning em++ gives me ./em++ Traceback (most recent call last): File "./em++", line 11, in exit(subprocess.call([shared.PYTHON, shared.EMCC] + sys.argv[1:])) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(_popenargs, *_kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 20] Not a directory

Any ideas?? Thanks

zz-james avatar Jul 24 '13 20:07 zz-james

ok fixed by symlinking clang++ into the llvm folder with sudo ln -s /usr/bin/clang++ /usr/lib/llvm-3.2/bin/clang++

zz-james avatar Jul 24 '13 21:07 zz-james

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.

juj avatar Jul 27 '14 21:07 juj