openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.28k stars 2.27k forks source link

[Build]: TBB-related CMake issues on Ubuntu 20 #20162

Closed RyanMetcalfeInt8 closed 10 months ago

RyanMetcalfeInt8 commented 1 year ago

OpenVINO Version

master branch (74251ce93269d29ba57bb0d960e5077b809a39f4)

Operating System

Ubuntu 18.04 (LTS)

Hardware Architecture

x86 (64 bits)

Target Platform

No response

Build issue description

I get TBB-related CMake errors:

CMake Error in src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

(and a bunch of similar errors that follow)

Build scrip or step-by-step to reproduce

I'm following these build steps: https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md

Relevant log output

rdmetca@skullcanyon:~/OpenVINO/openvino/build$  cmake -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenVINO version is 2023.2.0 (Build 12637)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test SUGGEST_OVERRIDE_SUPPORTED
-- Performing Test SUGGEST_OVERRIDE_SUPPORTED - Success
-- Performing Test UNUSED_BUT_SET_VARIABLE_SUPPORTED
-- Performing Test UNUSED_BUT_SET_VARIABLE_SUPPORTED - Success
CMake Warning at cmake/developer_package/clang_format/clang_format.cmake:22 (message):
  Supported clang-format-9 is not found!
Call Stack (most recent call first):
  cmake/developer_package/IEDevScriptsConfig.cmake:290 (include)
  CMakeLists.txt:37 (find_package)

CMake Warning at cmake/developer_package/ncc_naming_style/ncc_naming_style.cmake:89 (message):
  clang-12 libclang-12-dev are not found (required for ncc naming style
  check)
Call Stack (most recent call first):
  cmake/developer_package/IEDevScriptsConfig.cmake:291 (include)
  CMakeLists.txt:37 (find_package)

-- OpenVINO Runtime enabled features: 
-- 
--     CI_BUILD_NUMBER: 2023.2.0-12637-74251ce9326
--     CPACK_GENERATOR = TGZ
--     ENABLE_LTO = OFF
--     OS_FOLDER = OFF
--     USE_BUILD_TYPE_SUBFOLDER = ON
--     CMAKE_COMPILE_WARNING_AS_ERROR = OFF
--     ENABLE_QSPECTRE = OFF
--     ENABLE_INTEGRITYCHECK = OFF
--     ENABLE_SANITIZER = OFF
--     ENABLE_UB_SANITIZER = OFF
--     ENABLE_THREAD_SANITIZER = OFF
--     ENABLE_COVERAGE = OFF
--     ENABLE_SSE42 = ON
--     ENABLE_AVX2 = ON
--     ENABLE_AVX512F = ON
--     BUILD_SHARED_LIBS = ON
--     ENABLE_LIBRARY_VERSIONING = ON
--     ENABLE_FASTER_BUILD = OFF
--     ENABLE_CPPLINT = ON
--     ENABLE_CPPLINT_REPORT = OFF
--     ENABLE_CLANG_FORMAT = OFF
--     ENABLE_NCC_STYLE = OFF
--     ENABLE_UNSAFE_LOCATIONS = OFF
--     ENABLE_FUZZING = OFF
--     ENABLE_PROXY = ON
--     ENABLE_INTEL_CPU = ON
--     ENABLE_ARM_COMPUTE_CMAKE = OFF
--     ENABLE_TESTS = OFF
--     ENABLE_INTEL_GPU = ON
--     ENABLE_ONEDNN_FOR_GPU = ON
--     ENABLE_DEBUG_CAPS = OFF
--     ENABLE_GPU_DEBUG_CAPS = OFF
--     ENABLE_CPU_DEBUG_CAPS = OFF
--     ENABLE_PROFILING_ITT = OFF
--     ENABLE_PROFILING_FILTER = ALL
--     ENABLE_PROFILING_FIRST_INFERENCE = ON
--     SELECTIVE_BUILD = OFF
--     ENABLE_DOCS = OFF
--     ENABLE_PKGCONFIG_GEN = ON
--     THREADING = TBB
--     ENABLE_TBBBIND_2_5 = ON
--     ENABLE_TBB_RELEASE_ONLY = ON
--     ENABLE_INTEL_GNA = ON
--     ENABLE_INTEL_GNA_DEBUG = OFF
--     ENABLE_V7_SERIALIZE = OFF
--     ENABLE_IR_V7_READER = OFF
--     ENABLE_GAPI_PREPROCESSING = ON
--     ENABLE_MULTI = ON
--     ENABLE_AUTO = ON
--     ENABLE_AUTO_BATCH = ON
--     ENABLE_HETERO = ON
--     ENABLE_TEMPLATE = ON
--     ENABLE_PLUGINS_XML = OFF
--     GAPI_TEST_PERF = OFF
--     ENABLE_FUNCTIONAL_TESTS = OFF
--     ENABLE_SAMPLES = ON
--     ENABLE_OV_ONNX_FRONTEND = ON
--     ENABLE_OV_PADDLE_FRONTEND = ON
--     ENABLE_OV_IR_FRONTEND = ON
--     ENABLE_OV_PYTORCH_FRONTEND = ON
--     ENABLE_OV_IR_FRONTEND = ON
--     ENABLE_OV_TF_FRONTEND = ON
--     ENABLE_OV_TF_LITE_FRONTEND = ON
--     ENABLE_SNAPPY_COMPRESSION = ON
--     ENABLE_STRICT_DEPENDENCIES = OFF
--     ENABLE_SYSTEM_TBB = ON
--     ENABLE_SYSTEM_PUGIXML = ON
--     ENABLE_SYSTEM_FLATBUFFERS = ON
--     ENABLE_SYSTEM_OPENCL = ON
--     ENABLE_SYSTEM_PROTOBUF = OFF
--     ENABLE_SYSTEM_SNAPPY = OFF
--     ENABLE_PYTHON_PACKAGING = OFF
--     ENABLE_OPENVINO_DEBUG = OFF
-- 
-- Downloading from https://storage.openvinotoolkit.org/dependencies/gna/gna_03.05.00.2116.zip to /home/rdmetca/OpenVINO/openvino/temp/download/gna/gna_03.05.00.2116.zip ...
-- /bin/wget --no-cache --no-check-certificate
              --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 --tries=5 https://storage.openvinotoolkit.org/dependencies/gna/gna_03.05.00.2116.zip
