[Mono-dev] LLVM backend won't compile

Paul Melis mono-devel at assumetheposition.nl
Mon Dec 21 12:18:30 EST 2009


Hi,

I'm configuring Mono 2.6.1 with --enable-llvm and can see that configure
picks up the llvm-config script, but subsequently compiling gives errors
due to missing LLVM include paths:

18:14|melis at juggle2:~/c/mono-2.6.1> ./configure
--prefix=/home/melis/mono --enable-llvm
[...]
checking for llvm-config... /home/melis/llvm/bin/llvm-config
[...]
    DTrace:        no
    Parallel Mark: yes
    LLVM Back End: yes
   


IMPORTANT:
IMPORTANT: The LLVM Back End is experimental and has known problems.
IMPORTANT:


18:17|melis at juggle2:~/c/mono-2.6.1> make
[...]
make[3]: Entering directory `/home/melis/c/mono-2.6.1/mono/mini'
make  all-am
make[4]: Entering directory `/home/melis/c/mono-2.6.1/mono/mini'
CC  mini-llvm.lo
mini-llvm.c:14:25: error: llvm-c/Core.h: No such file or directory
mini-llvm.c:15:36: error: llvm-c/ExecutionEngine.h: No such file or
directory
mini-llvm.c:17:27: error: mini-llvm-cpp.h: No such file or directory
mini-llvm.c:23: error: expected specifier-qualifier-list before
'LLVMModuleRef'
mini-llvm.c:39: error: expected specifier-qualifier-list before
'LLVMValueRef'
mini-llvm.c:112: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'cond_to_llvm_cond'
mini-llvm.c:125: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'fpcond_to_llvm_cond'
mini-llvm.c:138: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'ee'
mini-llvm.c:150: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'IntPtrType'
mini-llvm.c:179: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'type_to_llvm_type'

Btw,  I can't seem to find the switch to make to have it output the
command it's executing (for checking -I flags)...

Paul


More information about the Mono-devel-list mailing list