GNU bug report logs - #59331
sbcl currently fails to build on aarch64

Previous Next

Package: guix;

Reported by: Andrew Patterson <andrewpatt7 <at> gmail.com>

Date: Thu, 17 Nov 2022 05:20:02 UTC

Severity: normal

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59331 in the body.
You can then email your comments to 59331 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Thu, 17 Nov 2022 05:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Patterson <andrewpatt7 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 17 Nov 2022 05:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: sbcl currently fails to build on aarch64
Date: Thu, 17 Nov 2022 00:06:17 -0500
[Message part 1 (text/plain, inline)]
The genesis subdirectory of src/runtime doesn't exist, so the 
build fails.  Building on x86_64 successfully gets past the point 
where it fails on aarch64/arm64.

Log attached:
[Message part 2 (text/plain, attachment)]
[Message part 3 (text/plain, inline)]

-- 
Andrew Patterson

There are two types of people:
1. People who use 1-based indexing.
1. People who use 0-based indexing.
   --achenx, 
   <https://slatestarcodex.com/2018/10/31/open-thread-113-75/#comment-686074>

Information forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Thu, 17 Nov 2022 15:59:02 GMT) Full text and rfc822 format available.

Message #8 received at 59331 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Andrew Patterson <andrewpatt7 <at> gmail.com>
Cc: 59331 <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Thu, 17 Nov 2022 15:47:02 +0000
[Message part 1 (text/plain, inline)]
Andrew Patterson <andrewpatt7 <at> gmail.com> skribis:

> The genesis subdirectory of src/runtime doesn't exist, so the build fails.
> Building on x86_64 successfully gets past the point where it fails on
> aarch64/arm64.

From the build log, it looks like the "make-host-1" part of SBCL's build
exits prematurely because of the following error:

--8<---------------cut here---------------start------------->8---
;; Compiling file /tmp/guix-build-sbcl-2.2.10.drv-0/sbcl-2.2.10/src/compiler/arm64/vm.lisp ...
*** - IF: variable NULL-OFFSET has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of NULL-OFFSET.
STORE-VALUE    :R2      Input a new value for NULL-OFFSET.
RECOMPILE      :R3      Recompile file "src/compiler/arm64/vm.lisp"
RECOMPILE      :R4      Recompile
SKIP           :R5      skip (MAYBE-WITH-COMPILATION-UNIT # # ...)
RETRY          :R6      retry (MAYBE-WITH-COMPILATION-UNIT # # ...)
STOP           :R7      stop loading file /tmp/guix-build-sbcl-2.2.10.drv-0/sbcl-2.2.10/make-host-1.lisp
ABORT-BUILD    :R8      Abort building SBCL.
ABORT          :R9      Abort main loop
--8<---------------cut here---------------end--------------->8---

Have you asked upstream if they know what could cause this error?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Thu, 17 Nov 2022 20:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 59331 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 59331 <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Thu, 17 Nov 2022 14:57:59 -0500
On Thu, 2022-11-17 at 15:47GMT, Guillaume Le Vaillant 
<glv <at> posteo.net> wrote:
> From the build log, it looks like the "make-host-1" part of 
> SBCL's build
> exits prematurely because of the following error:
>
> [...NULL-OFFSET undefined...]
>
> Have you asked upstream if they know what could cause this 
> error?

I'll do that and report back.

-- 
Andrew Patterson




Information forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Fri, 18 Nov 2022 19:43:01 GMT) Full text and rfc822 format available.

Message #14 received at 59331 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 59331 <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Fri, 18 Nov 2022 14:37:16 -0500
[Message part 1 (text/plain, inline)]
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.
[0001-gnu-sbcl-Fix-build-on-aarch64.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Andrew Patterson

Information forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Sat, 19 Nov 2022 05:12:02 GMT) Full text and rfc822 format available.

Message #17 received at 59331 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 59331 <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Sat, 19 Nov 2022 00:00:24 -0500
...or I could just be an idiot.  (I somehow thought that 
pre-inst-env would work without... actually compiling the changed 
guix repo, if the only changes were in a package definition, which 
is in retrospect dumb.)

The previously attached patch works.

Sorry for the confusion.

-- 
Andrew Patterson




Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Sat, 19 Nov 2022 12:07:02 GMT) Full text and rfc822 format available.

Notification sent to Andrew Patterson <andrewpatt7 <at> gmail.com>:
bug acknowledged by developer. (Sat, 19 Nov 2022 12:07:02 GMT) Full text and rfc822 format available.

Message #22 received at 59331-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Andrew Patterson <andrewpatt7 <at> gmail.com>
Cc: 59331-done <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Sat, 19 Nov 2022 12:04:24 +0000
[Message part 1 (text/plain, inline)]
I registered the new patch file in "gnu/local.mk" and pushed as
cc08d374b21f1326c2d70d5af84b56c0714a0885.
Thanks.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#59331; Package guix. (Sat, 19 Nov 2022 18:20:01 GMT) Full text and rfc822 format available.

Message #25 received at 59331-done <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 59331-done <at> debbugs.gnu.org
Subject: Re: bug#59331: sbcl currently fails to build on aarch64
Date: Sat, 19 Nov 2022 13:19:07 -0500
Thanks!

-- 
Andrew Patterson




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 18 Dec 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.