Skip to content

Fix builds with GCC 15#393

Merged
liulanzheng merged 1 commit intocontainerd:mainfrom
flatcar-hub:krnowak/gcc15fix
Feb 23, 2026
Merged

Fix builds with GCC 15#393
liulanzheng merged 1 commit intocontainerd:mainfrom
flatcar-hub:krnowak/gcc15fix

Conversation

@krnowak
Copy link
Contributor

@krnowak krnowak commented Feb 19, 2026

What this PR does / why we need it:

GCC 15 has more cleanups done in their include files, which results in some declarations to be not indirectly brought into translation unit anymore.

In this case there were errors in prefetch.h header about uint32_t being undeclared. Let's include cstding header file to fix it.

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

GCC 15 has more cleanups done in their include files, which results in
some declarations to be not indirectly brought into translation unit
anymore.

In this case there were errors in prefetch.h header about uint32_t
being undeclared. Let's include cstding header file to fix it.

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
@krnowak
Copy link
Contributor Author

krnowak commented Feb 19, 2026

This PR won't fix building overlaybd with gcc 15, because similar issue exists in photon 0.6.17, which overlaybd vendors. We currently are patching it in Flatcar.

@liulanzheng liulanzheng merged commit 58f1508 into containerd:main Feb 23, 2026
2 checks passed
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