Skip to content

JDK-8307063: When cross-compiling with hsdis/binutils, buildjdk creation fails #13697

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

Closed
wants to merge 3 commits into from

Conversation

gctony
Copy link
Contributor

@gctony gctony commented Apr 27, 2023

Fix is to exclude hsdis when building the buildjdk.


Progress

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

Issue

  • JDK-8307063: When cross-compiling with hsdis/binutils, buildjdk creation fails

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13697/head:pull/13697
$ git checkout pull/13697

Update a local copy of the PR:
$ git checkout pull/13697
$ git pull https://git.openjdk.org/jdk.git pull/13697/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 13697

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13697.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 27, 2023

👋 Welcome back tonyp! 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 openjdk bot added the rfr Pull request is ready for review label Apr 27, 2023
@openjdk
Copy link

openjdk bot commented Apr 27, 2023

@gctony The following labels will be automatically applied to this pull request:

  • build
  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Apr 27, 2023
Copy link
Member

@erikj79 erikj79 left a comment

Choose a reason for hiding this comment

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

This looks like it should work, but I would like to avoid sprinkling any more CREATING_BUILDJDK conditionals throughout the build than absolutely necessary. I think it would be better to just override HSDIS_BACKEND and ENABLE_HSDIS_BUNDLING in buildjdk-spec.gmk.in with a comment that hsdis should never be enabled in the buildjdk. I haven't tested it though so I may be missing something.

@mlbridge
Copy link

mlbridge bot commented Apr 27, 2023

Webrevs

@gctony
Copy link
Contributor Author

gctony commented Apr 27, 2023

This looks like it should work, but I would like to avoid sprinkling any more CREATING_BUILDJDK conditionals throughout the build than absolutely necessary. I think it would be better to just override HSDIS_BACKEND and ENABLE_HSDIS_BUNDLING in buildjdk-spec.gmk.in with a comment that hsdis should never be enabled in the buildjdk. I haven't tested it though so I may be missing something.

I haven't looked at the build scripts for quite a while! Let me try what you suggested and see if it works. Thanks.

@gctony
Copy link
Contributor Author

gctony commented Apr 27, 2023

@erikj79 See updated patch. This is indeed cleaner and seems to work (I tried building x64/riscv binaries with/without hsdis).

Comment on lines 108 to 109
override HSDIS_BACKEND := none
override ENABLE_HSDIS_BUNDLING := false
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't need the override keyword. That is only needed when the value of the variables is set on the make command line. In this case we are simply overriding the values from the main spec.gmk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

@openjdk
Copy link

openjdk bot commented Apr 27, 2023

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

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

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

8307063: When cross-compiling with hsdis/binutils, buildjdk creation fails

Reviewed-by: erikj

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 3 new commits pushed to the master branch:

  • b827ce8: 8298993: (process) java/lang/ProcessBuilder/UnblockSignals.java fails
  • 7871390: 8306952: improve generic signature of internal DCInlineTag class
  • 6983d05: 8306927: Collator treats "v" and "w" as the same letter for Swedish language locale.

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this 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 added the ready Pull request is ready to be integrated label Apr 27, 2023
@gctony
Copy link
Contributor Author

gctony commented Apr 27, 2023

@erikj79 Thanks! I assume the integrate command will actually squash the three commits and rebase them on top of master as one commit?

@erikj79
Copy link
Member

erikj79 commented Apr 27, 2023

@erikj79 Thanks! I assume the integrate command will actually squash the three commits and rebase them on top of master as one commit?

Yes, all you need to do is to issue the integrate command, just like the bot instructed here.

@gctony
Copy link
Contributor Author

gctony commented Apr 28, 2023

/integrate

@openjdk
Copy link

openjdk bot commented Apr 28, 2023

Going to push as commit 83a98c6.
Since your change was applied there have been 12 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 28, 2023
@openjdk openjdk bot closed this Apr 28, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 28, 2023
@openjdk
Copy link

openjdk bot commented Apr 28, 2023

@gctony Pushed as commit 83a98c6.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@gctony
Copy link
Contributor Author

gctony commented Apr 28, 2023

All set! Thanks for your help @erikj79 !!!

@gctony gctony deleted the JDK-8307063_HsdisBuild branch April 28, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants