-
Notifications
You must be signed in to change notification settings - Fork 251
8324184: Windows VS2010 build failed with "error C2275: 'int64_t'" #2486
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 andrew! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
I think VS2010 does not implement C99, which brought middle-of-the-block variable declarations. |
Yes, it's not the first time we've encountered this sort of failure (and Oracle too). I seem to recall that the failure can be forced on gcc by lowering the standard, so that might be worth investigating again and adding to my own build tests, at least for 8u. |
|
/approval request Additional change from the January security update which fixes new code introduced by a security patch to compile on older C compilers that require declarations to precede statements in a block. Patch applies clean and it is preferable to keep this code consistent across all supported JDKs. In theory, this should also fix Solaris builds on 11u, if anyone still performs them. |
|
@gnu-andrew |
|
@gnu-andrew This change now passes all automated pre-integration checks. 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 5 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 |
|
/integrate |
|
Going to push as commit 26d795d.
Your commit was automatically rebased without conflicts. |
|
@gnu-andrew Pushed as commit 26d795d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
This pull request contains a backport of commit 4d078930 from the openjdk/jdk21u repository & the clean backport commit 4f80edf from 17u. A new bug ID, JDK-8324184, had to be created as JDK-8317331, the original bug, is private.
The commit being backported was authored by Coleen Phillimore on 2 Oct 2023 and had no reviewers.
We hit this issue in 8u, where the VS2010 build seems to be broken because of the placing of the declarations of
low,highandindexin JDK-8314295; see https://github.com/gnu-andrew/jdk8u-dev/actions/runs/7549766959/job/20554342418. The name of the private bug fix, JDK-8317331:Solaris build failed with "declaration can not follow a statement (E_DECLARATION_IN_CODE)", suggests it is also an issue on Solaris which is still supported by 8u & 11u.Backport was clean and built fine on GNU/Linux with GCC 13.
Thanks!
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2486/head:pull/2486$ git checkout pull/2486Update a local copy of the PR:
$ git checkout pull/2486$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2486/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2486View PR using the GUI difftool:
$ git pr show -t 2486Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2486.diff
Webrev
Link to Webrev Comment