kripken / BananaBread

BananaBread is a C++ 3D game engine that runs on the web using JavaScript+WebGL+HTML
1.38k stars 345 forks source link

Error while compiling on ubuntu server #19

Open newsocialifecom opened 11 years ago

newsocialifecom commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

kripken commented 11 years ago

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

newsocialifecom commented 11 years ago

http://pastebin.com/kdMUPCp9

kripken commented 11 years ago

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.

Huntebright89 commented 6 years ago

I have a gay problem