bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on aarch64)

2023-02-20 Thread Andrew Patterson



Fixed as of 042b92edb20648c030dcbaf59acd176731550b70

--
Andrew Patterson





bug#59987: Guix build of guix package fails due to some graph tests failing

2023-01-27 Thread Andrew Patterson
I'm also in favor of closing.  (I'm pretty sure I've garbage 
collected the closest generation to it, anyways).


Thanks for the help!
--
Andrew Patterson





bug#59987: Guix build of guix package fails due to some graph tests failing

2023-01-26 Thread Andrew Patterson
guix has been building fine recently, so either it's something 
unpredictable or it was inadvertently fixed at some point.  Feel 
free to close the bug report unless you want to hunt down what 
actually happened.


Are you running plain “make check” or do you pass an argument as 
“make

check -j 123”?
The build error was from `guix build guix`, so make check was 
running with whatever that calls it with.  In case it's relevant, 
the build error was on a pinebook pro, so 6-core aarch64.


Otherwise, the issue hasn't resurfaced and it's been a month, so 
the original report and attached build log are gonna be about as 
good a source of information as what I remember.


Thanks,
--
Andrew Patterson





bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on aarch64)

2023-01-16 Thread Andrew Patterson
I don't know how to fix this on guix's end, but I guess I now 
need to

complain to upstream and hope they can work out a fix.


I've submitted an issue to upstream: 
https://github.com/openbios/openbios/issues/11


--
Andrew Patterson





bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on aarch64)

2023-01-16 Thread Andrew Patterson
From altogether too much searching around with gcc -M, it looks 
like the problem is that openbios has in its include directory an 
asm/types.h.  Because things added to the header search path by -I 
shadow system headers and are global, this replaces the 
 that  relies on, causing the 
error.  On aarch64,  (which I think  
includes?) imports , so the whole thing fails to 
build.  On x86_64,  does not import 
, so this whole problem never occurs.


I don't know how to fix this on guix's end, but I guess I now need 
to complain to upstream and hope they can work out a fix.


(I have a newfound hatred of #include.)
--
Andrew Patterson





bug#60719: openbios-qemu-ppc fails to build on aarch64

2023-01-10 Thread Andrew Patterson
openbios-qemu-ppc currently fails to compile on aarch64, with 
build errors about missing __u32 and __u16 types somehow existing 
in a linux header file that includes the header file that defines 
those types.  (Log attached.)
starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to 
`/gnu/store/nir2qmzp5d2pxn12hhxamgbdkbvkwnwn-gcc-cross-sans-libc-powerpc-linux-gnu-10.3.0/bin:/gnu/store/bzc6fww7zzfm6zdqnjfyrd7b5jjqphvs-binutils-cross-powerpc-linux-gnu-2.37/bin:/gnu/store/kz4gm14jc8m4qwzchr2ffkbgqg45xsm4-libxslt-1.1.34/bin:/gnu/store/yibb0qm8ba92cm0jkyl0a54wv6dvncfr-which-2.21/bin:/gnu/store/vffvncn7d149shc7c2znx2ia7mg30d8j-tar-1.34/bin:/gnu/store/bdwsnfq7y20cwzxd5xdipz2lqndcniv2-gzip-1.10/bin:/gnu/store/hq8w61vwbjgr7kkwdfvcr9wgdf7i7pyf-bzip2-1.0.8/bin:/gnu/store/3bmnfqz1a46ddl89iqcargdf2ximijxs-xz-5.2.5/bin:/gnu/store/q4g6nw26jlg61018xhjn575nzc975wh3-file-5.39/bin:/gnu/store/gzl6fga809pi6x0mncgh4hl97xcrai2v-diffutils-3.8/bin:/gnu/store/d8nk495685457rpmdf6a46278zijc4mf-patch-2.7.6/bin:/gnu/store/5sr7igkcclqyz01g0q3f2gsc5y5lg7am-findutils-4.8.0/bin:/gnu/store/z42b5grcygvc8rxp3638qhkjv1410b4d-gawk-5.1.0/bin:/gnu/store/axhn2x0d98gj3fmrlc06d5j1vn715ray-sed-4.8/bin:/gnu/store/f4kp7yaiqp9imxf2r9lm3kzs35cwfsc8-grep-3.6/bin:/gnu/store/kvpvk5wh70wdbjnr83hh85rg22ysxm9h-coreutils-8.32/bin:/gnu/store/74aw9c2yfpgbwac78c5jddhk2lf03958-make-4.3/bin:/gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin:/gnu/store/1khybib025zzd3hjqkaw8bf909ccbq2b-ld-wrapper-0/bin:/gnu/store/0cwwi9fdd1xx0pn0xxk4xya6wdhliyds-binutils-2.37/bin:/gnu/store/dbcbcaxq20kbkhh2mr8k98qfnymq22kp-gcc-10.3.0/bin:/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/bin:/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/sbin'
environment variable `BASH_LOADABLES_PATH' unset
environment variable `C_INCLUDE_PATH' set to 
`/gnu/store/bzc6fww7zzfm6zdqnjfyrd7b5jjqphvs-binutils-cross-powerpc-linux-gnu-2.37/include:/gnu/store/kz4gm14jc8m4qwzchr2ffkbgqg45xsm4-libxslt-1.1.34/include:/gnu/store/hq8w61vwbjgr7kkwdfvcr9wgdf7i7pyf-bzip2-1.0.8/include:/gnu/store/3bmnfqz1a46ddl89iqcargdf2ximijxs-xz-5.2.5/include:/gnu/store/q4g6nw26jlg61018xhjn575nzc975wh3-file-5.39/include:/gnu/store/z42b5grcygvc8rxp3638qhkjv1410b4d-gawk-5.1.0/include:/gnu/store/74aw9c2yfpgbwac78c5jddhk2lf03958-make-4.3/include:/gnu/store/0cwwi9fdd1xx0pn0xxk4xya6wdhliyds-binutils-2.37/include:/gnu/store/dbcbcaxq20kbkhh2mr8k98qfnymq22kp-gcc-10.3.0/include:/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/include:/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include'
environment variable `CPLUS_INCLUDE_PATH' set to 
`/gnu/store/bzc6fww7zzfm6zdqnjfyrd7b5jjqphvs-binutils-cross-powerpc-linux-gnu-2.37/include:/gnu/store/kz4gm14jc8m4qwzchr2ffkbgqg45xsm4-libxslt-1.1.34/include:/gnu/store/hq8w61vwbjgr7kkwdfvcr9wgdf7i7pyf-bzip2-1.0.8/include:/gnu/store/3bmnfqz1a46ddl89iqcargdf2ximijxs-xz-5.2.5/include:/gnu/store/q4g6nw26jlg61018xhjn575nzc975wh3-file-5.39/include:/gnu/store/z42b5grcygvc8rxp3638qhkjv1410b4d-gawk-5.1.0/include:/gnu/store/74aw9c2yfpgbwac78c5jddhk2lf03958-make-4.3/include:/gnu/store/0cwwi9fdd1xx0pn0xxk4xya6wdhliyds-binutils-2.37/include:/gnu/store/dbcbcaxq20kbkhh2mr8k98qfnymq22kp-gcc-10.3.0/include/c++:/gnu/store/dbcbcaxq20kbkhh2mr8k98qfnymq22kp-gcc-10.3.0/include:/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/include:/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include'
environment variable `LIBRARY_PATH' set to 
`/gnu/store/bzc6fww7zzfm6zdqnjfyrd7b5jjqphvs-binutils-cross-powerpc-linux-gnu-2.37/lib:/gnu/store/kz4gm14jc8m4qwzchr2ffkbgqg45xsm4-libxslt-1.1.34/lib:/gnu/store/hq8w61vwbjgr7kkwdfvcr9wgdf7i7pyf-bzip2-1.0.8/lib:/gnu/store/3bmnfqz1a46ddl89iqcargdf2ximijxs-xz-5.2.5/lib:/gnu/store/q4g6nw26jlg61018xhjn575nzc975wh3-file-5.39/lib:/gnu/store/z42b5grcygvc8rxp3638qhkjv1410b4d-gawk-5.1.0/lib:/gnu/store/0cwwi9fdd1xx0pn0xxk4xya6wdhliyds-binutils-2.37/lib:/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/lib:/gnu/store/4yb66zp717gb7hc5a1q4lkxhami93d4b-glibc-2.33-static/lib:/gnu/store/akml58i0q8mikg7xf6hm789mzlijpm5j-glibc-utf8-locales-2.33/lib'
environment variable `GUIX_LOCPATH' set to 
`/gnu/store/akml58i0q8mikg7xf6hm789mzlijpm5j-glibc-utf8-locales-2.33/lib/locale'
phase `set-paths' succeeded after 0.0 seconds
starting phase `install-locale'
using 'en_US.utf8' locale for category "LC_ALL"
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
`/gnu/store/m5x489p0z099m50vh5hs9jqdba99w11g-openbios-1.1-checkout/.gitignore' 
-> `./.gitignore'
`/gnu/store/m5x489p0z099m50vh5hs9jqdba99w11g-openbios-1.1-checkout/COPYING' -> 
`./COPYING'
`/gnu/store/m5x489p0z099m50vh5hs9jqdba99w11g-openbios-1.1-checkout/Makefile' -> 
`./Makefile'
`/gnu/store/m5x489p0z099m50vh5hs9jqdba99w11g-openbios-1.1-checkout/Makefile.target'
 -> `./Makefile.target'
`/gnu/store/m5x489p0z099m50vh5hs9jqdba99w11g-openbios-1.1-checkout/READ

bug#59331: sbcl currently fails to build on aarch64

2022-11-19 Thread Andrew Patterson

Thanks!

--
Andrew Patterson





bug#59331: sbcl currently fails to build on aarch64

2022-11-18 Thread Andrew Patterson
...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





bug#59331: sbcl currently fails to build on aarch64

2022-11-18 Thread Andrew Patterson
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.
>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 00..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 +
+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



--
Andrew Patterson


bug#59331: sbcl currently fails to build on aarch64

2022-11-17 Thread Andrew Patterson



On Thu, 2022-11-17 at 15:47GMT, Guillaume Le Vaillant 
 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





bug#57127: unzip fails to cross-compile

2022-08-11 Thread Andrew Patterson

unzip now cross-compiles successfully.  Thank you!

--
Andrew Patterson