llvm icon indicating copy to clipboard operation
llvm copied to clipboard

Installation failed on debian/jessie

Open josemic opened this issue 12 years ago • 2 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?

josemic avatar Nov 17 '13 21:11 josemic

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.

yiannist avatar Nov 19 '13 22:11 yiannist

These are good news! I'll try again the next days. Thanks.

josemic avatar Nov 20 '13 19:11 josemic