kripken/emscripten — Issue #245: "Assertion failed: we only support 64-bit two's complement so far"
Author: gazs
Created: 2012-02-11 22:29:39+00:00
State: open

I've run into the above assertion error trying to build the InChi library from the LLVM bitcode (as suggested on the [mailing list thread][1], I've tried manually linking all the *.o files generated by the library's makefile).

I've uploaded source with makefile modified to use emscripten to https://github.com/gazs/inchi-emscripten/tree/master/

Full steps to reproduce:

cd INCHI_API/gcc_so_makefile
make
llvm-ld *.o -o result/manual-ld.ll
emcc result/manual-ld.ll.bc -o result/manual-libinchi.js

Running llvm-ld with -disable-opt works around this problem (the original still exists however, the linking is still not perfect it seems)

[1]:http://groups.google.com/group/emscripten-discuss/browse_thread/thread/39e12a06598d241f#