Re: java/openjdk17 does not nuild

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Sun, 14 Sep 2025 09:43:15 UTC
Hi Xavier,

The issue should be fixed. Please git pull so you have port revision 3 of openjdk17.
Would be nice to hear if it is also working for you again.

Thanks for reporting the problem.

Regards,
Ronald.

 
Van: Xavier Humbert <xavier@groumpf.org>
Datum: zondag, 14 september 2025 10:37
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: ports@freebsd.org, java@freebsd.org
Onderwerp: Re: java/openjdk17 does not nuild
> 
> Le 14/09/2025 10:10, Ronald Klop a écrit :
>> Hi,
>> I’m trying to fix things on openjdk17 in relation to parallel building. See java@ mailing list in the thread about “nm” errors.
>> Can you post more of your make.conf?And can you do make clean before make all?And post more lines of output?
>> I can’t reproduce your error yet.
>> Regards,Ronald > 
> Her is my make.conf :
> 
> CPUTYPE?=core2
> CFLAGS+=        -g
> CXXFLAGS+=      -g
> #MAKEFLAGS= -j 8
> MASTER_SITE_BACKUP?=    \
>         http://distcache.FreeBSD.org/ports-distfiles/${DIST_SUBDIR}/
> MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}
> MASTER_SORT_REGEX?=     ://[^/]*\.fr[/.]
> PACKAGES=/usr/ports/packages
> DEFAULT_VERSIONS+=ssl=openssl
> DEFAULT_VERSIONS+=python=3.11
> DEFAULT_VERSIONS+=perl5=5.40
> DEFAULT_VERSIONS+=mysql=106m
> DEFAULT_VERSIONS+=llvm=20
> DEFAULT_VERSIONS+=mono=5.20
> OPTIONS_UNSET= GSSAPI_BASE
> OPTIONS_SET=   GSSAPI_MIT
> .if ${.CURDIR:M*/ports/net/librsync}
>   LDFLAGS += -L/usr/local/lib
> .endif
> WITH_CTF=yes
> MK_CTF=yes
> DEVELOPER=yes
> TMPFS_BLACKLIST='rust gcc* llvm* texlive-texmf'
> TMPFS_BLACKLIST_TMPDIR=/var/tmp
> USE_TMPFS=yes
> TMPFS_LIMIT=4 
>  
> 
> An the full output
> 
> [root@numenor openjdk17]# make MAKE_JOBS_NUMBER=8 all
> ===>  License GPLv2 accepted by the user
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/sbin/pkg - found
> ===> Fetching all distfiles required by openjdk17-17.0.16+8.1_2 for building
> ===>  Extracting for openjdk17-17.0.16+8.1_2
> => SHA256 Checksum OK for battleblow-jdk17u-jdk-17.0.16+8-1_GH0.tar.gz.
> ===>  Patching for openjdk17-17.0.16+8.1_2
> ===>  Applying FreeBSD patches for openjdk17-17.0.16+8.1_2 from /usr/ports/java/openjdk17/files
> ===>   openjdk17-17.0.16+8.1_2 depends on executable: zip - found
> ===>   openjdk17-17.0.16+8.1_2 depends on package: autoconf>0 - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/include/cups/cups.h - found
> ===>   openjdk17-17.0.16+8.1_2 depends on executable: bash - found
> ===>   openjdk17-17.0.16+8.1_2 depends on executable: gsed - found
> ===>   openjdk17-17.0.16+8.1_2 depends on package: gmake>=4.4.1 - found
> ===>   openjdk17-17.0.16+8.1_2 depends on package: libiconv>=1.14_11 - found
> ===>   openjdk17-17.0.16+8.1_2 depends on package: pkgconf>=1.3.0_1 - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xrender.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libasound.so - found (/usr/local/lib/libasound.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libgif.so - found (/usr/local/lib/libgif.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libharfbuzz.so - found (/usr/local/lib/libharfbuzz.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: liblcms2.so - found (/usr/local/lib/liblcms2.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libpng.so - found (/usr/local/lib/libpng.so)
> ===>   openjdk17-17.0.16+8.1_2 depends on shared library: libjpeg.so - found (/usr/local/lib/libjpeg.so)
> ===>  Configuring for openjdk17-17.0.16+8.1_2
> Warning: You are using legacy autoconf cross-compilation flags.
> It is recommended that you use --openjdk-target instead.
> 
> [... output of configure skipped]
> 
> The following warnings were produced. Repeated here for convenience:
> WARNING: Ignoring value of MAKE from the environment. Use command line variables instead.
> WARNING: Ignoring CFLAGS(-O2 -pipe -g -march=core2  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing ) found in environment. Use --with-extra-cflags
> WARNING: Ignoring CXXFLAGS(-O2 -pipe -g -march=core2 -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -g  -DLIBICONV_PLUG ) found in environment. Use --with-extra-cxxflags
> WARNING: Ignoring LDFLAGS( ) found in environment. Use --with-extra-ldflags
> WARNING: Option --enable-hotspot-gtest is deprecated and will be ignored.
> 
> ===>  Building for openjdk17-17.0.16+8.1_2
> Error: 'make -jN' is not supported, use 'make JOBS=N'
> /usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.16-8-1/make/Init.gmk:115: *** Cannot continue.  Stop.
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/java/openjdk17
>  
> 
>  
>> 
>> Van: Xavier Humbert <xavier@groumpf.org>
>> Datum: 14 september 2025 09:40
>> Aan: ports@freebsd.org
>> Onderwerp: java/openjdk17 does not nuild
>>> 
>>> Hi;
>>> 
>>> After pulling tonight's port tree, I have to upgrade java/openjdk17, but
>>> 
>>> [root@numenor openjdk17]# make all
>>> ===>  Building for openjdk17-17.0.16+8.1_2
>>> Error: 'make -jN' is not supported, use 'make JOBS=N'
>>> 
>>> I have commented out MAKEFLAGS= -j 8 in /etc/make.conf with no success.
>>> 
>>> Any help appreciated.
>>> 
>>> Regards,
>>> 
>>> Xavier
>>> 
>>> -- 
>>> Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
>>> https://www.amdh.fr
>>> 
>>>  
>>> 
>>> 
>>> 
>> 
>> 
>>  > 
> -- 
> Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
> https://www.amdh.fr
>