Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-11-18 Thread Magnus Ihse Bursie
On Mon, 21 Oct 2024 13:07:34 GMT, Magnus Ihse Bursie wrote: >> src/java.base/unix/native/libjli/java_md.c line 279: >> >>> 277:char jvmpath[], jint so_jvmpath, >>> 278:char jvmcfg[], jint so_jvmcfg) { >>> 279: /* Compute/set the name o

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-11-01 Thread Magnus Ihse Bursie
On Wed, 23 Oct 2024 08:23:34 GMT, Johan Vos wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Don't hardcode server variant > > I tried to build/run this on Linux as well (since I'm using parts of this PR > in

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-30 Thread Jiangli Zhou
On Thu, 24 Oct 2024 23:36:19 GMT, Jiangli Zhou wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Don't hardcode server variant > >> > > When trying to sort out the LDFLAGS issues, it turned out that I could >>

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-29 Thread Magnus Ihse Bursie
On Thu, 24 Oct 2024 23:36:19 GMT, Jiangli Zhou wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Don't hardcode server variant > >> > > When trying to sort out the LDFLAGS issues, it turned out that I could >>

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-24 Thread Jiangli Zhou
On Tue, 15 Oct 2024 20:22:52 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-24 Thread Jiangli Zhou
On Wed, 23 Oct 2024 01:40:59 GMT, Jiangli Zhou 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 > > crea

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-24 Thread Magnus Ihse Bursie
On Tue, 15 Oct 2024 20:22:52 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-23 Thread Johan Vos
On Tue, 15 Oct 2024 20:22:52 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-22 Thread Jiangli Zhou
On Mon, 21 Oct 2024 13:17:27 GMT, Magnus Ihse Bursie 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

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-21 Thread Magnus Ihse Bursie
On Tue, 15 Oct 2024 20:22:52 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-21 Thread Magnus Ihse Bursie
On Fri, 18 Oct 2024 18:23:13 GMT, Johan Vos wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Don't hardcode server variant > > src/java.base/unix/native/libjli/java_md.c line 279: > >> 277:

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-18 Thread Johan Vos
On Tue, 15 Oct 2024 20:22:52 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-16 Thread Magnus Ihse Bursie
On Tue, 15 Oct 2024 19:31:45 GMT, Magnus Ihse Bursie wrote: >>> After thinking a bit more on this, I concluded that we cannot automatically >>> extract a proper set of ld flags from what's being passed to the individual >>> libraries. The LDFLAGS needed by the monolithic static library needs to

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-15 Thread Jaikiran Pai
On Tue, 15 Oct 2024 18:39:50 GMT, Magnus Ihse Bursie wrote: >> src/java.base/unix/native/libjli/java_md.c line 509: >> >>> 507: >>> 508: if (GetApplicationHome(path, pathsize)) { >>> 509: if (JLI_IsStaticallyLinked()) { >> >> In passing, GetJREPath's function description includes "

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v7]

2024-10-15 Thread Magnus Ihse Bursie
> As a prerequisite for Hermetic Java, we need a statically linked `java` > launcher. It should behave like the normal, dynamically linked `java` > launcher, except that all JDK native libraries should be statically, not > dynamically, linked. > > This patch is the first step towards this goal.