Skip to content

Conversation

@jithunnair-amd
Copy link
Collaborator

When building PyTorch with latest ROCm, the ROCm flatbuffers headers (version 25.9.23) in /opt/rocm/include are found before PyTorch's vendored flatbuffers headers (version 24.12.23). This causes a static_assert failure in mobile_bytecode_generated.h which expects FLATBUFFERS_VERSION_MAJOR == 24.

Fixes build error:
mobile_bytecode_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version include static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&

(cherry picked from commit 34dea13)
@rocm-repo-management-api
Copy link

rocm-repo-management-api bot commented Jan 22, 2026

Jenkins build for 69ee933fb328d9e1ce7e371de2c42847aa5b91e5 commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants