JDK-8307063: When cross-compiling with hsdis/binutils, buildjdk creation fails#13697
JDK-8307063: When cross-compiling with hsdis/binutils, buildjdk creation fails#13697gctony wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back tonyp! A progress list of the required criteria for merging this PR into |
erikj79
left a comment
There was a problem hiding this comment.
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.
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.
|
@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
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13697/head:pull/13697$ git checkout pull/13697Update a local copy of the PR:
$ git checkout pull/13697$ git pull https://git.openjdk.org/jdk.git pull/13697/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13697View PR using the GUI difftool:
$ git pr show -t 13697Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13697.diff
Webrev
Link to Webrev Comment