From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MIZBDVzgd2N+KAAAbAwnHQ (envelope-from ) for ; Fri, 18 Nov 2022 20:43:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ECZEDVzgd2PCHQAA9RJhRA (envelope-from ) for ; Fri, 18 Nov 2022 20:43:24 +0100 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 D7A72AF24 for ; Fri, 18 Nov 2022 20:43:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow7GR-0001ZS-MO; Fri, 18 Nov 2022 14:43:03 -0500 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 1ow7GQ-0001Yz-7z for bug-guix@gnu.org; Fri, 18 Nov 2022 14:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ow7GP-0003iZ-Vi for bug-guix@gnu.org; Fri, 18 Nov 2022 14:43:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow7GP-0005Zv-RB for bug-guix@gnu.org; Fri, 18 Nov 2022 14:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59331: sbcl currently fails to build on aarch64 Resent-From: Andrew Patterson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 18 Nov 2022 19:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59331 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant Cc: 59331@debbugs.gnu.org Received: via spool by 59331-submit@debbugs.gnu.org id=B59331.166880056221418 (code B ref 59331); Fri, 18 Nov 2022 19:43:01 +0000 Received: (at 59331) by debbugs.gnu.org; 18 Nov 2022 19:42:42 +0000 Received: from localhost ([127.0.0.1]:38300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow7G5-0005ZN-KR for submit@debbugs.gnu.org; Fri, 18 Nov 2022 14:42:41 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:37610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow7G1-0005Z7-Mc for 59331@debbugs.gnu.org; Fri, 18 Nov 2022 14:42:40 -0500 Received: by mail-qv1-f53.google.com with SMTP id e15so4038279qvo.4 for <59331@debbugs.gnu.org>; Fri, 18 Nov 2022 11:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=fzw7SbJu6CaxD+ZLc6OnQxnvGu5AB5yZEIBcITEGas4=; b=p4yyp+FrkWObbR82IVCOXc7BUY2kISSt6OQ0RGt3hY24WOGtzRm5J5jG3cFuRBrD4u ywfxcRJLZ6OEDnxAOMDu5u/c/TFUWnmXom86QyN+IoZs+bD4Lhp65hhlXdeQ5qHJe2KO UcNhr7kaWzsbeIGP28D+6Fne+ae+IyC3dSYm3rhucFxeGAX6y8PWViD/RxmuW7DMgVS1 I5OslxlExegD/Xq0dro3T4Mp0jH4e7oMLnwcNyTI55J8YjW0GhTqneU/cjUV8soOsLfQ 8XoYdxPR4ZdeaIRPiz5YHmZg+OjVwErRFadaK4jAXtscMtQm2CGh65kufLBH7wQf3pVx l4+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fzw7SbJu6CaxD+ZLc6OnQxnvGu5AB5yZEIBcITEGas4=; b=W1notZprq4FL/0nKQt0DHWPAekcRDyUiLaP47Ctw13kUwy2fs/ntUC2FN1QCzj1V13 yvGl5y50RG+TIajNRk28bO1p4ehOoni+l94fYWLGMXR8zGaBNrerUIaf5dA91CiggBI9 MTGYCm2qT8i1lpOUTmYn08weyj1oTCimXsBtnW7s2ZVvR5e86uZ5QkaRGMuDpcL5yfu8 4VSY+hn5yIzSnRQkNg1KUzEM6EXVoZ+E2dw2bhUi3XRqtR8WeJJ2erKovOoztuVjuQfH F7oy0Vff/bmD7S5yi1ORCZJNO+OomhMNNPrrbcGn4EE0nNxZo+8fyEWg90ouEg5Mf7DA DTZg== X-Gm-Message-State: ANoB5pkI4Mm8qhJbLooq5iEUXwuGaDmjF43nZ0bW9ypKJcMHcr615ujg GnHfIyQuB7boS7NF5L87VfSCiSdzVTk= X-Google-Smtp-Source: AA0mqf7wJWHd8OwceWzN1kcjUzo4Lc/aRcRPkLg2MdVev4r+W8gXgHQcto+TJBmByt1W87gPATAJJQ== X-Received: by 2002:a05:6214:1103:b0:4b3:e774:10f2 with SMTP id e3-20020a056214110300b004b3e77410f2mr8014782qvs.23.1668800551687; Fri, 18 Nov 2022 11:42:31 -0800 (PST) Received: from river-of-stars ([204.111.132.134]) by smtp.gmail.com with ESMTPSA id ed13-20020a05620a490d00b006eeae49537bsm2826980qkb.98.2022.11.18.11.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 11:42:31 -0800 (PST) References: <8735aijgyb.fsf@gmail.com> <87cz9lh8u6.fsf@kitej> <87y1s9ic5y.fsf@gmail.com> User-agent: mu4e 1.8.11; emacs 29.0.50 From: Andrew Patterson Date: Fri, 18 Nov 2022 14:37:16 -0500 In-reply-to: <87y1s9ic5y.fsf@gmail.com> Message-ID: <87cz9khwwp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668800604; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=fzw7SbJu6CaxD+ZLc6OnQxnvGu5AB5yZEIBcITEGas4=; b=k4HmShh58Rr7uE4fDEif5rHjZ/RllBVNlo/h5GiOqMFpv0pFrwwolutkcOAt6Tek2W9BCv gC1VgU5dIa1XARorDfWjuoJrfj75RmQjdCLqoNZO+33d9RHKldCZ0I5Q6yQDlwlFw1x9c1 Y0lM0A6MCTIUoNrvjTXnnWFwaFKAI+Wj1Fk28Ybc5NMf0MG4JDrS4xT3DaTLni11zVuMgH lzocXEGpi4bakmA7PjWobBkzzW4jtb8kKt+3lYWNMELirYJNYtMnmhGrKCqWnQU5cXWxEP Z0YmwoVRFvgGOeQTvz4DHDLHT91Wk9w3Z+b+U/Vg+QAsUl/EI8mYCeSxjUskDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668800604; a=rsa-sha256; cv=none; b=azxq7nzWz7o9FJ3dR0xeByir/yWqky6Eat6WVsVi5StSzPGuRDl5AznWv+GMXgl/EFEUa/ 4cR//Bl5YeQ4yfeEaqzWwoTUxYGlBvoB8I5AhxGunvPDQBHVkQAys+3rXzT5UyCZAaASOM bnLHDjrbfZgibR9DQWXrpeuGECDxLRhoL3YugEt3NCuN0EX4POisxPZCYZ0jH4JCva13GN p+yKrwLJtZsPZ0IqOfiGkQ6RlllZRjzukXf3ztOfQ/QfwHLVBnTy+xpSIDLDn8Owop3N5K yrw1bFkhsPZz96Jaiwu67sFYhrf5ceBITRiuRkDQ3WBrMZXY6A7UZ853jkVCvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p4yyp+Fr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p4yyp+Fr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D7A72AF24 X-Spam-Score: 6.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9grxvhSav5BI --=-=-= Content-Type: text/plain; format=flowed I contacted upstream (https://bugs.launchpad.net/sbcl/+bug/1996942); they've committed a fix and sent me a patch. I tried to make a patch to guix that would fix it, but the patch apparently isn't being applied just by adding it to the patches field of the origin and I'm not sure why. My current effort is attached. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-sbcl-Fix-build-on-aarch64.patch Content-Description: Currently-failing patch >From 29d58ab55a3c6d2e626274c6a9f2ab8cfcc57d06 Mon Sep 17 00:00:00 2001 From: Andrew Patterson Date: Thu, 17 Nov 2022 21:53:01 -0500 Subject: [PATCH] gnu: sbcl: Fix build on aarch64 sbcl 2.2.10 currently doesn't build on aarch64. Upstream has fixed the issue (https://bugs.launchpad.net/sbcl/+bug/1996942), but this patch is needed until the next release. --- gnu/packages/lisp.scm | 1 + ...ix-build-on-arm64-with-clisp-as-host.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 gnu/packages/patches/sbcl-fix-build-on-arm64-with-clisp-as-host.patch diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 80018f8e1a..1b6b08d72f 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -429,6 +429,7 @@ (define-public sbcl (method url-fetch) (uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-" version "-source.tar.bz2")) + (patches (search-patches "sbcl-fix-build-on-arm64-with-clisp-as-host.patch")) (sha256 (base32 "0cq8x4svkawirxq5s5gs4qxkl23m4q5p722a2kpss8qjfslc7hwc")))) (build-system gnu-build-system) diff --git a/gnu/packages/patches/sbcl-fix-build-on-arm64-with-clisp-as-host.patch b/gnu/packages/patches/sbcl-fix-build-on-arm64-with-clisp-as-host.patch new file mode 100644 index 0000000000..4fe3ed16db --- /dev/null +++ b/gnu/packages/patches/sbcl-fix-build-on-arm64-with-clisp-as-host.patch @@ -0,0 +1,27 @@ +From 944f53fb00794f4bc96700dd14df1e88b6cd5623 Mon Sep 17 00:00:00 2001 +From: Christophe Rhodes +Date: Thu, 17 Nov 2022 22:29:26 +0000 +Subject: [PATCH] Fix build on arm64 with clisp as host + +Make sure the offset constants are defined while compiling vm.lisp. +--- + src/compiler/arm64/vm.lisp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/compiler/arm64/vm.lisp b/src/compiler/arm64/vm.lisp +index ae6d7c7fa..2a151be58 100644 +--- a/src/compiler/arm64/vm.lisp ++++ b/src/compiler/arm64/vm.lisp +@@ -23,7 +23,8 @@ + (macrolet ((defreg (name offset) + (let ((offset-sym (symbolicate name "-OFFSET"))) + `(progn +- (defconstant ,offset-sym ,offset) ++ (eval-when (:compile-toplevel :load-toplevel :execute) ++ (defconstant ,offset-sym ,offset)) + (setf (svref *register-names* ,offset-sym) ,(symbol-name name))))) + + (defregset (name &rest regs) +-- +2.30.2 + -- 2.38.1 --=-=-= Content-Type: text/plain; format=flowed -- Andrew Patterson --=-=-=--