'make install' fails to find libclang_rt.cc_kext.a...?

Hi all,

For a couple of days now I've been unable to build clang trunk; well, it builds, but fails installing:

-- Installing: /Users/sean/llvm/llvm-rel-install/lib/clang/3.8.0/include/sanitizer/tsan_interface_atomic.h
CMake Error at projects/compiler-rt/lib/builtins/cmake_install.cmake:31 (file):
  file INSTALL cannot find
  "/Users/sean/llvm/llvm-rel-bin/./lib/clang/3.8.0/lib/darwin/libclang_rt.cc_kext.a".
Call Stack (most recent call first):
  projects/compiler-rt/lib/cmake_install.cmake:32 (include)
  projects/compiler-rt/cmake_install.cmake:33 (include)
  projects/cmake_install.cmake:33 (include)
  cmake_install.cmake:55 (include)

Indeed there is no such file at that path. Searching for files with 'kext' finds libclang_rt.cc_kext_i386_osx.a and libclang_rt.cc_kext_x86_64_osx.a in /Users/sean/llvm/llvm-rel-bin/lib however.

I'm doing a pretty valilla build with OS X 10.10.5, Xcode 7.1.1, and CMake 3.4.

Is no one else having these build troubles?

Thanks,

Hi again,

So I tried a trivial installation based on the website 'get started' page. I did exactly this:

mkdir ~/llvm-test
cd ~/llvm-test
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ../..
mkdir build
mkdir install
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/llvm-test/install ../llvm
make -j16 install

and again get:

  file INSTALL cannot find
  "/Users/sean/llvm-test/build/./lib/clang/3.8.0/lib/darwin/libclang_rt.cc_kext.a".

I repro this on two different Macs, one 10.10 and one 10.11. Am I really the only one seeing this?

Thanks,

Sean

Sean McBride via cfe-dev <cfe-dev@lists.llvm.org> writes:

Hi again,

So I tried a trivial installation based on the website 'get started'
page. I did exactly this:

mkdir ~/llvm-test
cd ~/llvm-test
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ../..
mkdir build
mkdir install
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/llvm-test/install ../llvm
make -j16 install

and again get:

  file INSTALL cannot find
  "/Users/sean/llvm-test/build/./lib/clang/3.8.0/lib/darwin/libclang_rt.cc_kext.a".

I repro this on two different Macs, one 10.10 and one 10.11. Am I
really the only one seeing this?

I'm seeing this as well on a fresh build and install. Chris: could this
be related to some of your recent changes in the area?

Justin Bogner <mail@justinbogner.com> writes:

Sean McBride via cfe-dev <cfe-dev@lists.llvm.org> writes:

Hi again,

So I tried a trivial installation based on the website 'get started'
page. I did exactly this:

mkdir ~/llvm-test
cd ~/llvm-test
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ../..
mkdir build
mkdir install
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/llvm-test/install ../llvm
make -j16 install

and again get:

  file INSTALL cannot find
  "/Users/sean/llvm-test/build/./lib/clang/3.8.0/lib/darwin/libclang_rt.cc_kext.a".

I repro this on two different Macs, one 10.10 and one 10.11. Am I
really the only one seeing this?

I'm seeing this as well on a fresh build and install. Chris: could this
be related to some of your recent changes in the area?

FWIW, it looks like it's just a missing dependency in the build graph.
If you run `make lib/clang/3.8.0/lib/darwin/libclang_rt.cc_kext.a` that
file gets built and install gets further. Do that again for a couple of
other similarly named files and install works again.

I believe the fix for this is here: http://reviews.llvm.org/D14747

-Chris

I can confirm that that fixes it.

Cheers,