Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2022 16:48:05 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        =?UTF-8?Q?Mika=C3=ABl_Urankar?= <mikael@FreeBSD.org>, 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
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> <d857997b-3d92-9d70-bb65-212a2f37960f@klop.ws> <9f0d2c0b-2ef3-9a5f-3bf4-e3c4068947a4@FreeBSD.org> <1486531687.70.1651475552058@localhost> <01010180a1dfcd05-c3089932-de45-4a67-8910-3142a37ef4d6-000000@us-west-2.amazonses.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_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 <glewis@eyesbeyond.com>
Datum: zondag, 8 mei 2022 06:14
Aan: Ronald Klop <ronald-lists@klop.ws>, "Mika=C3=ABl Urankar" <mikael@Free=
BSD.org>
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" <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 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

<html><head></head><body>Hi,<br />
<br />
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.<br />
<br />
Regards,<br />
Ronald.<br />
<br />
<br />
diff --git a/java/bootstrap-openjdk17/Makefile b/java/bootstrap-openjdk17/Makefile<br />
index 9cb49ca170af..693da01a2395 100644<br />
--- a/java/bootstrap-openjdk17/Makefile<br />
+++ b/java/bootstrap-openjdk17/Makefile<br />
@@ -1,5 +1,6 @@<br />
&nbsp;PORTNAME=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openjdk17<br />
&nbsp;PORTVERSION=&nbsp;&nbsp; 17.0.1.12.1<br />
+PORTREVISION=&nbsp; 1<br />
&nbsp;CATEGORIES=&nbsp;&nbsp;&nbsp; java devel<br />
&nbsp;MASTER_SITES=&nbsp; LOCAL/glewis/bootstrap-openjdk17 \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOCAL/pkubaj/bootstrap-openjdk17<br />
@@ -40,6 +41,13 @@ PLIST_SUB+=&nbsp; NOT_I386=&quot;@comment &quot;<br />
&nbsp;PLIST_SUB+=&nbsp;&nbsp;&nbsp; NOT_I386=&quot;&quot;<br />
&nbsp;.endif<br />
&nbsp;<br />
+.if ${ARCH:Maarch64*}<br />
+USES+= elfctl<br />
+ELF_FEATURES=&nbsp; +noaslr:bin/*<br />
+<br />
+pre-install: elfctl-post-build # Workaround NO_BUILD<br />
+.endif<br />
+<br />
&nbsp;do-install:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @cd ${WRKSRC} &amp;&amp; ${COPYTREE_SHARE} . ${INSTALLDIR}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @cd ${WRKSRC} &amp;&amp; ${COPYTREE_BIN} bin ${INSTALLDIR}<br />
<br />
<br />
&nbsp;
<p><strong>Van:</strong> Greg Lewis &lt;glewis@eyesbeyond.com&gt;<br />
<strong>Datum:</strong> zondag, 8 mei 2022 06:14<br />
<strong>Aan:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;, &quot;Mika&euml;l Urankar&quot; &lt;mikael@FreeBSD.org&gt;<br />
<strong>CC:</strong> freebsd-java@freebsd.org, freebsd-arm@freebsd.org<br />
<strong>Onderwerp:</strong> Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P">
<p>Is the suggestion to put that into the openjdk17 port Makefile?&nbsp; I'll look for some documentation on this.</p>

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

<p>-- Greg</p>

<div class="moz-cite-prefix">On 5/2/22 12:12 AM, Ronald Klop wrote:</div>

<blockquote>&nbsp;
<p><strong>Van:</strong> &quot;Mika&euml;l Urankar&quot; <a class="moz-txt-link-rfc2396E" href="mailto:mikael@FreeBSD.org">&lt;mikael@FreeBSD.org&gt;</a><br />
<strong>Datum:</strong> zondag, 1 mei 2022 17:56<br />
<strong>Aan:</strong> Ronald Klop <a class="moz-txt-link-rfc2396E" href="mailto:ronald-lists@klop.ws">&lt;ronald-lists@klop.ws&gt;</a><br />
<strong>Onderwerp:</strong> Re: [package - 130arm64-default][java/openjdk17] Failed for openjdk17-17.0.2+8.1 in configure</p>

<blockquote style="padding-right: 0px; padding-left: 5px;
        margin-left: 5px; border-left: #000000 2px solid; margin-right:
        0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">On 30/04/2022 15:49, Ronald Klop wrote:<br />
&gt; Hi,<br />
&gt;<br />
&gt; Openjdk17 and openjdk13 are failing on 130arm64.<br />
&gt;<br />
&gt; This started in March, I don't see a bug report in Bugzilla about it.<br />
&gt; Openjdk17 is a LTS version so it would be nice to have that one fixed. &gt; Openjdk13 is deprecated so don't bother about that one but mentioning &gt; is because it might be related.<br />
&gt;<br />
&gt; Below the openjdk17 log.<br />
&gt;<br />
&gt; The build for main-arm64 had the same error: (IPv6:) &gt; <a class="moz-txt-link-freetext" href="http://ampere2.nyi.freebsd.org/data/main-arm64-default/p62850d28ca57_s651a887f4e/logs/errors/openjdk17-17.0.2+8.1.log">http://ampere2.nyi.freebsd.org/data/main-arm64-default/p62850d28ca57_s651a887f4e/logs/errors/openjdk17-17.0.2+8.1.log</a><br />
&gt;<br />
&gt; Regards,<br />
&gt; Ronald.<br />
<br />
Hi,<br />
<br />
It's similar to <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260187">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260187</a><br />
&nbsp;</div>

<hr /></div>
</blockquote>
<br />
<br />
Hi,<br />
<br />
Thanks for sharing your memory of closed issues!<br />
<br />
Would the port need something like this?<br />
<br />
ELF_FEATURES=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; noaslr:bootstrap-openjdk17/bin/java<br />
<br />
Maybe with a conditional on aarch64.<br />
<br />
Regards,<br />
Ronald.<br />
&nbsp;</blockquote>
</div>
</div>
</div>
</blockquote></body></html>
------=_Part_3_102238385.1652107685130--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1525249842.4.1652107685143>