Error while compiling on ubuntu server #19

Open
newsocialifecom opened this Issue Oct 29, 2012 · 5 comments

Projects

None yet

2 participants

@newsocialifecom

i get the following error when trying to compile in ubuntu server 12.10

/usr/bin/llvm-dis: unknown type in type table
emcc: src/web/client.bc: warning: Not valid LLVM bitcode
/usr/bin/llvm-dis: unknown type in type table
llvm-link: Not enough positional command line arguments specified!
Must specify at least 1 positional arguments: See: /usr/bin/llvm-link -help
Traceback (most recent call last):
  File "/root/games/emscripten/emcc", line 912, in <module>
    shared.Building.link(linker_inputs, in_temp(target_basename + '.bc'), remove_duplicates=remove_duplicates)
  File "/root/games/emscripten/tools/shared.py", line 702, in link
    assert os.path.exists(target) and (output is None or 'Could not open input file' not in output), 'Linking error: ' + output + '\nemcc: If you get duplicate symbol errors, try --remove-duplicates'
AssertionError: Linking error: 
emcc: If you get duplicate symbol errors, try --remove-duplicates
make: *** [client] Error 1
@kripken
Owner
kripken commented Oct 29, 2012

Looks like an llvm version problem. Which LLVM do you have installed? Did you compile it from source? Try clearing the emscripten cache (emcc --clear-cache) too.

@newsocialifecom

I use LLVM 3.1 and clearing cache doesn't solve anything

@kripken
Owner
kripken commented Oct 29, 2012

Can you clear cache again and then compile with EMCC_DEBUG=1 in the environment, and paste all the output?

@kripken
Owner
kripken commented Oct 31, 2012

The output says you are running LLVM 3.0

warning: LLVM version appears incorrect (seeing "Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)", expected "clang version 3.1")

if you have more than 1 installed, make sure emscripten uses the right one in the path in ~/.emscripten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment