Skip to content

[Build] OpenVINO Provider use C++20 feature that unavailable in supported linux distro #26936

@egortech

Description

@egortech

Describe the issue

OpenVINO Provider use std::format that implemented in GCC 13. For Example supported Debian 12 distro ships with GCC 12, CentOS Stream 9 ships with GCC 11.2. In result there are build failure.

Is minimum GCC version 13 a planned change?

Urgency

No response

Target platform

Linux/Debian 12

Build script

./build.sh --config RelWithDebInfo  --use_openvino --build_shared_lib

Error / output

/~/onnxruntime/onnxruntime/core/providers/openvino/ov_factory.cc:10:10: fatal error: format: No such file or directory
   10 | #include <format>
      |          ^~~~~~~~

Visual Studio Version

No response

GCC / Compiler Version

11.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:OpenVINOissues related to OpenVINO execution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions