RFR: 8318418: hsdis build fails with system binutils on Ubuntu
Erik Joelsson
erikj at openjdk.org
Wed Oct 18 12:59:57 UTC 2023
On Wed, 18 Oct 2023 09:31:22 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> hsdis-binutils.c doesn't use any functions from libiberty.h. This header is absent on Ubuntu (installed separately, and under a different path), so removing the include fixes the hsdis compilation on Ubuntu.
>
> Additionally, the static link library for libiberty is not needed on Ubuntu; I changed the autoconf check to make libiberty optional.
>
> Verification (Ubuntu):
> - build with-binutils=system works
> - build with-binutils-src=binutils-2.30 continues to work
> - build with-binutils-src=binutils-2.38 continues to work
>
> Source builds with versions newer than 2.38 fail, see #15138
Marked as reviewed by erikj (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/16238#pullrequestreview-1685008193
More information about the hotspot-compiler-dev
mailing list