Error while building llvm-gcc-4.2

System:
Snow leopard 64bit

Problem:
Trying to build llvm-gcc, and I am getting an error shown below.

Here are the steps that i did:

$ mkdir llvm
$ cd llvm
llvm$ svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-src
llvm$ cd llvm-src/trunk/
trunk$ svn update
trunk$ ./configure --prefix=$PWD/…/install
trunk$ make ENABLE_OPTIMIZED=1

Error: llvm-gcc cannot be built in the source directory.
Please follow the instructions in the README.LLVM file.
make: *** [all] Error 1

Please help:

What does this error mean? and how do i take care of it?
(And README.LLVM is not that great of a help)

Any help is greatly appreciated!! Thank you!

Hello

What does this error mean? and how do i take care of it?
(And README.LLVM is not that great of a help)

Have you read it? Especially the section "Configure, Build, Install, Test"?

Yes, I tried the part in “Configure, Build, Install, Test”, and I was getting errors there; and so i looked at one of the earlier posts where they actually resolve the issue. And i tried doing exactly what that post said, but it didnt work for me. Here, I was trying to resolve this build error:

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

So, what should $DIR in --enable-llvm=$DIR be? /users/bp/llvm/llvm-src/trunk/? or /users/bp/llvm/obj/? or /usr/local/lib? I have tried all three of these and i am still getting an error above. (Default DIR is set to /users/bp/ - which also gives an error similar to above. I tried looking for --enable-llvm’s proper description, but I couldn’t find it using ./configure --help )

(So, i guess i was trying to see if can get away with building it differently inside the directory…some people were able to do it in previous posts, so i thought id give it a try too!)