Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation script can't find file #136

Open
moongoal opened this issue Feb 17, 2020 · 2 comments
Open

Installation script can't find file #136

moongoal opened this issue Feb 17, 2020 · 2 comments
Labels
cmake Build system in general and CMake in particular

Comments

@moongoal
Copy link

moongoal commented Feb 17, 2020

OS: Win10 x64
LLVM version: 10.0.0-rc2
Visual Studio version: 16.5 (preview 2)
Build script:

cmake -G "Visual Studio 16 2019" -A x64 -Thost=x64 "-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldb;polly;compiler-rt" "-DCMAKE_INSTALL_PREFIX=D:/llvm/10.0.0-rc2" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=No "-DLLVM_TARGETS_TO_BUILD=X86" ..\llvm\

cmake --build . -- "-m:6" "-p:Configuration=Release" | tee -filepath build.log -append

After build completes, I run the following:

cmake --install . --strip --config Release

And after copying some files the install script crashes with the following error:

CMake Error at projects/compiler-rt/lib/builtins/cmake_install.cmake:39 (file):
  file INSTALL cannot find
  "D:/llvm-project-llvmorg-10.0.0-rc2/build/$(Configuration)/lib/clang/10.0.0/lib/windows/clang_rt.builtins-x86_64.lib":
  No such file or directory.
Call Stack (most recent call first):
  projects/compiler-rt/lib/cmake_install.cmake:38 (include)
  projects/compiler-rt/cmake_install.cmake:38 (include)
  projects/cmake_install.cmake:37 (include)
  cmake_install.cmake:63 (include)

I can go around the issue by manually patching the install scripts, with:

find . -name cmake_install.cmake -type f -exec sed -i -e "s/\$(Configuration)/Release/g" "{}" \;

EDIT: Also - not sure whether it's intended to work like this or I should file another issue - the install script doesn't copy the external DLL files for LZMA and libXML2, causing lldb to silently crash when run.

@delcypher
Copy link
Contributor

I don't think multi-configuration invocation of the install targets is well supported. I think most people use Ninja which is a single configuration generator (on Windows it's still possible to use Ninja with MSVC).

@delcypher
Copy link
Contributor

To be clear this is still a bug but this is not something I have time to fix.

@RKSimon RKSimon added the cmake Build system in general and CMake in particular label Apr 12, 2022
skatrak added a commit to skatrak/llvm-project that referenced this issue Aug 13, 2024
)

This patch makes changes to the `DoConcurrentConversion` pass to follow the
"hoisted omp.parallel" representation when converting `do concurrent`
constructs into `target teams distribute parallel do`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular
Projects
None yet
Development

No branches or pull requests

3 participants