Problem building llvm and clang

Hello there,
I am just starting with the llvm and clang world. I tried to build source code and I was not be able to.

I follow the steps right from this web page:

http://clang.llvm.org/get_started.html

And I am getting this error when executing the command make:

make[5]: Nothing to be done for `all’.

make[5]: Nothing to be done for `all’.

make[5]: Nothing to be done for `all’.

make[5]: Nothing to be done for `all’.

make[5]: Nothing to be done for `clang_darwin’.

make[5]: Nothing to be done for `clang_macho_embedded’.

llvm[4]: Copying runtime library darwin/eprintf to build dir

cp: /Users/fran/Desktop/llvm/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory

make[4]: *** [/Users/fran/Desktop/llvm/build/Release+Asserts/lib/clang/3.6.0/lib/darwin/libclang_rt.eprintf.a] Error 1

rm /Users/fran/Desktop/llvm/build/Release+Asserts/lib/clang/3.6.0/lib/darwin/.dir

make[3]: *** [compiler-rt/.makeall] Error 2

make[2]: *** [all] Error 1

make[1]: *** [clang/.makeall] Error 2

make: *** [all] Error 1

This is trying to copy a runtime library, but it doesn’t exist in that location.

(llvm/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a)

Even the folder “clang_darwin” does not exist.

Any help?

I am running on OS X 10.9.5.

I would appreciate your help with this. I am so newby.

Users/fran/Desktop/llvm/build/

Is your build directory inside llvm source dir? You should move it out if it is and have something like this

fran/llvm for llvm sources, clang in fran/llvm/tools/clang and fran/build.

Note that compiler-rt and clang-extra are not really needed.

Yes, you are right. It is not located properly.

However, I am still getting that error.

make[5]: Nothing to be done for `clang_darwin’.

make[5]: Nothing to be done for `clang_macho_embedded’.

llvm[4]: Copying runtime library darwin/eprintf to build dir

cp: /Users/fran/llvm_build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory

make[4]: *** [/Users/fran/llvm_build/Release+Asserts/lib/clang/3.6.0/lib/darwin/libclang_rt.eprintf.a] Error 1

rm /Users/fran/llvm_build/Release+Asserts/lib/clang/3.6.0/lib/darwin/.dir

make[3]: *** [compiler-rt/.makeall] Error 2

make[2]: *** [all] Error 1

make[1]: *** [clang/.makeall] Error 2

make: *** [all] Error 1

I moved the build directory to /Users/fran/llvm_build.

What am I doing wrong? :frowning:
Thanks.

Did you remove everything from build dir and configure again? How did you configure?

Yes, I removed the previous build folder, and then executed configure again on the new directory.

This way:

I got into /Users/fran/llvm_build, and I typed:

/Users/fran/Development/llvm/configure --prefix=/Users/fran/llvm_installation --enable-optimized

And then, make.

(I moved the source code to /Users/fran/Development/llvm).