From nobody Mon May 9 14:48:05 2022 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 2051F1ACCC18; Mon, 9 May 2022 14:48:08 +0000 (UTC) (envelope-from SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 4KxkYg0B6rz4V3p; Mon, 9 May 2022 14:48:06 +0000 (UTC) (envelope-from SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl) Date: Mon, 9 May 2022 16:48:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1652107685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hHw+rPtEcF1Wy4gF9HzK96TYVorUedU1C0YpTXdx7gk=; b=CJhspVZtALWaGd/XLP7zzM2BGuVvTM+q8BYh3u9Rx8fqqKnthZ9ZnPKZep7WvqzTCOe5gD Sz/m+b20P75U0MvsbqNQCO5vtq0swBmhloF1oe/fjVZNrdEdSPlOtg9a6XzzquPxViYIqo VPpXKgfC2reqzFqKet73/zkjGvfXASTCUOkFnmG+iJn3z2eC9JMKu2ko94qwxcMZcqYLiP rPrT7Jpeq4CP6tQFQAKmi7zGLMHe4hmpK8qdLchEHKlbbE+rJioepwB3PGLxLwUc8A9ZgX kx8XWPnn5AIkTRnxYC/CMmLzDBIFl135+1cvEJ3WQDNcTBpA24+QCAPBeyu0Ww== From: Ronald Klop To: Greg Lewis Cc: =?UTF-8?Q?Mika=C3=ABl_Urankar?= , freebsd-arm@freebsd.org, freebsd-java@freebsd.org Message-ID: <1525249842.4.1652107685143@mailrelay> In-Reply-To: <01010180a1dfcd05-c3089932-de45-4a67-8910-3142a37ef4d6-000000@us-west-2.amazonses.com> References: <202204301129.23UBTh9D082833@ampere3.nyi.freebsd.org> <9f0d2c0b-2ef3-9a5f-3bf4-e3c4068947a4@FreeBSD.org> <1486531687.70.1651475552058@localhost> <01010180a1dfcd05-c3089932-de45-4a67-8910-3142a37ef4d6-000000@us-west-2.amazonses.com> Subject: Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure 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: multipart/alternative; boundary="----=_Part_3_102238385.1652107685130" X-Mailer: Realworks (607.118.ff703a3) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4KxkYg0B6rz4V3p X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=CJhspVZt; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.12 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.92)[-0.924]; MLMMJ_DEST(0.00)[freebsd-arm,freebsd-java]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=9B21=VR=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_3_102238385.1652107685130 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, This patch works for me. I didn't test the builded openjdk17 yet. I guess t= hat needs the same construction but we will see after building is finished. Regards, Ronald. diff --git a/java/bootstrap-openjdk17/Makefile b/java/bootstrap-openjdk17/M= akefile index 9cb49ca170af..693da01a2395 100644 --- a/java/bootstrap-openjdk17/Makefile +++ b/java/bootstrap-openjdk17/Makefile @@ -1,5 +1,6 @@ PORTNAME=3D openjdk17 PORTVERSION=3D 17.0.1.12.1 +PORTREVISION=3D 1 CATEGORIES=3D java devel MASTER_SITES=3D LOCAL/glewis/bootstrap-openjdk17 \ LOCAL/pkubaj/bootstrap-openjdk17 @@ -40,6 +41,13 @@ PLIST_SUB+=3D NOT_I386=3D"@comment " PLIST_SUB+=3D NOT_I386=3D"" .endif =20 +.if ${ARCH:Maarch64*} +USES+=3D elfctl +ELF_FEATURES=3D +noaslr:bin/* + +pre-install: elfctl-post-build # Workaround NO_BUILD +.endif + do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR} =20 Van: Greg Lewis Datum: zondag, 8 mei 2022 06:14 Aan: Ronald Klop , "Mika=C3=ABl Urankar" CC: freebsd-java@freebsd.org, freebsd-arm@freebsd.org Onderwerp: Re: [package - 130arm64-default][java/openjdk17] Failed for open= jdk17-17.0.2+8.1 in configure >=20 > Is the suggestion to put that into the openjdk17 port Makefile? I'll loo= k for some documentation on this. >=20 > FWIW, the bootstrap just works on the AWS hardware I stand up for aarch64= . Although that is also where I built the bootstrap images. If someone ha= s some different hardware that would be preferable? >=20 > -- Greg >=20 > On 5/2/22 12:12 AM, Ronald Klop wrote: >> =20 >> Van: "Mika=C3=ABl Urankar" >> Datum: zondag, 1 mei 2022 17:56 >> Aan: Ronald Klop >> Onderwerp: Re: [package - 130arm64-default][java/openjdk17] Failed for o= penjdk17-17.0.2+8.1 in configure >>>=20 >>> On 30/04/2022 15:49, Ronald Klop wrote: >>> > Hi, >>> > >>> > Openjdk17 and openjdk13 are failing on 130arm64. >>> > >>> > This started in March, I don't see a bug report in Bugzilla about it. >>> > Openjdk17 is a LTS version so it would be nice to have that one fixed= . > Openjdk13 is deprecated so don't bother about that one but mentioning >= is because it might be related. >>> > >>> > Below the openjdk17 log. >>> > >>> > The build for main-arm64 had the same error: (IPv6:) > http://ampere2= .nyi.freebsd.org/data/main-arm64-default/p62850d28ca57_s651a887f4e/logs/err= ors/openjdk17-17.0.2+8.1.log >>> > >>> > Regards, >>> > Ronald. >>>=20 >>> Hi, >>>=20 >>> It's similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260= 187 >>> =20 >>>=20 >>>=20 >>>=20 >>=20 >>=20 >> Hi, >>=20 >> Thanks for sharing your memory of closed issues! >>=20 >> Would the port need something like this? >>=20 >> ELF_FEATURES=3D noaslr:bootstrap-openjdk17/bin/java >>=20 >> Maybe with a conditional on aarch64. >>=20 >> Regards, >> Ronald. >> >=20 ------=_Part_3_102238385.1652107685130 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

