From nobody Thu Mar 20 10:15:21 2025 X-Original-To: freebsd-java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZJM0Q6vYzz5rbtj for ; Thu, 20 Mar 2025 10:15:34 +0000 (UTC) (envelope-from haraldei@anduin.net) Received: from mail.anduin.net (mail.anduin.net [185.42.170.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZJM0N0jdRz3S8V for ; Thu, 20 Mar 2025 10:15:31 +0000 (UTC) (envelope-from haraldei@anduin.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=anduin.net header.s=dkim2021 header.b=6o2twaNR; dmarc=pass (policy=reject) header.from=anduin.net; spf=pass (mx1.freebsd.org: domain of haraldei@anduin.net designates 185.42.170.45 as permitted sender) smtp.mailfrom=haraldei@anduin.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anduin.net; s=dkim2021; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iloVUDhZJOlk2VHNCmHV7wy3SFSg8rmXpgguxfMKRaY=; t=1742465731; x=1743329731; b=6o2twaNRn8At2OCEQu/AOlwAUDzgp6e2/E0IRtOWoHwpjZzCyIIpXaKB9+OurFHUE/ppVxM7qzw IbjfBcLee8+L9toaRjihSeM9EuPomD3wKOwGP8YkoIk4V3cKg6HYAfGtqFgREx0e1qQUTFh6TGcQ2 KP/Wdiu6pLU66BKXK9PcpMGWm5FahRWvvy4K5ehVWKlodDadfp/SZdxJakFiUavogukd0WzjAtS8w JNsqxmgeJLod2loB+E5mYRr18iaZoC8dLZreSxPGkEDK+cuHu+5c6y1Zlodbd1SShe8SZedAyuaE5 2Wx/0w93KPDbUaxSyGHx/qF0AMiTtooKiIFA==; Received: by mail.anduin.net with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1tvCvq-00000000Ffu-1Typ for freebsd-java@freebsd.org; Thu, 20 Mar 2025 10:15:23 +0000 Date: Thu, 20 Mar 2025 11:15:21 +0100 From: Harald Eilertsen To: freebsd-java@freebsd.org Subject: Re: java/openjdk19 fails to build on aarch64 Message-ID: Mail-Followup-To: freebsd-java@freebsd.org References: <4dda4c06-fc1c-40e0-9960-048c9c776125@chen.org.nz> <82f3dead-8438-4ecb-91d4-ccc486c72c3f@chen.org.nz> <9bc59721-4428-4fda-9357-00e368c02d8f@chen.org.nz> List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9bc59721-4428-4fda-9357-00e368c02d8f@chen.org.nz> X-SA-Authenticated: Yes X-Spam-Score: -1.9 X-Spam-Level: - X-Spam-Report: host: mail.modirum.com | contact: hostmaster@modirum.com | scores: BAYES_00=-1.9,NO_RELAYS=-0.001 | autolearn=no autolearn_force=no, score=0 X-Spamd-Result: default: False [-3.85 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[185.42.170.45:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[anduin.net,reject]; MID_RHS_NOT_FQDN(0.50)[]; NEURAL_HAM_LONG(-0.35)[-0.351]; R_SPF_ALLOW(-0.20)[+ip4:185.42.170.45/32]; R_DKIM_ALLOW(-0.20)[anduin.net:s=dkim2021]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[haraldei]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:62248, ipnet:185.42.170.0/24, country:EE]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-java@freebsd.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[anduin.net:+] X-Rspamd-Queue-Id: 4ZJM0N0jdRz3S8V X-Spamd-Bar: --- On Thu, Mar 20, 2025 at 04:33:15PM +1300, Jonathan Chen wrote: > On 19/03/25 22:24, Harald Eilertsen wrote: > > libraries.m4 should be patched before configure is run, which again > > produces spec.gmk. Otherwise it would be no point in patching it to > > begin with... > > You are correct. I only realised this just after I pressed the "Send" > button. So I dug into this a bit deeper, and it appears that > make/autoconf/build-aux directory has a later timestamp than spec.gmk after > the configure phase. This was from a clean work directory in the port? I see that gonfig.guess and config.sub for some reason is touched during the port build, but I'm not sure why. (This does not seem to happen when just building the jdk normally.) As you also observe this still happens before the spec is generated. Other than that I don't know what else that can happen to the dir during build. I'm not able to replicate this no matter what shenanigans I do to the work dir in the port. > To force the build to ignore the warning, I applied the following patch: > > diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile > index 76e8910459..4b84b82092 100644 > --- a/java/openjdk19/Makefile > +++ b/java/openjdk19/Makefile > @@ -48,7 +48,7 @@ MAKE_ENV= LANG="C" \ > CC=${CC} \ > CXX=${CXX} \ > CPP=${CPP} \ > - MAKEFLAGS="" > + MAKEFLAGS="CONF_CHECK=ignore " What happens if you set CONF_CHECK=auto instead? Do you get a build cycle? Take care! H!