* bug#53496: guix pull: error: build of `/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv' failed
@ 2022-01-24 6:24 Peter Kois
2022-03-19 22:20 ` bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails Maxime Devos
0 siblings, 1 reply; 8+ messages in thread
From: Peter Kois @ 2022-01-24 6:24 UTC (permalink / raw)
To: 53496
While trying to upgrade guix, I did encounter to this error:
root@timelinex:~# guix pull
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales'
package and defining `GUIX_LOCPATH', along these lines:
guix package -i glibc-utf8-locales
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
See the "Application Setup" section in the manual, for more info.
Updating channel 'guix' from Git repository at
'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
guix https://git.savannah.gnu.org/git/guix.git 3377423
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/rxlkjpigq9i7a81g5p1gkvxmybsmcxgx-module-import-compiled.drv
/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv
building
/gnu/store/rxlkjpigq9i7a81g5p1gkvxmybsmcxgx-module-import-compiled.drv...
4%
[#######
]builder for
`/gnu/store/rxlkjpigq9i7a81g5p1gkvxmybsmcxgx-module-import-compiled.drv'
failed with exit code 1
build of
/gnu/store/rxlkjpigq9i7a81g5p1gkvxmybsmcxgx-module-import-compiled.drv
failed
View build log at
'/var/log/guix/drvs/rx/lkjpigq9i7a81g5p1gkvxmybsmcxgx-module-import-compiled.drv.bz2'.
cannot build derivation
`/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv':
1 dependencies couldn't be built
guix pull: error: build of
`/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv'
failed
Full log:
[ 1/78] Loading './gcrypt/hash.scm'...
[ 2/78] Loading './git.scm'...
[ 3/78] Loading './gnu/packages/bootstrap.scm'...
;;; Failed to autoload make-zlib-input-port in (zlib):
;;; missing interface for module (zlib)
;;; Failed to autoload make-zlib-input-port in (zlib):
;;; missing interface for module (zlib)
;;; Failed to autoload make-zlib-output-port in (zlib):
;;; missing interface for module (zlib)
;;; Failed to autoload make-zlib-output-port in (zlib):
;;; missing interface for module (zlib)
/gnu/store/p5si0c0k25raxc2zibiii4v531hk0waa-module-import/guix/grafts.scm:137:7:
warning: 'build-expression->derivation' is deprecated, use
'gexp->derivation' instead
Backtrace:
In ice-9/boot-9.scm:
2312:4 19 (save-module-excursion _)
3014:26 18 (_)
In unknown file:
17 (primitive-load-path "gnu/packages" #<procedure 7afd20 ?>)
In ice-9/eval.scm:
721:20 16 (primitive-eval _)
In ice-9/psyntax.scm:
1235:36 15 (expand-top-sequence _ _ _ #f _ _ _)
1182:24 14 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
285:10 13 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/eval.scm:
293:34 12 (_ #<module (#{ g74}#) b28c80>)
In ice-9/boot-9.scm:
2874:4 11 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
2887:24 10 (_)
222:17 9 (map1 (((guix packages)) ((guix ui)) ((guix utils)) # ?))
2800:17 8 (resolve-interface (guix packages) #:select _ #:hide _ # ?)
In ice-9/threads.scm:
390:8 7 (_ _)
In ice-9/boot-9.scm:
2726:13 6 (_)
In ice-9/threads.scm:
390:8 5 (_ _)
In ice-9/boot-9.scm:
2994:20 4 (_)
2312:4 3 (save-module-excursion _)
3014:26 2 (_)
In unknown file:
1 (primitive-load-path "guix/packages" #<procedure 790020?>)
In ice-9/boot-9.scm:
3492:0 0 (module-re-export! #<directory (guix packages) b28960> # ?)
ice-9/boot-9.scm:3492:0: In procedure module-re-export!:
Wrong number of arguments to #<procedure module-re-export! (m names)>
Sincerely, Peter Kois
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-01-24 6:24 bug#53496: guix pull: error: build of `/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv' failed Peter Kois
@ 2022-03-19 22:20 ` Maxime Devos
2022-03-19 22:28 ` Maxime Devos
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-03-19 22:20 UTC (permalink / raw)
To: 53496
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Hi,
I got the exact same error, but with time-machine, when travelling
from 1.1.0 to 29091731a0c6cb649cdfd72297575fe2bb2a9591 (actually,
29091731a0c6cb649cdfd72297575fe2bb2a9591 + a patch, but that probably
does not matter).
TBI ...
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-19 22:20 ` bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails Maxime Devos
@ 2022-03-19 22:28 ` Maxime Devos
2022-03-19 22:33 ` Maxime Devos
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-03-19 22:28 UTC (permalink / raw)
To: 53496; +Cc: Peter Kois
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]
Maxime Devos schreef op za 19-03-2022 om 23:20 [+0100]:
> Hi,
>
> I got the exact same error, but with time-machine, when travelling
> from 1.1.0 to 29091731a0c6cb649cdfd72297575fe2bb2a9591 (actually,
> 29091731a0c6cb649cdfd72297575fe2bb2a9591 + a patch, but that probably
> does not matter).
>
> TBI ...
The only use of 'module-re-export!' in current Guix is
(module-re-export! (current-module) '(delete) #:replace? #t)
from (guix packages).
Probably the issue is that 'module-re-export!' did not always support
#:replace?, and that 1.1.0 uses an old version of Guile with the old
calling convention when computing the derivation ... (I don't know
if these details are actually true, it's a bit of a guess.)
I guess the patch from e89f767ce8990f4959616031e3c98fbfe92a008b, while
fixing time-travelling from v1.2.0 to current Guix, broke time-
travelling from v1.1.0 to current Guix.
> Greetings,
> Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-19 22:28 ` Maxime Devos
@ 2022-03-19 22:33 ` Maxime Devos
2022-03-19 22:58 ` Maxime Devos
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-03-19 22:33 UTC (permalink / raw)
To: 53496; +Cc: Peter Kois
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
Maxime Devos schreef op za 19-03-2022 om 23:28 [+0100]:
> The only use of 'module-re-export!' in current Guix is
>
> (module-re-export! (current-module) '(delete) #:replace? #t)
>
> from (guix packages).
>
> Probably the issue is that 'module-re-export!' did not always support
> #:replace?, and that 1.1.0 uses an old version of Guile with the old
> calling convention when computing the derivation ... (I don't know
> if these details are actually true, it's a bit of a guess.)
The extra argument of module-re-export! was introduced with commit
cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d in Guile. It seems like the
first Guile version after this commit is v2.2.7. Let's try
making the '#:replace? ...' conditional upon Guile>2.2 ...
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-19 22:33 ` Maxime Devos
@ 2022-03-19 22:58 ` Maxime Devos
2022-03-20 9:03 ` Maxime Devos
2022-03-21 15:19 ` Ludovic Courtès
0 siblings, 2 replies; 8+ messages in thread
From: Maxime Devos @ 2022-03-19 22:58 UTC (permalink / raw)
To: 53496; +Cc: Peter Kois
[-- Attachment #1.1: Type: text/plain, Size: 989 bytes --]
Maxime Devos schreef op za 19-03-2022 om 23:33 [+0100]:
> Maxime Devos schreef op za 19-03-2022 om 23:28 [+0100]:
> > The only use of 'module-re-export!' in current Guix is
> >
> > (module-re-export! (current-module) '(delete) #:replace? #t)
> >
> > from (guix packages).
> >
> > Probably the issue is that 'module-re-export!' did not always support
> > #:replace?, and that 1.1.0 uses an old version of Guile with the old
> > calling convention when computing the derivation ... (I don't know
> > if these details are actually true, it's a bit of a guess.)
>
> The extra argument of module-re-export! was introduced with commit
> cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d in Guile. It seems like the
> first Guile version after this commit is v2.2.7. Let's try
> making the '#:replace? ...' conditional upon Guile>2.2 ...
I think I have a fix, see attached patch. Currently it's at ‘building
...-module-import-compiled.drv’ (97%).
Greetings,
Maxime.
[-- Attachment #1.2: 0001-packages-Fix-time-travel-from-Guix-1.1.0-Guile-2.2.7.patch --]
[-- Type: text/x-patch, Size: 1826 bytes --]
From f9a53bb4bccb55bb6d0f55daed778ee86eb50f5e Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Sat, 19 Mar 2022 22:39:33 +0000
Subject: [PATCH] packages: Fix time-travel from Guix 1.1.0 / Guile < 2.2.7.
* guix/packages.scm: Only set #:replace? #true when Guile is >= 2.2.7.
Fixes: <https://issues.guix.gnu.org/53765>
Reported-By: Peter Kois <kangus@gmail.com>
---
guix/packages.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/guix/packages.scm b/guix/packages.scm
index 9d5b23eb8a..37f5a6aa5f 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
+;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -182,8 +183,16 @@
;; The 'source-module-closure' procedure ca. 1.2.0 did not recognize
;; #:re-export-and-replace: <https://issues.guix.gnu.org/52694>.
-;; Work around it.
-(module-re-export! (current-module) '(delete) #:replace? #t)
+;; Work around it. The #:replace? argument is only supported by
+;; Guile 2.2.7 and later, work-around it if necessary to allow
+;; time-travel from 1.1.0, see <https://issues.guix.gnu.org/53765>.
+(let ((major (string->number (major-version))))
+ (if (or (>= major 3)
+ (and (= major 2)
+ (= (string->number (minor-version)) 2) ; there is no Guile 2.3.X
+ (>= (string->number (micro-version)) 7)))
+ (module-re-export! (current-module) '(delete) #:replace? #t)
+ (module-re-export! (current-module) '(delete))))
;;; Commentary:
;;;
base-commit: 29091731a0c6cb649cdfd72297575fe2bb2a9591
--
2.30.2
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-19 22:58 ` Maxime Devos
@ 2022-03-20 9:03 ` Maxime Devos
2022-03-21 15:19 ` Ludovic Courtès
1 sibling, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-03-20 9:03 UTC (permalink / raw)
To: 53496; +Cc: Peter Kois
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
Maxime Devos schreef op za 19-03-2022 om 23:58 [+0100]:
I think I have a fix, see attached patch. Currently it's at
‘building
...-module-import-compiled.drv’ (97%).
It completed successfully!
# in a v1.1.0 checkout
$ ./pre-inst-env guix time-machine -C ch.scm --url=$PWD/../guix --commit=[latest commit] -- describe
> [...]
guix f9a53bb
repository URL: $HOME/guix-old-testing/../guix
commit: f9a53bb4bccb55bb6d0f55daed778ee86eb50f5e
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-19 22:58 ` Maxime Devos
2022-03-20 9:03 ` Maxime Devos
@ 2022-03-21 15:19 ` Ludovic Courtès
2022-03-21 18:33 ` Maxime Devos
1 sibling, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2022-03-21 15:19 UTC (permalink / raw)
To: Maxime Devos; +Cc: 53496-done, Peter Kois
Hi,
Maxime Devos <maximedevos@telenet.be> skribis:
> From f9a53bb4bccb55bb6d0f55daed778ee86eb50f5e Mon Sep 17 00:00:00 2001
> From: Maxime Devos <maximedevos@telenet.be>
> Date: Sat, 19 Mar 2022 22:39:33 +0000
> Subject: [PATCH] packages: Fix time-travel from Guix 1.1.0 / Guile < 2.2.7.
>
> * guix/packages.scm: Only set #:replace? #true when Guile is >= 2.2.7.
>
> Fixes: <https://issues.guix.gnu.org/53765>
> Reported-By: Peter Kois <kangus@gmail.com>
Woow, great investigative work! I’ve applied the patch now.
I’d really like to have that tested in continuous integration…
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
2022-03-21 15:19 ` Ludovic Courtès
@ 2022-03-21 18:33 ` Maxime Devos
0 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-03-21 18:33 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 53496, Peter Kois
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
Ludovic Courtès schreef op ma 21-03-2022 om 16:19 [+0100]:
> > * guix/packages.scm: Only set #:replace? #true when Guile is >=
> > 2.2.7.
> >
> > Fixes: <https://issues.guix.gnu.org/53765>
> > Reported-By: Peter Kois <kangus@gmail.com>
Oops that was the wrong bug number ...
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-21 18:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24 6:24 bug#53496: guix pull: error: build of `/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv' failed Peter Kois
2022-03-19 22:20 ` bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails Maxime Devos
2022-03-19 22:28 ` Maxime Devos
2022-03-19 22:33 ` Maxime Devos
2022-03-19 22:58 ` Maxime Devos
2022-03-20 9:03 ` Maxime Devos
2022-03-21 15:19 ` Ludovic Courtès
2022-03-21 18:33 ` Maxime Devos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).