Skip to content

8162545: Mac build failure#795

Open
zzambers wants to merge 1 commit into
openjdk:masterfrom
zzambers:JDK-8162545
Open

8162545: Mac build failure#795
zzambers wants to merge 1 commit into
openjdk:masterfrom
zzambers:JDK-8162545

Conversation

@zzambers
Copy link
Copy Markdown
Contributor

@zzambers zzambers commented May 11, 2026

Backport fixing compilation error on newer gcc (14.2.0), found when testing other PR:

/starfive/jdk8u-dev/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage':
/starfive/jdk8u-dev/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2857:19: error: passing argument 1 of 'freeArray' from incompatible pointer type [-Wincompatible-pointer-types]
 2857 |         freeArray(scale, numBands);
      |                   ^~~~~
      |                   |
      |                   UINT8 ** {aka unsigned char **}


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8162545 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/795/head:pull/795
$ git checkout pull/795

Update a local copy of the PR:
$ git checkout pull/795
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/795/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 795

View PR using the GUI difftool:
$ git pr show -t 795

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/795.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 11, 2026

👋 Welcome back zzambers! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 11, 2026

@zzambers This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8162545: Mac build failure

Reviewed-by: sgehwolf, andrew

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk Bot changed the title Backport 6632e6c6ca74101b45b052fb7962376fbe97605e 8162545: Mac build failure May 11, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 11, 2026

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels May 11, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 11, 2026

Webrevs

Copy link
Copy Markdown
Contributor

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

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

Looks OK to me.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 11, 2026

⚠️ @zzambers This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@zzambers
Copy link
Copy Markdown
Contributor Author

/approval request backport fixing compilation error on newer gcc, trivial change, small risk, tested

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 11, 2026

@zzambers
8162545: The approval request has been created successfully.

@openjdk openjdk Bot added the approval Requires approval; will be removed when approval is received label May 11, 2026
Copy link
Copy Markdown
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Yes, I hit this too with GCC 14 and was going to propose it. The bug subject is deceptive as it's not Mac-specific. The types are obviously wrong and have been wrong since OpenJDK began.

Your patch matches mine.

@gnu-andrew
Copy link
Copy Markdown
Member

/approve yes

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 20, 2026

@gnu-andrew
8162545: The approval request has been approved.

@openjdk openjdk Bot added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants