Skip to content

[Build] unable to build against rel-1.20.0 due to code assertion #22666

@mc-nv

Description

@mc-nv

Describe the issue

I see following assertion in the code:

static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
FLATBUFFERS_VERSION_MINOR == 5 &&
FLATBUFFERS_VERSION_REVISION == 26,

This assertion has specific expectation in value, is it a straight dependency or can be omitted?

Build environment:

BUILDTOOLS_VERSION:17.10.35201.131 
CMAKE_VERSION:3.30.0 
CUDA_VERSION:12.6.2 
CUDNN_VERSION:9.5.1.17 
PYTHON_VERSION:3.12.3 
TENSORRT_VERSION:10.6.0.26 
VCPGK_VERSION:2024.03.19

Urgency

before release

Target platform

windows

Build script

onnxruntime/tools/ci_build/build.py `
      --cmake_generator "Visual Studio 17 2022" `
      --config Release `
      --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=75;80;86;90" `
      --skip_submodule_sync `
      --parallel `
      --build_shared_lib `
      --compile_no_warning_as_error `
      --skip_tests `
      --update `
      --build `
      --build_dir /workspace/build `
      --use_cuda `
      --cuda_home ${env:CUDA_PATH} `
      --cudnn_home ${env:CUDA_PATH} `
      --use_tensorrt --tensorrt_home "/tensorrt" 

Error / output

C:\workspace\onnxruntime\onnxruntime\core\flatbuffers\schema\ort.fbs.h(12,46): error C2338: static_assert failed: 'Non-compatible flatbuffers version included' [C:\workspace\build\Release\onnxruntime_flatbuffers.vcxproj]

Visual Studio Version

No response

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions