Re: openjdk build failures on "nm"

Ronald Klop <[email protected]>
Newsgroups gmane.os.freebsd.devel.java
Message-ID <2053927433.1876.1757575928041@localhost>
As it seems hard to debug, what do the java@ maintainers think of this experiment?

diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
index 5cb25e6aee72..ba7001ff2bd0 100644
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -38,7 +38,7 @@ GH_PROJECT=   jdk17u
 
 NO_CCACHE=     yes
 
-_MAKE_JOBS=    #
+MAKE_JOBS_UNSAFE=      yes
 MAKE_ENV=      LANG="C" \
                LC_ALL="C" \
                CLASSPATH="" \


openjdk23 and openjdk24 also use MAKE_JOBS_UNSAFE instead of _MAKE_JOBS

It was added in https://cgit.freebsd.org/ports/commit/java/openjdk23/Makefile?id=7451fa59a5a08e9ecf9711fc213d46dcb48cfc3d with the commit message of "Minor Makefile improvements".

I can commit this today to openjdk17 and if builds start to succeed to other openjdk* ports.
NB: I can't reproduce the issue locally, so can't make sure it fixes the issue.

Regards,
Ronald.

 
Van: Harald Eilertsen <[email protected]>
Datum: donderdag, 4 september 2025 12:54
Aan: Ronald Klop <[email protected]>
CC: [email protected]
Onderwerp: Re: openjdk build failures on "nm"
> 
> On Thu, Sep 04, 2025 at 12:09:18PM +0200, Ronald Klop wrote:
> > The portsfallout website has a lot of build logs linked.
> >
> > https://portsfallout.com/fallout?port=java%2Fopenjdk17%24
> 
> Thanks, but I don't really see anything that gives me more information
> there. I'll take a look at the relevant makefiles though to see if
> something stands out.
> 
> > BTW: I failed to reproduce the issue on my RPI4 poudriere, but maybe
> > it needs more parallel CPUs to trigger the error. I don't know.
> 
> I'm also wondering if this can be a race condition, or if there's
> something about particular build machines that cause this to happen.
> 
> Take care!
> H!
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.