--2023-09-29 11:40:34--  https://storage.openvinotoolkit.org/dependencies/gna/gna_03.05.00.2116.zip
Resolving storage.openvinotoolkit.org (storage.openvinotoolkit.org)... 18.164.116.62, 18.164.116.14, 18.164.116.117, ...
Connecting to storage.openvinotoolkit.org (storage.openvinotoolkit.org)|18.164.116.62|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2260400 (2.2M) [application/zip]
Saving to: ‘/home/rdmetca/OpenVINO/openvino/temp/download/gna/gna_03.05.00.2116.zip’

     0K .......... .......... .......... .......... ..........  2%  789K 3s
    50K .......... .......... .......... .......... ..........  4%  799K 3s
   100K .......... .......... .......... .......... ..........  6%  905K 2s
   150K .......... .......... .......... .......... ..........  9% 9.09M 2s
   200K .......... .......... .......... .......... .......... 11% 11.3M 1s
   250K .......... .......... .......... .......... .......... 13%  992K 2s
   300K .......... .......... .......... .......... .......... 15% 18.2M 1s
   350K .......... .......... .......... .......... .......... 18% 16.1M 1s
   400K .......... .......... .......... .......... .......... 20% 18.2M 1s
   450K .......... .......... .......... .......... .......... 22% 13.2M 1s
   500K .......... .......... .......... .......... .......... 24% 16.5M 1s
   550K .......... .......... .......... .......... .......... 27% 1.09M 1s
   600K .......... .......... .......... .......... .......... 29% 62.8M 1s
   650K .......... .......... .......... .......... .......... 31% 44.6M 1s
   700K .......... .......... .......... .......... .......... 33% 48.3M 1s
   750K .......... .......... .......... .......... .......... 36% 42.4M 1s
   800K .......... .......... .......... .......... .......... 38% 38.1M 0s
   850K .......... .......... .......... .......... .......... 40% 62.9M 0s
   900K .......... .......... .......... .......... .......... 43% 11.5M 0s
   950K .......... .......... .......... .......... .......... 45% 98.0M 0s
  1000K .......... .......... .......... .......... .......... 47% 69.6M 0s
  1050K .......... .......... .......... .......... .......... 49% 41.5M 0s
  1100K .......... .......... .......... .......... .......... 52% 45.9M 0s
  1150K .......... .......... .......... .......... .......... 54% 1.05M 0s
  1200K .......... .......... .......... .......... .......... 56%  108M 0s
  1250K .......... .......... .......... .......... .......... 58% 50.0M 0s
  1300K .......... .......... .......... .......... .......... 61% 70.5M 0s
  1350K .......... .......... .......... .......... .......... 63% 74.2M 0s
  1400K .......... .......... .......... .......... .......... 65% 62.1M 0s
  1450K .......... .......... .......... .......... .......... 67% 78.1M 0s
  1500K .......... .......... .......... .......... .......... 70% 66.1M 0s
  1550K .......... .......... .......... .......... .......... 72% 52.7M 0s
  1600K .......... .......... .......... .......... .......... 74% 71.0M 0s
  1650K .......... .......... .......... .......... .......... 77% 57.0M 0s
  1700K .......... .......... .......... .......... .......... 79% 80.6M 0s
  1750K .......... .......... .......... .......... .......... 81% 59.4M 0s
  1800K .......... .......... .......... .......... .......... 83% 77.8M 0s
  1850K .......... .......... .......... .......... .......... 86% 48.8M 0s
  1900K .......... .......... .......... .......... .......... 88% 59.3M 0s
  1950K .......... .......... .......... .......... .......... 90% 76.6M 0s
  2000K .......... .......... .......... .......... .......... 92% 63.6M 0s
  2050K .......... .......... .......... .......... .......... 95% 64.1M 0s
  2100K .......... .......... .......... .......... .......... 97% 72.9M 0s
  2150K .......... .......... .......... .......... .......... 99% 66.9M 0s
  2200K .......                                               100%  101M=0.4s

