From unknown Sat Aug 16 15:57:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63327 <63327@debbugs.gnu.org> To: bug#63327 <63327@debbugs.gnu.org> Subject: Status: [PATCH] gnu: openjdk9: Fix build on aarch64. Reply-To: bug#63327 <63327@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:57:13 +0000 retitle 63327 [PATCH] gnu: openjdk9: Fix build on aarch64. reassign 63327 guix-patches submitter 63327 Christopher Baines severity 63327 normal tag 63327 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 06:50:53 2023 Received: (at submit) by debbugs.gnu.org; 6 May 2023 10:50:53 +0000 Received: from localhost ([127.0.0.1]:59515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvFV7-0001Lv-Kb for submit@debbugs.gnu.org; Sat, 06 May 2023 06:50:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:34166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvFV5-0001Ld-LR for submit@debbugs.gnu.org; Sat, 06 May 2023 06:50:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvFV5-0006mw-A0 for guix-patches@gnu.org; Sat, 06 May 2023 06:50:51 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvFV3-0004BO-BM for guix-patches@gnu.org; Sat, 06 May 2023 06:50:50 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id AEA0D27BBE2 for ; Sat, 6 May 2023 11:50:47 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 2fefaa5c for ; Sat, 6 May 2023 10:50:47 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] gnu: openjdk9: Fix build on aarch64. Date: Sat, 6 May 2023 11:50:47 +0100 Message-Id: X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/java.scm (openjdk9)[arguments]: Add 'patch-for-aarch64 phase to remove duplicate line in interp_masm_aarch64.hpp. --- gnu/packages/java.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 067284017c..166417a73d 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -884,6 +884,18 @@ (define-public openjdk9 #:phases (modify-phases %standard-phases + ,@(if (target-aarch64?) + `((add-after 'unpack 'patch-for-aarch64 + (lambda _ + (substitute* "hotspot/src/cpu/aarch64/vm/interp_masm_aarch64.hpp" + ;; This line is duplicated, so remove both occurrences, + ;; then add back one occurrence by substituting a + ;; comment that occurs once. + (("using MacroAssembler::call_VM_leaf_base;") "") + (("Interpreter specific version of call_VM_base") + "Interpreter specific version of call_VM_base + using MacroAssembler::call_VM_leaf_base;"))))) + '()) (add-after 'patch-source-shebangs 'fix-java-shebangs (lambda _ ;; This file was "fixed" by patch-source-shebangs, but it requires base-commit: 64086a4fa449a9f6d2f835fcdf5498222b309e3a -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Mon May 08 22:45:06 2023 Received: (at 63327) by debbugs.gnu.org; 9 May 2023 02:45:06 +0000 Received: from localhost ([127.0.0.1]:42066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwDLe-0000rT-9u for submit@debbugs.gnu.org; Mon, 08 May 2023 22:45:06 -0400 Received: from forward102a.mail.yandex.net ([178.154.239.85]:43514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwDLb-0000rE-HJ for 63327@debbugs.gnu.org; Mon, 08 May 2023 22:45:05 -0400 Received: from mail-nwsmtp-mxback-production-main-50.vla.yp-c.yandex.net (mail-nwsmtp-mxback-production-main-50.vla.yp-c.yandex.net [IPv6:2a02:6b8:c2a:155:0:640:4b12:0]) by forward102a.mail.yandex.net (Yandex) with ESMTP id 744B342B26 for <63327@debbugs.gnu.org>; Tue, 9 May 2023 05:45:01 +0300 (MSK) Received: from mail.yandex.ru (2a02:6b8:c0f:8b:0:640:1bd:0 [2a02:6b8:c0f:8b:0:640:1bd:0]) by mail-nwsmtp-mxback-production-main-50.vla.yp-c.yandex.net (mxback/Yandex) with HTTP id piJotcAW78c0-kbvlsgk5; Tue, 09 May 2023 05:45:01 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1683600301; bh=ybdbN/5/JJIVaHTwOziAP+JUuYqSLVm+Ti41JYM98YM=; h=Message-Id:Date:Subject:To:From; b=SKK5mGu63Jt+oaYuttay/ESGhrFjwOkwRT6vCDX6XHWatJ9Dl1fx0OdZdWUyW/9O8 J5RxNH4wGruQTOjhOSRGgCSLZyC6gert8t9zjmLPp+t4WhbQ/KesMEnuNzXMeU+WdI SQnWMCAWMo57M+Eq2H3qrzDHeQDQFMtsjHVAjNJ8= Authentication-Results: mail-nwsmtp-mxback-production-main-50.vla.yp-c.yandex.net; dkim=pass header.i=@ya.ru Received: by oksgrhdoy7hswshs.vla.yp-c.yandex.net with HTTP; Tue, 09 May 2023 05:45:01 +0300 From: burning2007@ya.ru Envelope-From: burning2007@yandex.ru To: "63327@debbugs.gnu.org" <63327@debbugs.gnu.org> Subject: [PATCH] gnu: openjdk9: Fix build on aarch64. MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 09 May 2023 05:45:01 +0300 Message-Id: <263341683599922@mail.yandex.ru> Content-Transfer-Encoding: 7bit Content-Type: text/html X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 63327 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/)
Hello!

I've encountered this issue and tested similar solution (patch). It builds successfully. It even allows openjdk@10 to build as well - mine has same build errors as for openjdk@9.

But, on the other hand, it is not sufficient for building jdk@9 itself - please, take a look at https://issues.guix.gnu.org/issue/63069.

--
Best regards,

