I am currently facing an issue when building llvm + compiler-rt under windows. I am using the latest vs 2017 community and cmake to generate the solution. Everything goes smoothly.
I then follow the instructions and everything builds. The problem I have is at install time; I get the following error:
file INSTALL cannot find
77> "F:/WORK_IN_PROGRESS/compile/build/$(Configuration)/lib/clang/6.0.0/lib/windows/clang_rt.builtins-x86_64.lib".
Everything else installs fine, other libs, headers are all there, and yes I am running visual studio in admin mode just to make sure there are no issue in copying file arounds etc. Here is the full error:
I have double checked and the same path works, the file exists I have tried to go in the correpsonding cmake install and change the slashes to backward-slashes still no luck. I can copy the lib there manually but I am not sure what else I will have to copy and where that s why I am trying to solve it properly. I am off of trunk, but looks like I a problem that has been gone for a while:
77>CMake Error at projects/compiler-rt/lib/builtins/cmake_install.cmake:34 (file):
77> file INSTALL cannot find
77> "F:/WORK_IN_PROGRESS/compile/build/$(Configuration)/lib/clang/6.0.0/lib/windows/clang_rt.builtins-x86_64.lib".
77>Call Stack (most recent call first):
77> projects/compiler-rt/lib/cmake_install.cmake:33 (include)
77> projects/compiler-rt/cmake_install.cmake:33 (include)
77> projects/cmake_install.cmake:32 (include)
77> cmake_install.cmake:64 (include)
77>
Also, as a side note, it looks like the install process is trying to access a weird old redistributable of vs 2017 and I cannot install it, even after scavenging the installer it fails because there is a new one. Any help on the matter would be greatly appreciated
Cheers
I have been fighting quite a bit with this but for the time being, I have a workaround. The trick was to trigger the INSTALL target from CMake directly without the need to open visual studio, that seems to do the trick.
to build from CMake I simply did:
cmake --build . --config Release --target ALL_BUILD
cmake --build . --config Release --target INSTALL
All summed up this way is actually quite a bit faster since you avoid all the side work VS does for indexing etc.