2023-09-29 11:40:35 (5.73 MB/s) - ‘/home/rdmetca/OpenVINO/openvino/temp/download/gna/gna_03.05.00.2116.zip’ saved [2260400/2260400]

-- extracting...
         src='/home/rdmetca/OpenVINO/openvino/temp/download/gna/gna_03.05.00.2116.zip'
         dst='/home/rdmetca/OpenVINO/openvino/temp/gna_03.05.00.2116'
-- extracting... [tar xfz] gna_03.05.00.2116/include gna_03.05.00.2116/linux
-- CMAKE_VERSION ......................... 3.16.3
-- OpenVINO_SOURCE_DIR ................... /home/rdmetca/OpenVINO/openvino
-- OpenVINO_BINARY_DIR ................... /home/rdmetca/OpenVINO/openvino/build
-- CMAKE_GENERATOR ....................... Unix Makefiles
-- CPACK_GENERATOR ....................... TGZ
-- CMAKE_C_COMPILER_ID ................... GNU
-- CMAKE_CXX_COMPILER_ID ................. GNU
-- CMAKE_CXX_STANDARD .................... 11
-- CMAKE_BUILD_TYPE ...................... Release
-- GLIBC_VERSION ......................... 2.31
-- gflags (2.2.2) is found at /lib/x86_64-linux-gnu/cmake/gflags using 'nothreads_static' component
-- Protocol Buffers Configuring...
-- 
-- 3.20.3.0
-- Configuration script parsing status [
--   Description : Protocol Buffers
--   Version     : 3.20.3.0 (3.20.3)
--   Contact     : protobuf@googlegroups.com
-- ]
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT - Success
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
-- Protocol Buffers Configuring done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for zlibVersion in z
-- Looking for zlibVersion in z - found
-- Looking for lzo1x_1_15_compress in lzo2
-- Looking for lzo1x_1_15_compress in lzo2 - not found
-- Looking for LZ4_compress_default in lz4
-- Looking for LZ4_compress_default in lz4 - not found
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed
-- Performing Test HAVE_CLANG_MAVX
-- Performing Test HAVE_CLANG_MAVX - Success
-- Performing Test HAVE_CLANG_MBMI2
-- Performing Test HAVE_CLANG_MBMI2 - Success
-- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS
-- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS - Success
-- Performing Test HAVE_BUILTIN_EXPECT
-- Performing Test HAVE_BUILTIN_EXPECT - Success
-- Performing Test HAVE_BUILTIN_CTZ
-- Performing Test HAVE_BUILTIN_CTZ - Success
-- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE
-- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE - Success
-- Performing Test SNAPPY_HAVE_SSSE3
-- Performing Test SNAPPY_HAVE_SSSE3 - Failed
-- Performing Test SNAPPY_HAVE_X86_CRC32
-- Performing Test SNAPPY_HAVE_X86_CRC32 - Failed
-- Performing Test SNAPPY_HAVE_NEON_CRC32
-- Performing Test SNAPPY_HAVE_NEON_CRC32 - Failed
-- Performing Test SNAPPY_HAVE_BMI2
-- Performing Test SNAPPY_HAVE_BMI2 - Failed
-- Performing Test SNAPPY_HAVE_NEON
-- Performing Test SNAPPY_HAVE_NEON - Failed
-- Looking for mmap
-- Looking for mmap - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Found PythonInterp: /bin/python3.8 (found version "3.8.10") 
Generated: /home/rdmetca/OpenVINO/openvino/build/thirdparty/onnx/onnx/onnx/onnx_openvino_onnx-ml.proto
Generated: /home/rdmetca/OpenVINO/openvino/build/thirdparty/onnx/onnx/onnx/onnx-operators_openvino_onnx-ml.proto
Generated: /home/rdmetca/OpenVINO/openvino/build/thirdparty/onnx/onnx/onnx/onnx-data_openvino_onnx.proto
-- 
-- ******** Summary ********
--   CMake version             : 3.16.3
--   CMake command             : /usr/bin/cmake
--   System                    : Linux
--   C++ compiler              : /bin/c++
--   C++ compiler version      : 9.4.0
--   CXX flags                 : -Wsuggest-override  -fsigned-char -ffunction-sections -fdata-sections -fdiagnostics-show-option -Wall -Wundef -Wno-suggest-override -Wnon-virtual-dtor
--   Build type                : Release
--   Compile definitions       : IE_BUILD_POSTFIX="";OV_NATIVE_PARENT_PROJECT_ROOT_DIR="openvino";__STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH         : 
--   CMAKE_INSTALL_PREFIX      : /usr/local
--   CMAKE_MODULE_PATH         : 
-- 
--   ONNX version              : 1.14.1
--   ONNX NAMESPACE            : openvino_onnx
--   ONNX_USE_LITE_PROTO       : ON
--   USE_PROTOBUF_SHARED_LIBS  : OFF
--   Protobuf_USE_STATIC_LIBS  : ON
--   ONNX_DISABLE_EXCEPTIONS   : OFF
--   ONNX_WERROR               : OFF
--   ONNX_BUILD_TESTS          : OFF
--   ONNX_BUILD_BENCHMARKS     : OFF
-- 
--   Protobuf compiler         : 
--   Protobuf includes         : 
--   Protobuf libraries        : 
--   BUILD_ONNX_PYTHON         : OFF
-- Using the multi-header code from /home/rdmetca/OpenVINO/openvino/thirdparty/json/nlohmann_json/include/
-- TBB (2020.1) is found at /lib/x86_64-linux-gnu/cmake/TBB
-- Downloading from https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/tbbbind_2_5_static_lin_v3.tgz to /home/rdmetca/OpenVINO/openvino/temp/download/tbbbind_2_5_static_lin_v3.tgz ...
-- /bin/wget --no-cache --no-check-certificate
              --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 --tries=5 https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/tbbbind_2_5_static_lin_v3.tgz
