mrk-its / rust-mos

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
55 stars 7 forks source link

Compilation error #24

Open ssuukk opened 1 year ago

ssuukk commented 1 year ago

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 commented 4 months ago

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 "")