[LLVMdev] clang installation failure
Jack Howarth
howarth at bromo.med.uc.edu
Thu Apr 29 20:43:45 PDT 2010
I am running into an odd problem when I try to build llvm/clang 2.7
with --prefix=/sw/lib/llvm-2.7 and install it for packaging with...
make install DESTDIR=/sw/src/fink.build/root-llvm-clang-2.7-1
...where /sw/lib/llvm-2.7 doesn't exist yet in the volume.
This fails with the error...
llvm[4]: ======= Finished Linking Release Executable clang (without symbols)
llvm[4]: Installing Release /sw/src/fink.build/root-llvm-clang-2.7-1/sw/lib/llvm-2.7/bin/clang
make[4]: *** No rule to make target `/sw/lib/llvm-2.7/bin', needed by `/sw/src/fink.build/root-llvm-clang-2.7-1/sw/lib/llvm-2.7/bin/clang++'. Stop.
make[3]: *** [install] Error 1
make[2]: *** [install] Error 1
make[1]: *** [clang/.makeinstall] Error 2
make: *** [install] Error 1
However if I build with --prefix=/sw OR create /sw/lib/llvm-2.7/bin,
the installation succeeds. It appears that the Makefile's are leaky
and aren't honoring the DESTDIR in the case of installing the clang++
symlink. Any idea how to fix this in clang/tools/driver/CMakeLists.txt?
Jack
More information about the llvm-dev
mailing list