Re: openjdk build failures on "nm"

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Thu, 11 Sep 2025 07:32:08 UTC
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 <haraldei@anduin.net>
Datum: donderdag, 4 september 2025 12:54
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: java@freebsd.org
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!
> 
> 
>