RFR: 8295795: hsdis does not build with binutils 2.39+
Magnus Ihse Bursie
ihse at openjdk.org
Mon Jan 23 14:03:05 UTC 2023
On Fri, 21 Oct 2022 15:26:59 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Fails like this:
>
>
> $ sh ./configure --with-boot-jdk=jdk19u-ea --with-hsdis=binutils --with-binutils-src=binutils-2.39
> $ make clean build-hsdis
>
> === Output from failing command(s) repeated here ===
> * For target support_hsdis_hsdis-binutils.o:
I started on a journey that I unfortunately never got around to finish, with using the license-unencumbered capstone hsdis implementation, and include that as default when building the JVM.
Apparently there is still need for the binutils hsdis, which I guess is due to limitations in the capstone version compared to binutils. (?) Otherwise binutils is just a plain pain to work with from the JDK perspective, due to the incompatible license involved.
Given that the capstone hsdis version can be made to match the binutil version in functionality, I think it would be a much saner path forward to focus on that implementation, and just bundle it with the JVM.
-------------
PR: https://git.openjdk.org/jdk/pull/10817
More information about the build-dev
mailing list