[Mono-dev] Link errors with mono-llvm
seurer at linux.vnet.ibm.com
Fri Oct 23 17:45:12 UTC 2015
I originally used https://github.com/mono/llvm/mono-4-3 (though I don't
remember why) but I will switch and try the master branch. Using
--with_llvm didn't work as things are set up now.
Any special configuration options I should be using when building llvm?
On 10/23/2015 11:00 AM, Zoltan Varga wrote:
> 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
> On Fri, Oct 23, 2015 at 11:51 AM, Bill Seurer <seurer at linux.vnet.ibm.com
> <mailto:seurer at linux.vnet.ibm.com>> wrote:
> 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:
> 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
> <mailto:Mono-devel-list at lists.ximian.com>
More information about the Mono-devel-list