[Mono-dev] Link errors with mono-llvm

Zoltan Varga vargaz at gmail.com
Fri Oct 23 16:00:45 UTC 2015


  Make sure you are using the 'master' branch of the mono llvm repo. Also,
try using --with-llvm=<prefix> instead of --enable-llvm=yes, the latter
might pick up the system version of llvm. Otherwise, I don't know what is
causing the problem, those symbols are in libraries which are supposed to
be linked into the mono executable, i.e.:
mini/Makefile should contains something like:

LLVM_LIBS = -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info
-lLLVMMCDisassembler -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMObject -lLLVMMCParser
-lLLVMBitReader -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen
-lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa
-lLLVMBitWriter -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore
-lLLVMSupport -L/Users/vargaz/git/llvm/usr64/lib  -lz -lpthread -ledit
-lcurses -lm  -lstdc++


On Fri, Oct 23, 2015 at 11:51 AM, Bill Seurer <seurer at linux.vnet.ibm.com>

> I am attempting to activate the llvm backend for power but am running into
> linker issues.  I get hundreds of missing symbols errors like this when I
> do an  --enable-llvm=yes build:
> /home/seurer/mono-git/mono-llvm/mono/mini/mini-llvm-cpp.cpp:557: undefined
> reference to `llvm::createNoAAPass()'
> The symbols it is complaining about are in the libraries that were created
> when I compiled the mono version of llvm.  I even specified all the
> libraries directly in the LDFLAGS environment variable but the symbols
> still are not found.
> Any ideas what I am doing wrong?
> --
> -Bill Seurer
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20151023/8ca197b3/attachment.html>

More information about the Mono-devel-list mailing list