--2023-09-29 11:40:39--  https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/tbbbind_2_5_static_lin_v3.tgz
Resolving storage.openvinotoolkit.org (storage.openvinotoolkit.org)... 18.164.116.67, 18.164.116.117, 18.164.116.14, ...
Connecting to storage.openvinotoolkit.org (storage.openvinotoolkit.org)|18.164.116.67|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 453642 (443K) [application/octet-stream]
Saving to: ‘/home/rdmetca/OpenVINO/openvino/temp/download/tbbbind_2_5_static_lin_v3.tgz’

     0K .......... .......... .......... .......... .......... 11%  601K 1s
    50K .......... .......... .......... .......... .......... 22% 1.10M 0s
   100K .......... .......... .......... .......... .......... 33%  913K 0s
   150K .......... .......... .......... .......... .......... 45% 8.95M 0s
   200K .......... .......... .......... .......... .......... 56% 7.19M 0s
   250K .......... .......... .......... .......... .......... 67% 1.10M 0s
   300K .......... .......... .......... .......... .......... 79% 13.5M 0s
   350K .......... .......... .......... .......... .......... 90% 15.8M 0s
   400K .......... .......... .......... .......... ...       100% 28.7M=0.2s

2023-09-29 11:40:39 (1.75 MB/s) - ‘/home/rdmetca/OpenVINO/openvino/temp/download/tbbbind_2_5_static_lin_v3.tgz’ saved [453642/453642]

-- extracting...
         src='/home/rdmetca/OpenVINO/openvino/temp/download/tbbbind_2_5_static_lin_v3.tgz'
         dst='/home/rdmetca/OpenVINO/openvino/temp/tbbbind_2_5'
