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]: Type redefinition compilation error when using -DENABLE_FASTER_BUILD=ON in cmake #24290

Open
3 tasks done
andrey-golubev opened this issue Apr 29, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
bug Something isn't working support_request

Comments

@andrey-golubev
Copy link

andrey-golubev commented Apr 29, 2024

OpenVINO Version

master (7e28e88)

Operating System

Ubuntu 20.04 (LTS)

Device used for inference

CPU

Framework

None

Model used

No response

Issue description

I fail to compile OpenVINO at sha 7e28e88 when (seems like) using ENABLE_FASTER_BUILD=ON. What I get is a type redefinition error from both clang-16 and gcc-9:

In file included from openvino/src/core/src/op/scatter_nd_update.cpp:10:
openvino/src/core/reference/include/openvino/reference/scatter_nd_update.hpp:20:7: error: type alias redefinition with different types ('ov::op::v15::ScatterNDUpdate::Reduction' vs 'ov::op::v12::ScatterElementsUpdate::Reduction')
using Reduction = ov::op::v15::ScatterNDUpdate::Reduction;
      ^
openvino/src/core/reference/include/openvino/reference/scatter_elements_update.hpp:19:7: note: previous definition is here
using Reduction = ov::op::v12::ScatterElementsUpdate::Reduction;
      ^

The two types are not only coming from 2 different places but they also differ in values (both are enums):
image
image

Step-by-step reproduction

cmake -G Ninja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DENABLE_FASTER_BUILD=ON -DENABLE_INTEL_NPU=ON -DENABLE_SAMPLES=OFF -DENABLE_TESTS=ON -DENABLE_FUNCTIONAL_TESTS=ON -DENABLE_PLUGINS_XML=OFF -DENABLE_IMD_BACKEND=ON -DENABLE_DEBUG_CAPS=ON ..

ninja ov_dev_targets openvino_intel_npu_plugin

Relevant log output

No response

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.
@praasz
Copy link
Contributor

praasz commented May 16, 2024

Thanks for reporting the issue.

I can confirm that build bug existed on reported commit on master branch, but it looks like is fixed and cannot reproduce it on recent version:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support_request
Projects
None yet
Development

No branches or pull requests

2 participants