This patch works for me. I didn't test the builded openjdk17 yet. I guess that needs the same construction but we will see after building is finished.

Regards,
Ronald.


diff --git a/java/bootstrap-openjdk17/Makefile b/java/bootstrap-openjdk17/Makefile
index 9cb49ca170af..693da01a2395 100644
--- a/java/bootstrap-openjdk17/Makefile
+++ b/java/bootstrap-openjdk17/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=      openjdk17
 PORTVERSION=   17.0.1.12.1
+PORTREVISION=  1
 CATEGORIES=    java devel
 MASTER_SITES=  LOCAL/glewis/bootstrap-openjdk17 \
                LOCAL/pkubaj/bootstrap-openjdk17
@@ -40,6 +41,13 @@ PLIST_SUB+=  NOT_I386="@comment "
 PLIST_SUB+=    NOT_I386=""
 .endif
 
+.if ${ARCH:Maarch64*}
+USES+= elfctl
+ELF_FEATURES=  +noaslr:bin/*
+
+pre-install: elfctl-post-build # Workaround NO_BUILD
+.endif
+
 do-install:
        @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
        @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR}


 

Van: Greg Lewis <glewis@eyesbeyond.com>
Datum: zondag, 8 mei 2022 06:14
Aan: Ronald Klop <ronald-lists@klop.ws>, "Mikaël Urankar" <mikael@FreeBSD.org>
CC: freebsd-java@freebsd.org, freebsd-arm@freebsd.org
Onderwerp: Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure

Is the suggestion to put that into the openjdk17 port Makefile?  I'll look for some documentation on this.

FWIW, the bootstrap just works on the AWS hardware I stand up for aarch64.  Although that is also where I built the bootstrap images.  If someone has some different hardware that would be preferable?

-- Greg

On 5/2/22 12:12 AM, Ronald Klop wrote:
 

Van: "Mikaël Urankar" <mikael@FreeBSD.org>
Datum: zondag, 1 mei 2022 17:56
Aan: Ronald Klop <ronald-lists@klop.ws>
Onderwerp: Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure

On 30/04/2022 15:49, Ronald Klop wrote:
> Hi,
>
> Openjdk17 and openjdk13 are failing on 130arm64.
>
> This started in March, I don't see a bug report in Bugzilla about it.
> Openjdk17 is a LTS version so it would be nice to have that one fixed. > Openjdk13 is deprecated so don't bother about that one but mentioning > is because it might be related.
>
> Below the openjdk17 log.
>
> The build for main-arm64 had the same error: (IPv6:) > http://ampere2.nyi.freebsd.org/data/main-arm64-default/p62850d28ca57_s651a887f4e/logs/errors/openjdk17-17.0.2+8.1.log
>
> Regards,
> Ronald.

Hi,

It's similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260187
 



Hi,

Thanks for sharing your memory of closed issues!

Would the port need something like this?

ELF_FEATURES=       noaslr:bootstrap-openjdk17/bin/java

Maybe with a conditional on aarch64.

Regards,
Ronald.
 
------=_Part_3_102238385.1652107685130--