Integrated: 8354941: Build failure with glibc 2.42 due to uabs() name collision
Severin Gehwolf
sgehwolf at openjdk.org
Tue May 13 10:02:17 UTC 2025
On Thu, 17 Apr 2025 12:31:18 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> glibc 2.42 defines its own version of `uabs` when `stdlib.h` is being included. I propose to rename the hotspot version of `uabs` to `custom_uabs` (or some other suitable name) to avoid the name clash. The rename of the function is hidden by using a `UABS` macro instead in the code.
>
> Testing:
> - [x] GHA (also [here](https://github.com/jerboaa/jdk/actions/runs/14513365723))
> - [x] Builds with this patch with GCC 15 where the build would fail earlier and pass with this patch.
>
> Thoughts?
This pull request has now been integrated.
Changeset: 38bb8adf
Author: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/38bb8adf4f632b08af15f2d8530b35f05f86a020
Stats: 16 lines in 9 files changed: 0 ins; 0 del; 16 mod
8354941: Build failure with glibc 2.42 due to uabs() name collision
Reviewed-by: kbarrett, thartmann
-------------
PR: https://git.openjdk.org/jdk/pull/24723
More information about the hotspot-dev
mailing list