[LLVMdev] Problem building LLVM-GCC 4.0 Front End

Tanya M. Lattner tonic at nondot.org
Tue Oct 2 14:38:56 PDT 2007


> I've read and followed the README.LLVM file that comes with LLVM-GCC 4.0
> Front End source, but got the following error when compiling:
>
> configure: error: You must specify valid path to your LLVM tree with
> --enable-llvm=DIR
> make: *** [configure-gcc] Error 1
>
> I've done the following in csh before hand:
> $ setenv LLVMOBJDIR /home/napi/proj/c2jvm/llvm/llvm-gcc/obj
>
> Where did I go wrong?

LLVMOBJDIR needs to be the LLVM tree, not llvm-gcc.

-Tanya

>
> Thanks.
>
> Napi
>
> On Fri, 2007-05-11 at 23:38 -0700, Chris Lattner wrote:
>> On Fri, 11 May 2007, me22 wrote:
>>> I'm not exactly sure how llvm-g++ works.  I think it goes through the
>>> standard gcc sequence (gimple, rtl, and such) but then outputs LLVM
>>> (http://llvm.org/docs/LangRef.html), which is the intermediate
>>> representation used by the rest of the chain.  To make an LLVM backend
>>> you would not need to deal with RTL and such at all.
>>
>> llvm-g++ converts from trees to high-gimple to LLVM.  RTL is not involved.
>>
>> LLVM also does have an MSIL backend, if you are interested in a JVM
>> backend, it may be a starting point.
>>
>> -Chris
>>
>



More information about the llvm-dev mailing list