CMake error in bcc source compilation
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
Hi,
BCC build on ubuntu 22.04 fails with below error. Installed clang-14/llvm-14 versions for backend compilation.
{{
/bcc/bcc/build$ cmake ..
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is Clang 14.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Latest recognized Git tag is v0.26.0
-- Git HEAD is 99726b9ece813883b3be3a74d94af634f34bfad2
-- Revision is 0.26.0-99726b9e (major 0, minor 26, patch 0)
-- Performing Test HAVE_NO_PIE_FLAG
-- Performing Test HAVE_NO_PIE_FLAG - Success
-- Performing Test HAVE_REALLOCARRAY_SUPPORT
-- Performing Test HAVE_REALLOCARRAY_SUPPORT - Success
-- Kernel release: 5.15.0-46-generic
-- Kernel headers: /usr/src/linux-headers-5.15.0-46-generic
CMake Error at CMakeLists.txt:127 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/var/build/bcc/bcc/build/CMakeFiles/CMakeOutput.log".
}}
Reported similar issue in https://github.com/iovisor/bcc/issues/1975 but fix is not posted in it?
Regards
Kot
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at CMakeLists.txt:127 and reproduce the configuration on Ubuntu 22.04 with the reported clang-14/llvm-14 installation. Check where LLVMConfig.cmake or llvm-config.cmake is expected and compare the unresolved issue 1975; done means CMake configures successfully without the LLVM package error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, linux, ubuntu
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100