Mohd-Hanafiah Abdullah
2007-Oct-02 18:43 UTC
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
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? 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 >-- Mohd-Hanafiah Abdullah Axiomatic Solutions Sdn Bhd napi at axiomsol.com http://www.axiomsol.com
Mohd-Hanafiah Abdullah
2007-Oct-02 18:54 UTC
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
On Tue, 2007-10-02 at 11:47 -0700, Bill Wendling wrote:> On 10/2/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > > 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? > > > Hi Napi, > > I always just specify it with the "--enable-llvm" command instead of > an environment variable. The doc might be wrong in this instance...In the directory obj, I did: % ../llvm-gcc4.0-2.1.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm= /home/napi/proj/c2jvm/llvm/llvm-gcc/obj --enable-languages=c,c++ But, still got the same problem. Thanks. Napi
Mohd-Hanafiah Abdullah
2007-Oct-02 18:58 UTC
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
On Tue, 2007-10-02 at 14:38 -0700, Tanya M. Lattner wrote:> > 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.Could you give me an example of the LLVM tree and of the setting of LLVMOBJDIR? Thanks. Napi