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

Fix gcc 13 build #1262

Closed
wants to merge 3 commits into from
Closed

Fix gcc 13 build #1262

wants to merge 3 commits into from

Conversation

trofi
Copy link

@trofi trofi commented May 23, 2022

gcc-13 did a bit of implicit header inclusion hygiene. This exposed a few build failures in openexr. The change restores the build by adding <cstdint> includes.

trofi added 3 commits May 23, 2022 07:26
Without the change build fails on this week's gcc-13 as:

    [  7%] Building CXX object src/lib/OpenEXR/CMakeFiles/OpenEXR.dir/ImfDeepTiledInputPart.cpp.o
    In file included from openexr/src/lib/OpenEXR/ImfDeepTiledInputPart.cpp:6:
    openexr/src/lib/OpenEXR/ImfDeepTiledInputPart.h:297:57: error: 'uint64_t' has not been declared
      297 |         int& dx, int& dy, int& lx, int& ly, char* data, uint64_t& dataSize)
          |                                                         ^~~~~~~~

Signed-off-by: Sergei Trofimovich <[email protected]>
Without the change build fails on this week's gcc-13 as:

    [ 23%] Building CXX object src/lib/OpenEXR/CMakeFiles/OpenEXR.dir/ImfDeepTiledOutputPart.cpp.o
    In file included from openexr/src/lib/OpenEXR/ImfDeepTiledInputFile.cpp:12:
    openexr/src/lib/OpenEXR/ImfDeepTiledInputFile.h:341:62: error: 'uint64_t' has not been declared
      341 |         int& dx, int& dy, int& lx, int& ly, char* pixelData, uint64_t& dataSize)
          |                                                              ^~~~~~~~

Signed-off-by: Sergei Trofimovich <[email protected]>
Without the change build fails on this week's gcc-13 as:

    [ 99%] Building CXX object src/test/OpenEXRTest/CMakeFiles/OpenEXRTest.dir/testInputPart.cpp.o
    openexr/src/bin/exrcheck/main.cpp: In function 'bool exrCheck(const char*, bool, bool, bool, bool)':
    openexr/src/bin/exrcheck/main.cpp:65:15: error: 'uintptr_t' does not name a type
       65 |         const uintptr_t kMaxSize = uintptr_t (-1) / 4;
          |               ^~~~~~~~~

Signed-off-by: Sergei Trofimovich <[email protected]>
@linux-foundation-easycla
Copy link

CLA Not Signed

cary-ilm added a commit to cary-ilm/openexr that referenced this pull request Jun 2, 2022
Originally submitted as AcademySoftwareFoundation#1262, thanks.

Signed-off-by: Cary Phillips <[email protected]>
@cary-ilm
Copy link
Member

cary-ilm commented Jun 2, 2022

Thanks for the catch, and apologies for the delay. To save you the hassle of signing the CLA, I submitted #1264. The ASWF policy is to require a signed CLA for all PRs. If you'd prefer to sign, I'm happy to accept this instead.

@trofi
Copy link
Author

trofi commented Jun 2, 2022

Please submit your version. I'd prefer not to explore CLA signing for this one-liner. I'll close this PR.

Thank you!

@trofi trofi closed this Jun 2, 2022
@trofi trofi deleted the fix-gcc-13-build branch June 2, 2022 05:49
cary-ilm added a commit that referenced this pull request Jul 31, 2022
Originally submitted as #1262, thanks.

Signed-off-by: Cary Phillips <[email protected]>
cary-ilm added a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2023
cary-ilm added a commit that referenced this pull request Mar 5, 2023
Originally submitted as #1262, thanks.

Signed-off-by: Cary Phillips <[email protected]>
mloccy added a commit to mloccy/openexr that referenced this pull request Apr 18, 2024
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