Skip to content

Commit

Permalink
[Conan Build]Fix Debug Build (openvinotoolkit#27150)
Browse files Browse the repository at this point in the history
### Details:
 - *Fix Conan Debug Build*

A failed compilation look like this
```
cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="F:/.conan2/p/b/openvdff378fa94719/p" -DENABLE_INTEL_CPU="ON" -DENABLE_INTEL_GPU="ON" -DENABLE_ONEDNN_FOR_GPU="ON" -DENABLE_INTEL_GNA="OFF" -DENABLE_AUTO="ON" -DENABLE_MULTI="ON" -DENABLE_AUTO_BATCH="ON" -DENABLE_HETERO="ON" -DENABLE_OV_IR_FRONTEND="ON" -DENABLE_OV_PADDLE_FRONTEND="ON" -DENABLE_OV_TF_FRONTEND="ON" -DENABLE_OV_TF_LITE_FRONTEND="ON" -DENABLE_OV_ONNX_FRONTEND="ON" -DENABLE_OV_PYTORCH_FRONTEND="ON" -DENABLE_SYSTEM_TBB="ON" -DENABLE_TBBBIND_2_5="OFF" -DENABLE_SYSTEM_PUGIXML="ON" -DENABLE_SYSTEM_PROTOBUF="ON" -DENABLE_SYSTEM_SNAPPY="ON" -DENABLE_SYSTEM_FLATBUFFERS="ON" -DENABLE_SYSTEM_OPENCL="ON" -DENABLE_GAPI_PREPROCESSING="ON" -DBUILD_SHARED_LIBS="ON" -DCPACK_GENERATOR="CONAN" -DENABLE_PROFILING_ITT="OFF" -DENABLE_PYTHON="OFF" -DENABLE_PROXY="OFF" -DENABLE_WHEEL="OFF" -DENABLE_CPPLINT="OFF" -DENABLE_NCC_STYLE="OFF" -DENABLE_SAMPLES="OFF" -DENABLE_TEMPLATE="OFF" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "F:/.conan2/p/openvac7fc2c3b20db/s/src" --fresh
-- Using Conan toolchain: F:/.conan2/p/b/openvdff378fa94719/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: Including user_toolchain: F:/.conan2/profiles/disable_vcpkg.cmake
-- Conan toolchain: Including user_toolchain: F:/.conan2/profiles/limit_sdkver.cmake
-- Conan user toolchain: CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM=10.0.22621.0
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v142
-- Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$<CONFIG:Debug>:MultiThreadedDebugDLL>
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.29.30154.0
-- The CXX compiler identification is MSVC 19.29.30154.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenVINO version is 2023.2.0 (Build 000)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Performing Test SUGGEST_OVERRIDE_SUPPORTED
-- Performing Test SUGGEST_OVERRIDE_SUPPORTED - Failed
-- Performing Test UNUSED_BUT_SET_VARIABLE_SUPPORTED
-- Performing Test UNUSED_BUT_SET_VARIABLE_SUPPORTED - Failed
-- OpenVINO Runtime enabled features: 
--
--     CI_BUILD_NUMBER: 2023.2.0-000--
--     CPACK_GENERATOR = CONAN
--     ENABLE_LTO = OFF
--     OS_FOLDER = OFF
--     USE_BUILD_TYPE_SUBFOLDER = OFF
--     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 = OFF
--     ENABLE_FASTER_BUILD = OFF
--     ENABLE_CPPLINT = OFF
--     ENABLE_CPPLINT_REPORT = OFF
--     ENABLE_CLANG_FORMAT = OFF
--     ENABLE_NCC_STYLE = OFF
--     ENABLE_UNSAFE_LOCATIONS = OFF
--     ENABLE_FUZZING = OFF
--     ENABLE_PROXY = OFF
--     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 = OFF
--     THREADING = TBB
--     ENABLE_TBBBIND_2_5 = OFF
--     ENABLE_TBB_RELEASE_ONLY = OFF
--     ENABLE_INTEL_GNA = OFF
--     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 = OFF
--     ENABLE_PLUGINS_XML = OFF
--     GAPI_TEST_PERF = OFF
--     ENABLE_FUNCTIONAL_TESTS = OFF
--     ENABLE_SAMPLES = OFF
--     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 = ON
--     ENABLE_SYSTEM_SNAPPY = ON
--     ENABLE_PYTHON_PACKAGING = OFF
--     ENABLE_OPENVINO_DEBUG = OFF
--
-- CMAKE_VERSION ......................... 3.29.8
-- OpenVINO_SOURCE_DIR ................... F:/.conan2/p/openvac7fc2c3b20db/s/src
-- OpenVINO_BINARY_DIR ................... F:/.conan2/p/b/openvdff378fa94719/b/build
-- CMAKE_GENERATOR ....................... Visual Studio 17 2022
-- CPACK_GENERATOR ....................... CONAN
-- CMAKE_C_COMPILER_ID ................... MSVC
-- CMAKE_CXX_COMPILER_ID ................. MSVC
-- CMAKE_CXX_STANDARD .................... 17
-- CMAKE_CONFIGURATION_TYPES ............. Debug Release MinSizeRel RelWithDebInfo
-- CMAKE_GENERATOR_PLATFORM .............. x64
-- CMAKE_GENERATOR_PLATFORM .............. x64
-- CMAKE_GENERATOR_PLATFORM .............. x64
-- CMAKE_GENERATOR_TOOLSET ............... v142
-- CMAKE_TOOLCHAIN_FILE .................. F:/.conan2/p/b/openvdff378fa94719/b/build/generators/conan_toolchain.cmake
-- Conan: Target declared 'pugixml::pugixml'
-- Conan: Component target declared 'protobuf::libprotobuf'
-- Conan: Component target declared 'protobuf::libprotoc'
-- Conan: Target declared 'protobuf::protobuf'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Including build module from 'F:/.conan2/p/b/protoa6c757f4d3132/p/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from 'F:/.conan2/p/b/protoa6c757f4d3132/p/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from 'F:/.conan2/p/b/protoa6c757f4d3132/p/lib/cmake/protobuf/protobuf-options.cmake'
-- Conan: Including build module from 'F:/.conan2/p/b/protoa6c757f4d3132/p/lib/cmake/protobuf/protobuf-conan-protoc-target.cmake'
-- Conan: Component target declared 'flatbuffers::libflatbuffers'
-- Conan: Target declared 'flatbuffers::flatbuffers'
-- Conan: Including build module from 'F:/.conan2/p/b/flatb71a17782f7317/p/lib/cmake/FlatcTargets.cmake'
-- Conan: Including build module from 'F:/.conan2/p/b/flatb71a17782f7317/p/lib/cmake/BuildFlatBuffers.cmake'
-- Conan: Component target declared 'Snappy::snappy'
-- Cannot locate shared library: tbb_debug
-- Cannot locate shared library: tbb_debug
-- TBB (2021.10.0) is found at F:/.conan2/p/b/openvdff378fa94719/b/build/generators
CMake Error at src/cmake/ov_parallel.cmake:75 (message):
  Failed to detect TBB library location
Call Stack (most recent call first):
  src/cmake/install_tbb.cmake:18 (_ov_get_tbb_location)
  src/cmake/install_tbb.cmake:37 (_ov_detect_dynamic_tbbbind_2_5)
  src/CMakeLists.txt:11 (include)
```
  • Loading branch information
CaptainNeil authored Oct 21, 2024
1 parent 3439873 commit 924b311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmake/ov_parallel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function(_ov_get_tbb_location tbb_target _tbb_lib_location_var)
get_target_property(_imported_configs ${target} IMPORTED_CONFIGURATIONS)
if(NOT _imported_configs)
# if IMPORTED_CONFIGURATIONS property is not set, then set a common list
set(_imported_configs RELEASE NONE)
set(_imported_configs RELEASE DEBUG NONE)
if(NOT OV_GENERATOR_MULTI_CONFIG)
string(TOUPPER ${CMAKE_BUILD_TYPE} _build_type)
list(APPEND _imported_configs ${_build_type})
Expand Down

0 comments on commit 924b311

Please sign in to comment.