Anthony
From debbugs-submit-bounces@debbugs.gnu.org Mon May 08 23:11:30 2023 Received: (at 63327) by debbugs.gnu.org; 9 May 2023 03:11:30 +0000 Received: from localhost ([127.0.0.1]:42108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwDlC-0001pJ-5a for submit@debbugs.gnu.org; Mon, 08 May 2023 23:11:30 -0400 Received: from forward103c.mail.yandex.net ([178.154.239.214]:55696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwDl9-0001p8-H5 for 63327@debbugs.gnu.org; Mon, 08 May 2023 23:11:28 -0400 Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:9396:0:640:dd2a:0]) by forward103c.mail.yandex.net (Yandex) with ESMTP id 1A05F6003B for <63327@debbugs.gnu.org>; Tue, 9 May 2023 06:11:25 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id LBKcqGEDgW20-hJ80FeY2; Tue, 09 May 2023 06:11:24 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1683601884; bh=0PdwvjVdnMg7/chgVuBmoLe4JqC+K9XgB4n/NS+avtY=; h=Message-Id:Date:Cc:Subject:To:From; b=juQDTK9DVkWO/XOAdVnK9TMMeCtbFJ+yVrPPnmR/uWopGgQaoOJzzjx1s/jlbljhG Zap+aD9JL31B+7hY7OgA7Pfj0kLHzEyZw4bsOglSKRXrInu1ARGKhO0tZH18GSJULI WN8rM7wcpS38Tz2qMWIEezM65MFBXZFUNkWGZXn0= Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net; dkim=pass header.i=@ya.ru From: Anthony To: 63327@debbugs.gnu.org Subject: [PATCH] gnu: openjdk9: Fix build on aarch64. Date: Tue, 9 May 2023 07:10:40 +0400 Message-Id: <20230509031039.1060838-1-burning2007@ya.ru> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Envelope-From: burning2007@yandex.ru Content-Transfer-Encoding: 8bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 63327 Cc: burning2007@ya.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) From: burning2007@ya.ru Hello! I've encountered this issue and tested similar solution (patch). It builds successfully. It even allows openjdk@10 to build as well - mine has same build errors as for openjdk@9. But, on the other hand, it is not sufficient for building jdk@9 itself - please, take a look at https://issues.guix.gnu.org/issue/63069. P. S. Sorry for attachment in previous message - my email provider does not even have a plain text option in UI. -- Best regards, Anthony From debbugs-submit-bounces@debbugs.gnu.org Mon May 22 10:50:26 2023 Received: (at 63327) by debbugs.gnu.org; 22 May 2023 14:50:27 +0000 Received: from localhost ([127.0.0.1]:35681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q16ri-0003Xr-LG for submit@debbugs.gnu.org; Mon, 22 May 2023 10:50:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q16rf-0003XW-Ka for 63327@debbugs.gnu.org; Mon, 22 May 2023 10:50:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q16ra-0000KO-DU; Mon, 22 May 2023 10:50:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=CI3GCnE3lqx4J19py/TTakGmY1PJ0E9nEcgbJ8AOcAE=; b=O8qbXyZbacFlrovehW6W spBbqLsQxzqsyuNDGjumWeoXfZY2shtGVeTTZ/GM+/lwpiBCREylxoRq7UfvMoFlqFOvqIUlbIP9R 1VwUQNv0aevCAkkaIX0l2XtAmyv9TMXQVRvCFlBJuCAVwIXkkZOnChrlT8KSBuyY56uShw+YLHyex TFh5VaB/k2BoO8aVIPuS88ZVgD/6unt80xZOcarU9shncSQzVsuQFNrVKm5p7hHhtOkwDMkb9+OT/ k1QRemD67wnVqNo15DsAHNs+sG3U9uvZzGNm/3z4oYOw0f3j5oVibkoK+FzAUaTpM2qX8gVV1WXcK +WUaVZOPsvzeuA==; Received: from [193.50.110.247] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q16rO-0001Bq-2b; Mon, 22 May 2023 10:50:18 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: bug#63327: [PATCH] gnu: openjdk9: Fix build on aarch64. References: Date: Mon, 22 May 2023 16:50:04 +0200 In-Reply-To: (Christopher Baines's message of "Sat, 6 May 2023 11:50:47 +0100") Message-ID: <874jo4xvxf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63327 Cc: 63327@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Christopher Baines skribis: > * gnu/packages/java.scm (openjdk9)[arguments]: Add 'patch-for-aarch64 pha= se to > remove duplicate line in interp_masm_aarch64.hpp. I=E2=80=99d say go for it if it fixes the problem. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 26 10:00:51 2023 Received: (at 63327-done) by debbugs.gnu.org; 26 Jul 2023 14:00:51 +0000 Received: from localhost ([127.0.0.1]:49687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOf4M-0001Du-S2 for submit@debbugs.gnu.org; Wed, 26 Jul 2023 10:00:51 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:39912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOf4K-0001Dg-RE for 63327-done@debbugs.gnu.org; Wed, 26 Jul 2023 10:00:49 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2A01C1D3D; Wed, 26 Jul 2023 16:00:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C_u338cFhAbp; Wed, 26 Jul 2023 16:00:41 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9C8D953; Wed, 26 Jul 2023 16:00:41 +0200 (CEST) Date: Wed, 26 Jul 2023 16:00:40 +0200 From: Andreas Enge To: 63327-done@debbugs.gnu.org Subject: Close Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 63327-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I just ran the patch, and can confirm that it enables the build of openjdk@9 on aarch64. So I have pushed it and am closing this bug. More discussion at https://issues.guix.gnu.org/issue/63069 . Andreas From unknown Sat Aug 16 15:57:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Aug 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator