Installation failed on debian/jessie
josemic opened this issue · comments
Installed after install instructions:
git clone git://github.com/yiannist/llvm.git llvm
cd llvm/
./configure --enable-optimized --disable-assertions
make -j N (where *N* is the number of CPU cores you want to use for the compilation process)
Installing (changed sudo to su):
su
make install
Result:
llc -load=ErlangGC.so hello_1.ll
Error opening 'ErlangGC.so': ErlangGC.so: cannot open shared object file: No such file or directory
-load request ignored.
unsupported GC: erlang_gc
0 llc 0x0000000000e6f3b5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1 llc 0x0000000000e6f813
2 libpthread.so.0 0x00007fdccf174210
3 llc 0x0000000000b03074 llvm::GCModuleInfo::getFunctionInfo(llvm::Function const&) + 20
4 llc 0x0000000003063528 llvm::GCModuleInfo::getFunctionInfo(llvm::Function const&) + 39191752
Stack dump:
0. Program arguments: llc -load=ErlangGC.so hello_1.ll
Segmentation fault
Here should ErlangGC.so be located?
Sorry for that!
The truth is that this documentation is out-dated. In fact, you don't need custom LLVM (i.e., this repository) anymore. The necessary patches for ErLLVM have already been committed upstream and any vanilla LLVM version > 3.2 will work without any extra modifications. Thus, you just have to get a proper (vanilla) version of LLVM.
The GC plugin is now called "erlang" (not "erlang_gc").
Ι have to apologize for the misleading documentation, though.
These are good news! I'll try again the next days. Thanks.