Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Build Path Handling Fails Due to Unescaped Characters #28215

Open
3 tasks done
0xfedcafe opened this issue Dec 26, 2024 · 2 comments
Open
3 tasks done

[Bug]: Build Path Handling Fails Due to Unescaped Characters #28215

0xfedcafe opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS support_request

Comments

@0xfedcafe
Copy link

0xfedcafe commented Dec 26, 2024

OpenVINO Version

Master Branch

Operating System

macOS Systems for Apple Silicon

Device used for inference

CPU

Framework

None

Model used

No response

Issue description

The build system fails to handle special characters in the build path correctly, such as + or ;, leading to compilation errors. This issue occurs because these characters are not properly escaped, causing cmake to misinterpret the path as invalid or malformed.

Step-by-step reproduction

  • Create a directory with special characters in its name, e.g., c++/openvino
  • Attempt to build the project located in this directory using cmake.
  • Observe that the build process fails with a compilation error related to the unescaped characters.

Relevant log output

RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at cmake/developer_package/download/dependency_solver.cmake:55 (if):
  if given arguments:

    ";FOLDER;ARCHIVE;ARCHIVE_UNIFIED;ARCHIVE_WIN;ARCHIVE_LIN;ARCHIVE_MAC;ARCHIVE_ANDROID;TARGET_PATH;ENVIRONMENT;VERSION_REGEX;SHA256;FILES_TO_EXTRACT;USE_NEW_LOCATION;" "MATCHES" ";/Users/user/work/c++/openvino/temp/tbb;"

  Regular expression ";/Users/user/work/c++/openvino/temp/tbb;" cannot
  compile
Call Stack (most recent call first):
  cmake/dependencies.cmake:158 (RESOLVE_DEPENDENCY)
  src/cmake/ov_parallel.cmake:177 (ov_download_tbb)
  src/cmake/install_tbb.cmake:8 (ov_find_package_tbb)
  src/CMakeLists.txt:15 (include)


-- Configuring incomplete, errors occurred!

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.
@0xfedcafe 0xfedcafe added bug Something isn't working support_request labels Dec 26, 2024
@ilya-lavrenov
Copy link
Contributor

ilya-lavrenov commented Dec 27, 2024

Hi @0xfedcafe
What cmake version do you use?

As an alternative solution to original issue, you can install TBB via brew brew install tbb and run OpenVINO's cmake with extra option cmake -DENABLE_SYSTEM_TBB=ON

@ilya-lavrenov ilya-lavrenov added category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS labels Dec 27, 2024
@0xfedcafe
Copy link
Author

Hi @0xfedcafe What cmake version do you use?

As an alternative solution to original issue, you can install TBB via brew brew install tbb and run OpenVINO's cmake with extra option cmake -DENABLE_SYSTEM_TBB=ON

CMAKE_VERSION ......................... 3.31.3

I just renamed parent folder to cpp instead of c++ and it worked 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS support_request
Projects
None yet
Development

No branches or pull requests

2 participants