Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: compilation failure with gcc-15: ‘uint64_t’ does not name a type #227

Open
AngryLoki opened this issue Aug 10, 2024 · 1 comment

Comments

@AngryLoki
Copy link
Contributor

AngryLoki commented Aug 10, 2024

Problem Description

Hi, as reported in https://bugs.gentoo.org/937528, gcc-15 was able to unscrable some headers, and now ROCR-Runtime build fails with

In file included from /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src/libamdhsacode/amd_elf_image.cpp:43:
/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src/core/inc/amd_elf_image.hpp:62:15: error: ‘uint64_t’ does not name a type
   62 |       virtual uint64_t type() const = 0;
      |               ^~~~~~~~
/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src/core/inc/amd_elf_image.hpp:50:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   49 | #include <memory>
  +++ |+#include <cstdint>
   50 | 

Could you add #include <cstdint> to https://github.com/ROCm/ROCR-Runtime/blob/rocm-6.2.0/src/core/inc/amd_elf_image.hpp? That's the only change needed for gcc-15. Thanks!

Operating System

Gentoo

@harkgill-amd
Copy link

Thanks for pointing this out again @AngryLoki. An internal PR has been made to get this change in.

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

No branches or pull requests

3 participants