From nobody Mon May 09 20:52:58 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 2F5281ADE251; Mon, 9 May 2022 20:53:14 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kxtfx17Ghz4sR7; Mon, 9 May 2022 20:53:12 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=In-Reply-To:Message-ID:From:MIME-Version:Date:References:Subject:Cc :To:Content-Type:Sender:Reply-To: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=YkqGsN9JjDjy+aBDaq+wbN0ps6SrGwfeCjIwpw7ik2E=; b=dOLtwjxoc+7C7SZY0tbS8lwKCu Rb0tDEZfzitg+9gB8FzvuSZTGx6aRdfE/MP84h/C6Odyr11Nmg9pDeWHMIFSjAwNdrWeV+Ktc4yR/ mC1DMA0FUqOQq+6C9X3HWLF/c5Anw1VltNHm35Cn9g4BwTCphNb2ndyB6UDZKOPsS30I=; Content-Type: multipart/alternative; boundary=----------JvFftLeOXZmsY4i5u55a88 To: "Greg Lewis" , "Ronald Klop" Cc: =?iso-8859-15?Q?Mika=EBl_Urankar?= , freebsd-arm@freebsd.org, freebsd-java@freebsd.org Subject: Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure 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> <1525249842.4.1652107685143@mailrelay> Date: Mon, 09 May 2022 22:52:58 +0200 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 From: "Ronald Klop" Message-ID: In-Reply-To: <1525249842.4.1652107685143@mailrelay> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: 0bbd9ee05eb15d243ee94bf35138a91f X-Rspamd-Queue-Id: 4Kxtfx17Ghz4sR7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=dOLtwjxo; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain,multipart/related]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm,freebsd-java]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL] X-ThisMailContainsUnwantedMimeParts: N ------------JvFftLeOXZmsY4i5u55a88 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable On Mon, 09 May 2022 16:48:05 +0200, Ronald Klop = wrote: > 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. At least it helped the openjdk17 build get further than the configure = phase. It now errors somewhere during the build because the openjdk17 po= rt = seems to build and use some intermediate java binaries which exhibit the= = same error. I don't know how to run elfctl on these. Doesn't Java on AMD64 have the same issue? If not, what is the differenc= e = in ASLR handling of the kernel or of the java programs on AMD64 vs. ARM6= 4? Regards, Ronald. > > > 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=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 >+.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} > > > = > Van: Greg Lewis > Datum: zondag, 8 mei 2022 06:14 > Aan: Ronald Klop , "Mika=EBl Urankar" = > > 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=EBl Urankar" >>> Datum: zondag, 1 mei 2022 17:56 >>> Aan: Ronald Klop >>> Onderwerp: Re: [package - 130arm64-default][java/openjdk17] Failed f= or = >>> 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 >>>>on= e = >>>>> 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/>>>>p62850d= 28ca57_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=3D260187 >>>> >>> >>> >>> Hi, >>> >>> Thanks for sharing your memory of closed issues! >>> >>> Would the port need something like this? >>> >>> ELF_FEATURES=3D noaslr:bootstrap-openjdk17/bin/java >>> >>> Maybe with a conditional on aarch64. >>> >>> Regards, >>> Ronald. ------------JvFftLeOXZmsY4i5u55a88 Content-Type: multipart/related; boundary=----------JvFftLeOXZmsY4sSKi3Zc3 ------------JvFftLeOXZmsY4sSKi3Zc3 Content-Type: text/html; charset=iso-8859-15 Content-ID: Content-Transfer-Encoding: Quoted-Printable