emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63327: closed ([PATCH] gnu: openjdk9: Fix build on aarch64.)


From: GNU bug Tracking System
Subject: bug#63327: closed ([PATCH] gnu: openjdk9: Fix build on aarch64.)
Date: Wed, 26 Jul 2023 14:01:02 +0000

Your message dated Wed, 26 Jul 2023 16:00:40 +0200
with message-id <ZMEnCMsiRqn2jfx5@jurong>
and subject line Close
has caused the debbugs.gnu.org bug report #63327,
regarding [PATCH] gnu: openjdk9: Fix build on aarch64.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63327: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63327
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: openjdk9: Fix build on aarch64. Date: Sat, 6 May 2023 11:50:47 +0100
* 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




--- End Message ---
--- Begin Message --- Subject: Close Date: Wed, 26 Jul 2023 16:00:40 +0200
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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]