openvino
openvino copied to clipboard
[Build]: cannot build OpenVINO with Clang
OpenVINO Version
master
Operating System
Ubuntu 22.04 (LTS)
Hardware Architecture
x86 (64 bits)
Target Platform
$ clang -v
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64
Build issue description
When attempting to build with Clang, CMake reports it cannot configure due to errors. See below for details.
Build script or step-by-step to reproduce
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ <PATH_TO_OPENVINO>
Relevant log output
CMake Error at cmake/developer_package/target_flags.cmake:181 (message):
Failed to detect '_GLIBCXX_USE_CXX11_ABI' definition value:
Call Stack (most recent call first):
cmake/developer_package/target_flags.cmake:217 (ov_get_compiler_definition)
cmake/developer_package/target_flags.cmake:221 (ov_get_glibcxx_use_cxx11_abi)
cmake/developer_package/features.cmake:6 (include)
cmake/developer_package/OpenVINODeveloperScriptsConfig.cmake:46 (include)
CMakeLists.txt:49 (find_package)
-- Configuring incomplete, errors occurred!
Issue submission checklist
- [X] I'm reporting an issue. It's not a question.
- [X] I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.