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

rdf: Include cstdint header explicitly for std::int64_t and friends #94

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

MarijnS95
Copy link
Contributor

@MarijnS95 MarijnS95 commented May 23, 2023

On gcc-13 these integer types appear to no longer be included via (c)string or other std headers (according to a similar fix), resulting in many of the following compiler errors in amdrdf.{cpp,h}:

In file included from pal/src/core/imported/rdf/rdf/src/amdrdf.cpp:25:
pal/src/core/imported/rdf/rdf/inc/amdrdf.h:112:39: error: ‘int64_t’ in namespace ‘std’ does not name a type
  112 |     int (*Read)(void* ctx, const std::int64_t count, void* buffer, std::int64_t* bytesRead);
      |                                       ^~~~~~~

Solve this by including cstdint explicitly.

Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Thanks!

src/core/imported/rdf/rdf/inc/amdrdf.h Show resolved Hide resolved
@MarijnS95 MarijnS95 force-pushed the rdf-cstdint-gcc-13 branch 2 times, most recently from 27840c7 to 935599d Compare May 23, 2023 08:52
Flakebi
Flakebi previously approved these changes May 23, 2023
On gcc-13 these integer types appear to no longer be included via
`(c)string` or other `std` headers (according to a [similar fix]),
resulting in many of the following compiler errors in `amdrdf.{cpp,h}`:

    In file included from pal/src/core/imported/rdf/rdf/src/amdrdf.cpp:25:
    pal/src/core/imported/rdf/rdf/inc/amdrdf.h:112:39: error: ‘int64_t’ in namespace ‘std’ does not name a type
      112 |     int (*Read)(void* ctx, const std::int64_t count, void* buffer, std::int64_t* bytesRead);
          |                                       ^~~~~~~

Solve this by including `cstdint` explicitly.

[similar fix]: google/breakpad@7ea7ded
@jinjianrong
Copy link
Member

retest this please

@MarijnS95
Copy link
Contributor Author

@jinjianrong what needs to be retested? This repository hasn't changed since this PR was last updated, and it is still required to solve the build error.

@jinjianrong
Copy link
Member

@MarijnS95 This is to tell our internal jenkins to run pre-submission build and tests for the PR, not to you. Sorry for the confusion.

@amdvlk-admin
Copy link
Collaborator

Can one of the admins verify this patch?

@amdvlk-admin
Copy link
Collaborator

Test summary for commit 56868b7

CTS tests (Failed: 0/213062)
  • Built with version 1.3.3.1
  • Rhel 9.0, Gfx10
    • Passed: 36469/71030 (51.3%)
    • Failed: 0/71030 (0.0%)
    • Not Supported: 34561/71030 (48.7%)
    • Warnings: 0/71030 (0.0%)
    Ubuntu 22.04, Navi3x
    • Passed: 40426/71014 (56.9%)
    • Failed: 0/71014 (0.0%)
    • Not Supported: 30588/71014 (43.1%)
    • Warnings: 0/71014 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40464/71018 (57.0%)
    • Failed: 0/71018 (0.0%)
    • Not Supported: 30554/71018 (43.0%)
    • Warnings: 0/71018 (0.0%)

1 similar comment
@amdvlk-admin
Copy link
Collaborator

Test summary for commit 56868b7

CTS tests (Failed: 0/213062)
  • Built with version 1.3.3.1
  • Rhel 9.0, Gfx10
    • Passed: 36469/71030 (51.3%)
    • Failed: 0/71030 (0.0%)
    • Not Supported: 34561/71030 (48.7%)
    • Warnings: 0/71030 (0.0%)
    Ubuntu 22.04, Navi3x
    • Passed: 40426/71014 (56.9%)
    • Failed: 0/71014 (0.0%)
    • Not Supported: 30588/71014 (43.1%)
    • Warnings: 0/71014 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40464/71018 (57.0%)
    • Failed: 0/71018 (0.0%)
    • Not Supported: 30554/71018 (43.0%)
    • Warnings: 0/71018 (0.0%)

@MarijnS95
Copy link
Contributor Author

Ah that is cool, thank you for explaining @jinjianrong!

(Perhaps if the wording includes jenkins (re)test this please it is more clear to external contributors 👌)

@jinjianrong jinjianrong requested a review from a team June 2, 2023 08:16
@Flakebi
Copy link
Member

Flakebi commented Jun 9, 2023

This is fixed internally, but it will take a while to trickle through the release branches. I’ll see if we can get this into one of the next releases.

@chuang13 chuang13 merged commit 2609e1f into GPUOpen-Drivers:dev Jun 19, 2023
@MarijnS95 MarijnS95 deleted the rdf-cstdint-gcc-13 branch June 19, 2023 08:42
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.

None yet

5 participants