[LLVMdev] Problem building LLVM-GCC 4.0 Front End

Mohd-Hanafiah Abdullah napi at axiomsol.com
Tue Oct 2 11:54:01 PDT 2007


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






More information about the llvm-dev mailing list