-- extracting... [tar xfz] 
-- Static tbbbind_2_5 package is found
-- The ASM compiler identification is GNU
-- Found assembler: /bin/cc
-- The ASM_MASM compiler identification is unknown
-- Found assembler: ml
-- DNNL_TARGET_ARCH: X64
-- DNNL_LIBRARY_NAME: openvino_onednn_cpu
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Could NOT find Doxyrest (missing: DOXYREST_EXECUTABLE) 
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE) 
-- Found Git: /bin/git (found version "2.25.1") 
-- Enabled workload: INFERENCE
-- Enabled primitives: CONVOLUTION;DECONVOLUTION;CONCAT;LRN;INNER_PRODUCT;MATMUL;POOLING;REDUCTION;REORDER;RNN;SOFTMAX
-- Enabled primitive CPU ISA: ALL
-- Enabled primitive GPU ISA: ALL
-- Primitive cache is enabled
-- RapidJSON found. Headers: /usr/include
-- Found Python3: /bin/python3.8 (found version "3.8.10") found components: Interpreter 
-- Python3 executable: /bin/python3.8
-- Python3 version: 3.8.10
-- Python3 interpreter ID: Python
-- Python3 include dirs: /usr/include/python3.8
-- Python3 libraries: /usr/lib/x86_64-linux-gnu/libpython3.8.so
CMake Warning at src/bindings/python/CMakeLists.txt:100 (message):
  Python requirements
  '/home/rdmetca/OpenVINO/openvino/src/bindings/python/src/compatibility/openvino/requirements-dev.txt'
  are missed, IE Python API 1.0 will not be built (ENABLE_PYTHON is OFF)
Call Stack (most recent call first):
  src/bindings/python/CMakeLists.txt:122 (ov_check_python_build_conditions)

CMake Warning at cmake/developer_package/python_requirements.cmake:118 (message):
  Python requirement file
  /home/rdmetca/OpenVINO/openvino/src/bindings/python/wheel/requirements-dev.txt
  is not installed,
Call Stack (most recent call first):
  src/bindings/python/CMakeLists.txt:171 (ov_check_pip_packages)

CMake Warning at samples/cpp/common/format_reader/CMakeLists.txt:22 (message):
  OpenCV ver.  3.0+ is not found, format_reader will be built without OpenCV
  support

CMake Warning at samples/cpp/benchmark_app/CMakeLists.txt:157 (message):
  OpenCV ver.  3.0+ is not found, benchmark_app will be built without OpenCV
  support.  Set OpenCV_DIR

CMake Warning at samples/c/common/opencv_c_wrapper/CMakeLists.txt:20 (message):
  OpenCV ver.  3.0+ is not found, opencv_c_wrapper is built without OPENCV
  support

-- Register template to be built in build-modules/template
-- Register template_extension to be built in build-modules/template_extension
-- /bin/pkg-config: libva (1.15.0) is found at /usr
CMake Warning at tools/mo/CMakeLists.txt:5 (message):
  Please enable OpenVINO Runtime Python API (set -DENABLE_PYTHON=ON) targets
  to enable Model Optimizer target

-- Configuring done
CMake Error in src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/core/reference/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/core/reference/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/common/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/cpu/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/cpu/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/cpu/x64/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_cpu/thirdparty/onednn/src/cpu/x64/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_gpu/src/runtime/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/plugins/intel_gpu/src/runtime/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/common/preprocessing/src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in src/common/preprocessing/src/CMakeLists.txt:
  Imported target "TBB::tbb" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Issue submission checklist

ilya-lavrenov commented 1 year ago

Hi @RyanMetcalfeInt8 What is the source of this TBB location -- TBB (2020.1) is found at /lib/x86_64-linux-gnu/cmake/TBB? System TBB is older and located in /usr

It's a reason of issue.

RyanMetcalfeInt8 commented 1 year ago

Hi @ilya-lavrenov, ah interesting. Okay, I'll see about uninstalling the old version. Thanks!

RyanMetcalfeInt8 commented 1 year ago

Hi @ilya-lavrenov, I think that the old version of TBB was installed from 'install_build_dependencies.sh'.

The following NEW packages will be installed:
  libtbb-dev libtbb2

To fix this issue, I needed to run:

sudo apt remove libtbb-dev libtbb2

and then re-run cmake.

So it seems that install_build_dependencies.sh needs some fix?

ilya-lavrenov commented 1 year ago

Hi @RyanMetcalfeInt8 The older TBB version is installed by install_build_dependencies.sh and it's from standard Debian repositories, located in /usr folder. With this version OpenVINO works correctly. I would recommend to remove TBB from /lib folder, because it's incorrectly installed into system folder.

If you want newer TBB version than provided in standard Debian repositories, you can compile OpenVINO with -DENABLE_SYSTEM_TBB=OFF and OpenVINO's cmake will download 2021.2 version and will work with it.

avitial commented 10 months ago

Closing this, I hope previous responses were sufficient to help you proceed. Feel free to reopen and ask any questions related to this topic.