Date: Mon, 09 May 2022 22:52:58 +0200 From: "Ronald Klop" <ronald-lists@klop.ws> To: "Greg Lewis" <glewis@eyesbeyond.com>, "Ronald Klop" <ronald-lists@klop.ws> Cc: =?iso-8859-15?Q?Mika=EBl_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: <op.1lw5mooskndu52@joepie> In-Reply-To: <1525249842.4.1652107685143@mailrelay> 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> <1525249842.4.1652107685143@mailrelay>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Mon, 09 May 2022 16:48:05 +0200, Ronald Klop <ronald-lists@klop.ws>
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 port
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 difference
in ASLR handling of the kernel or of the java programs on AMD64 vs. ARM64?
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= 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.
[-- Attachment #2 --]
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.1lw5mooskndu52>
