8386625: Devkit could not be built on glibc 2.43+#31511
Conversation
|
👋 Welcome back ysuenaga! A progress list of the required criteria for merging this PR into |
|
@YaSuenag 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 23aa48f.
Your commit was automatically rebased without conflicts. |
I saw following error when I tried to build Linux x86_64 devkit on glibc 2.43 system (Fedora 44):
According to release notes of glibc 2.43,
_Genericmacro has been introduced as a part of C23, and it might break some packages [1]. It is binutils in devkit.It is not a bug in OpenJDK and devkit, but it is better if we can avoid the problem with some options. The problem is in gprofng, so we can avoid the problem if we can add
--disable-gprofngin configure options of binutils. gprofng is a profiler, so it is not required for devkit.Note that we cannot build Linux x86_64 devkit on Fedora 44 (glibc 2.43 + gcc 16.1) with this change only. We also need to add
-std=gnu17. I exclude it from this change (so far) because we can add it viaCFLAGSenvironment variable and I'm not sure how it affects in older C compilers.[1] https://sourceware.org/glibc/wiki/Release/2.43#C23_Const-Preserving_Standard_Library_Macros_May_Break_Some_Packages
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31511/head:pull/31511$ git checkout pull/31511Update a local copy of the PR:
$ git checkout pull/31511$ git pull https://git.openjdk.org/jdk.git pull/31511/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31511View PR using the GUI difftool:
$ git pr show -t 31511Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31511.diff
Using Webrev
Link to Webrev Comment