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

8299616: [11u] Bootcycle build fails after JDK-8257679 backport #1639

Closed

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Jan 4, 2023

Currently, JDK 11u make bootcycle-images fails with:

 bootcycle-spec.gmk:32: *** non-numeric first argument to `word' function: ''. Stop.

The apparent reason is JDK-8257679 that did the following change:
 40f4fc2#diff-935527b393cb4625a8874febf5fe39d43479a2228ef437f4e104ba3001e1e30fL31-L40

Note that the left-over hunk uses JAVA_EXEC_POS, which is defined in the hunk that was removed. This PR reinstantiates that hunk.

Additional testing:

  • Linux x86_64 fastdebug make bootcycle-images
  • Windows x86_64 fastdebug make bootcycle-images

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-8299616: [11u] Bootcycle build fails after JDK-8257679 backport

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1639

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 4, 2023

👋 Welcome back shade! 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 Jan 4, 2023
Copy link
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.

Thanks for tracking this down so quickly. After you identified the problematic patches, I came to the same conclusion that this is down to JAVA_EXEC_POS still being used in bootcycle-spec.gmk.in, but now undefined.

I think the reason for the change was two-fold:

  1. $(FIXPATH) was removed from JAVA in spec.gmk.in and only added to JAVA_CMD in bootcycle-spec.gmk.in so the second branch would always be true.
  2. The block as a whole was removed as JAVA_EXEC_POS is unused after JDK-8244036 (not backported to 11u)

The safest option is to restore what we had before, as your patch does, but it may be that JAVA_EXEC_POS can now always be 1 (or just removed and a hardcoded 1 used in bootcycle-spec.gmk.in).

I'm happy with this as the lowest risk fix, assuming Windows builds fine.

@mlbridge
Copy link

mlbridge bot commented Jan 4, 2023

Webrevs

@openjdk
Copy link

openjdk bot commented Jan 4, 2023

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

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

8299616: [11u] Bootcycle build fails after JDK-8257679 backport

Reviewed-by: andrew, clanger

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 added the ready Pull request is ready to be integrated label Jan 4, 2023
@RealCLanger
Copy link
Contributor

Ah, yes, JDK-8244036, is not in jdk11u, so removing this block was wrong. Thanks for finding & fixing. Please integrate this and I'll cherry-pick it into the bundle for 11.0.18, too.

@shipilev
Copy link
Member Author

shipilev commented Jan 4, 2023

The safest option is to restore what we had before, as your patch does, but it may be that JAVA_EXEC_POS can now always be 1 (or just removed and a hardcoded 1 used in bootcycle-spec.gmk.in).

True. But, I could not convince myself there is a guarantee for fixpath to be absent in either $SJAVAC_SERVER_JAVA or $JAVA, so kept the most pessimistic fix.

I did massage the comments a bit, so that they would match the original code shape.

@shipilev
Copy link
Member Author

shipilev commented Jan 4, 2023

Windows and Linux bootcycle builds are fine. GHAs are clean. Push approval is there. I am integrating.

/integrate

@openjdk
Copy link

openjdk bot commented Jan 4, 2023

Going to push as commit 6073296.

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

openjdk bot commented Jan 4, 2023

@shipilev Pushed as commit 6073296.

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

@gnu-andrew
Copy link
Member

The safest option is to restore what we had before, as your patch does, but it may be that JAVA_EXEC_POS can now always be 1 (or just removed and a hardcoded 1 used in bootcycle-spec.gmk.in).

True. But, I could not convince myself there is a guarantee for fixpath to be absent in either $SJAVAC_SERVER_JAVA or $JAVA, so kept the most pessimistic fix.

I did massage the comments a bit, so that they would match the original code shape.

Yes, that was my thinking too. Better safe than sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
3 participants