Skip to content

fix: gcc 15 build, include <cstdint>#1

Merged
gouzil merged 1 commit into
paddlefrom
fix/gcc_15_build
Jun 2, 2026
Merged

fix: gcc 15 build, include <cstdint>#1
gouzil merged 1 commit into
paddlefrom
fix/gcc_15_build

Conversation

@gouzil

@gouzil gouzil commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

本 PR 修复 GCC 15 下的构建问题,在 gloo/types.h 中补充直接依赖的 <cstdint> 头文件。

Changes

  • gloo/types.h 中添加 #include <cstdint>

background

gloo/types.h 使用了固定宽度整数类型,但此前没有直接包含 <cstdint>。GCC 15 下该依赖不再能稳定通过其他头文件间接获得,因此会暴露缺失头文件导致的编译失败。

相关链接:

Copilot AI review requested due to automatic review settings June 2, 2026 16:15
@gouzil gouzil merged commit 5fb0df3 into paddle Jun 2, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a GCC 15 build issue by making gloo/types.h explicitly include <cstdint>, which is required for the fixed-width integer types used in the header (e.g., uint8_t, uint16_t, uint32_t, uint64_t). This aligns with the goal of removing reliance on transitive includes that GCC 15 no longer guarantees.

Changes:

  • Add #include <cstdint> to gloo/types.h to ensure fixed-width integer types are directly available.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gouzil gouzil deleted the fix/gcc_15_build branch June 3, 2026 13:39
@gouzil gouzil restored the fix/gcc_15_build branch June 3, 2026 13:53
@gouzil gouzil deleted the fix/gcc_15_build branch June 3, 2026 14:01
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