From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ayYNIDA31V5MOgAA0tVLHw (envelope-from ) for ; Mon, 01 Jun 2020 17:13:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +HJMGzA31V4uGAAAbx9fmQ (envelope-from ) for ; Mon, 01 Jun 2020 17:13:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1AEC39404CE for ; Mon, 1 Jun 2020 17:13:20 +0000 (UTC) Received: from localhost ([::1]:51394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfnzz-00075r-05 for larch@yhetil.org; Mon, 01 Jun 2020 13:13:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfnzk-00075k-2m for guix-patches@gnu.org; Mon, 01 Jun 2020 13:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfnzi-0006Pr-47 for guix-patches@gnu.org; Mon, 01 Jun 2020 13:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jfnzh-0002AT-Vl for guix-patches@gnu.org; Mon, 01 Jun 2020 13:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41648] [PATCH 0/2] JamVM: Add aarch64-linux support Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Jun 2020 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41648 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41648@debbugs.gnu.org Cc: Simon South X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15910315558297 (code B ref -1); Mon, 01 Jun 2020 17:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jun 2020 17:12:35 +0000 Received: from localhost ([127.0.0.1]:36897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfnzH-00029l-Bj for submit@debbugs.gnu.org; Mon, 01 Jun 2020 13:12:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:53396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfnzG-00029e-FW for submit@debbugs.gnu.org; Mon, 01 Jun 2020 13:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfnzG-0006vY-AK for guix-patches@gnu.org; Mon, 01 Jun 2020 13:12:34 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:44386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfnzF-0006Lg-4s for guix-patches@gnu.org; Mon, 01 Jun 2020 13:12:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 764EAC0597; Mon, 1 Jun 2020 17:12:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5j0mNmmcloHd; Mon, 1 Jun 2020 17:12:30 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 036C7C05B8; Mon, 1 Jun 2020 17:12:24 +0000 (UTC) From: Simon South Date: Mon, 1 Jun 2020 13:12:11 -0400 Message-Id: <20200601171211.7272-1-simon@simonsouth.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/01 13:12:30 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L3=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: HE9ypSM72MbZ These patches add aarch64-linux support to the two versions of JamVM, a compact Java virtual machine, used during Guix's Java-bootstrap process (see the comment near the top of gnu/packages/java.scm). With them applied the process gets as far as starting to build the first IcedTea package (version 1.13.13), though this eventually fails with an error from gcc while compiling the Hotspot JVM (unrelated to my changes as far as I can tell). I'm still working on this issue. Note I have found it unnecessary to use older versions of gcc and glibc when building JamVM 1.5.1 on AArch64; the CPU's instruction cache is flushed explicitly on this platform so it shouldn't be possible for the "invalid instruction" situation mentioned in a comment to develop, and I haven't seen it myself. The "opcode guard" patch is necessary for floating-point operations to work correctly when JamVM is built with stack-caching enabled, as it is by default on AArch64 and elsewhere. Finally, I've renamed the existing "jamvm-arm.patch" file to "jamvm-1.5.1-arm.patch" for clarity as there are now separate patchsets for each JamVM release. -- Simon South simon@simonsouth.net Simon South (2): gnu: jamvm-1-bootstrap: Add aarch64-linux support. gnu: jamvm: Add aarch64-linux support. gnu/packages/java.scm | 41 +- .../patches/jamvm-1.5.1-aarch64-support.patch | 572 ++++++++++++++++ ...{jamvm-arm.patch => jamvm-1.5.1-arm.patch} | 0 .../patches/jamvm-2.0.0-aarch64-support.patch | 645 ++++++++++++++++++ .../patches/jamvm-2.0.0-opcode-guard.patch | 35 + 5 files changed, 1283 insertions(+), 10 deletions(-) create mode 100644 gnu/packages/patches/jamvm-1.5.1-aarch64-support.patch rename gnu/packages/patches/{jamvm-arm.patch => jamvm-1.5.1-arm.patch} (100%) create mode 100644 gnu/packages/patches/jamvm-2.0.0-aarch64-support.patch create mode 100644 gnu/packages/patches/jamvm-2.0.0-opcode-guard.patch -- 2.26.2