RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]
Jiangli Zhou
jiangli at openjdk.org
Wed Oct 23 01:44:08 UTC 2024
On Mon, 21 Oct 2024 13:17:27 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> When trying to sort out the LDFLAGS issues, it turned out that I could not run the linux launcher at all, not even when checking out older commits of this PR. I am almost at a loss here; I assume that this worked when I created this PR (even though I only did ad hoc testing at the time), and I'm not sure if my testing then was inadequate or if something else has changed during that time with my environment.
>
> I'm trying to retrace my steps in how I got to this branch, but I have unfortunately deleted much of the intermediate steps.
>
> @jianglizhou Can you check if you can build and run a simple HelloWorld.java with the static launcher in this PR on linux? `images/static-jdk/bin/java --version` works for me, but not `images/static-jdk/bin/java HelloWorld.java`, which fails with an error that indicates it cannot locate the jimage library.
@magicus I just noticed your above notes now (I'm been chasing an unrelated long G1 Evacuation Pause issue). I'll test your changes tomorrow. Will update you in the thread.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20837#issuecomment-2430624032
More information about the build-dev
mailing list