-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Conversation
👋 Welcome back tonyp! A progress list of the required criteria for merging this PR into |
There was a problem hiding this 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.
Webrevs
|
I haven't looked at the build scripts for quite a while! Let me try what you suggested and see if it works. Thanks. |
@erikj79 See updated patch. This is indeed cleaner and seems to work (I tried building x64/riscv binaries with/without hsdis). |
make/autoconf/buildjdk-spec.gmk.in
Outdated
override HSDIS_BACKEND := none | ||
override ENABLE_HSDIS_BUNDLING := false |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
@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:
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
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
@erikj79 Thanks! I assume the integrate command will actually squash the three commits and rebase them on top of master as one commit? |
/integrate |
Going to push as commit 83a98c6.
Your commit was automatically rebased without conflicts. |
All set! Thanks for your help @erikj79 !!! |
Fix is to exclude hsdis when building the buildjdk.
Progress
Issue
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