[Mono-dev] Link errors with mono-llvm

Zoltan Varga vargaz at gmail.com
Fri Oct 23 19:07:46 UTC 2015


Hi,

 No, building with the default options should work.

On Fri, Oct 23, 2015 at 1:45 PM, Bill Seurer <seurer at linux.vnet.ibm.com>
wrote:

> 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:
>
>> Hi,
>>
>>    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++
>>
>>                             Zoltan
>>
>>
>> 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:
>>
>>     /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
>>     <mailto:Mono-devel-list at lists.ximian.com>
>>     http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>>
>
> --
>
> -Bill Seurer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20151023/0a51300a/attachment.html>


More information about the Mono-devel-list mailing list