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

Compilation error #24

Open
ssuukk opened this issue Nov 7, 2023 · 1 comment
Open

Compilation error #24

ssuukk opened this issue Nov 7, 2023 · 1 comment

Comments

@ssuukk
Copy link

ssuukk commented Nov 7, 2023

Unable to compile using command line from README

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:276 (message):
Specified distribution component 'clang-apply-replacements' doesn't have an
install target
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:284 (message):
Specified distribution component 'clang-apply-replacements' doesn't have an
install-stripped target. Its installation target creation should be
changed to use add_llvm_install_targets, or you should manually create the
'install-clang-apply-replacements-stripped' target.
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:276 (message):
Specified distribution component 'clang-include-fixer' doesn't have an
install target
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:284 (message):
Specified distribution component 'clang-include-fixer' doesn't have an
install-stripped target. Its installation target creation should be
changed to use add_llvm_install_targets, or you should manually create the
'install-clang-include-fixer-stripped' target.
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:276 (message):
Specified distribution component 'clang-tidy' doesn't have an install
target
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:284 (message):
Specified distribution component 'clang-tidy' doesn't have an
install-stripped target. Its installation target creation should be
changed to use add_llvm_install_targets, or you should manually create the
'install-clang-tidy-stripped' target.
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:276 (message):
Specified distribution component 'clangd' doesn't have an install target
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:284 (message):
Specified distribution component 'clangd' doesn't have an install-stripped
target. Its installation target creation should be changed to use
add_llvm_install_targets, or you should manually create the
'install-clangd-stripped' target.
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:276 (message):
Specified distribution component 'find-all-symbols' doesn't have an install
target
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

CMake Error at cmake/modules/LLVMDistributionSupport.cmake:284 (message):
Specified distribution component 'find-all-symbols' doesn't have an
install-stripped target. Its installation target creation should be
changed to use add_llvm_install_targets, or you should manually create the
'install-find-all-symbols-stripped' target.
Call Stack (most recent call first):
CMakeLists.txt:1316 (llvm_distribution_add_targets)

@sajattack
Copy link

my dumb fix was just commenting out the excess tools

diff --git a/clang/cmake/caches/MOS.cmake b/clang/cmake/caches/MOS.cmake
index 8147291bb04d..0f170b1c89d0 100644
--- a/clang/cmake/caches/MOS.cmake
+++ b/clang/cmake/caches/MOS.cmake
@@ -55,15 +55,15 @@ set(LLVM_DISTRIBUTION_COMPONENTS
   builtins
   clang
   lld
-  clang-apply-replacements
-  clang-format
-  clang-resource-headers
-  clang-include-fixer
-  clang-refactor
-  clang-scan-deps
-  clang-tidy
-  clangd
-  find-all-symbols
+  #clang-apply-replacements
+  #clang-format
+  #clang-resource-headers
+  #clang-include-fixer
+  #clang-refactor
+  #clang-scan-deps
+  #clang-tidy
+  #clangd
+  #find-all-symbols
   ${LLVM_TOOLCHAIN_TOOLS}
   CACHE STRING "")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants