Skip to content

Conversation

@ethanwee1
Copy link

@ethanwee1 ethanwee1 commented Jan 20, 2026

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 &&

@rocm-repo-management-api
Copy link

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

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

@ethanwee1 ethanwee1 force-pushed the fix-flatbuffers-include-order branch from 3d54831 to 34dea13 Compare January 21, 2026 20:35
@rocm-repo-management-api
Copy link

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

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

@ethanwee1 ethanwee1 changed the title Fix flatbuffers include order [ROCm] Fix flatbuffers include order Jan 21, 2026
@jithunnair-amd jithunnair-amd changed the base branch from develop to release/2.9 January 22, 2026 19:14
@jithunnair-amd jithunnair-amd changed the base branch from release/2.9 to develop January 22, 2026 19:15
@jithunnair-amd jithunnair-amd changed the title [ROCm] Fix flatbuffers include order [develop] Fix flatbuffers include order to resolve build issue with latest ROCm Jan 22, 2026
@jithunnair-amd jithunnair-amd force-pushed the develop branch 7 times, most recently from 2bd0fb5 to fe101ec Compare January 23, 2026 10:37
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.

2 participants