Skip to content

include could not find requested file: HandleCompilerRT.cmake #53632

@sailfish009

Description

@sailfish009

my build script works for a while, now it give me an configure error.
https://github.com/sailfish009/llvm_all

$ cat ./install.sh 
#! /bin/bash

mkdir build 
cd build
CC=gcc CXX=g++ cmake -G "Unix Makefiles" \
    -DCMAKE_BUILD_TYPE=Release \
    -DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
    -DLLVM_BUILD_LLVM_DYLIB=ON \
    -DLLVM_LINK_LLVM_DYLIB=ON \
    -DLLVM_ENABLE_FFI=ON \
    -DLLVM_ENABLE_RTTI=ON \
    -DLLVM_BUILD_DOCS=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr ../llvm
make -j 8
sudo make install/strip
$ ./install.sh 
mkdir: cannot create directory ‘build’: File exists
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Targeting AMDGPU
-- Targeting BPF
-- Targeting X86
-- LLD version: 15.0.0
-- ISL version: isl-0.24-69-g54aac5ac
-- Registering Polly as a pass plugin (static build: ON)
CMake Error at projects/libunwind/CMakeLists.txt:61 (include):
  include could not find requested file:

    /w/llvm-project/llvm/projects/libunwind/../cmake/Modules/HandleCompilerRT.cmake


CMake Error at projects/libunwind/cmake/config-ix.cmake:5 (include):
  include could not find requested file:

    /w/llvm-project/llvm/projects/libunwind/../cmake/Modules/LLVMCheckCompilerLinkerFlag.cmake
Call Stack (most recent call first):
  projects/libunwind/CMakeLists.txt:202 (include)


CMake Error at projects/libunwind/cmake/config-ix.cmake:12 (llvm_check_compiler_linker_flag):
  Unknown CMake command "llvm_check_compiler_linker_flag".
Call Stack (most recent call first):
  projects/libunwind/CMakeLists.txt:202 (include)


-- Configuring incomplete, errors occurred!
See also "/w/llvm-project/build/CMakeFiles/CMakeOutput.log".
See also "/w/llvm-project/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particularcompiler-rt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions