Skip to content

[C++] Pin flatbuffers compiler version #35497

@bkietz

Description

@bkietz

Describe the bug, including details regarding any error messages, version, and platform.

I ran cpp/build-support/update-flatbuffers.sh and the regenerated headers included new failing static assertions like:

/home/ben/arrow/cpp/src/generated/Message_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
   11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&

The probable fix is to pin the version of the flatbuffers compiler used in c++. As of google/flatbuffers#7203 the compiler inserts these static assertions which assert the version of the compiler- but our vendored flatbuffers are at 1.12.0. conda-forge has that version and after installing it I don't see failing static assertions any more.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions