llvm-gcc conigure error

I am trying to build llvm-gcc and I keep running into a configure error:

configure: error: You must specify valid path to your LLVM tree with
--enable-llvm=DIR

I have an llvm directory which contains the following directories:

llvm-2.8 llvm-install llvm-obj llvm-gcc llvm-gcc-obj llvm-gcc-install

I first configure, build, and install llvm by doing the following:

configure llvm inside llvm-obj with --prefix=/home/tony/llvm/llvm-install
--enable-llvm=/home/tony/llvm/llvm-2.8 among other options. Then make, make
install. This works fine.

Then I cd to llvm-gcc-obj, configure with
--prefix=/home/tony/llvm/llvm-gcc-install
--enable-llvm=/home/tony/llvm/llvm-obj among other options. Then when I do
make I get the configure error.

I am using Ubuntu 10.04 x86_64, with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5). I
downloaded the llvm-2.8 and llvm-gcc4.2-2.8 tarballs from llvm.org. I don't
see why I'm getting this configure error when I am following the README and
specifying --enable-llvm when I configure.

I am trying to build llvm-gcc and I keep running into a configure error:

configure: error: You must specify valid path to your LLVM tree with
--enable-llvm=DIR

I have an llvm directory which contains the following directories:

llvm-2.8 llvm-install llvm-obj llvm-gcc llvm-gcc-obj llvm-gcc-install

I first configure, build, and install llvm by doing the following:

configure llvm inside llvm-obj with --prefix=/home/tony/llvm/llvm-install
--enable-llvm=/home/tony/llvm/llvm-2.8 among other options. Then make, make
install. This works fine.

Then I cd to llvm-gcc-obj, configure with
--prefix=/home/tony/llvm/llvm-gcc-install
--enable-llvm=/home/tony/llvm/llvm-obj among other options. Then when I do
make I get the configure error.

Try --enable-llvm=/home/tony/llvm/llvm-install

Thanks, that seemed to have worked.

Jim Grosbach wrote: