Hi,
I yesterday reconfigured and now I am not able to run `guile' command.
I have guile in my home environment using `guile-3.0' variable, which
seems to still be the default guile to use.
--8<---------------cut here---------------start------------->8---
$ rm -rf ~/.cache/guile
$ guile
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/store.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/store.scm
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/utils.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/utils.scm
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/config.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/config.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/config.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/memoization.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/memoization.scm
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/profiling.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/profiling.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/profiling.scm.go
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/memoization.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/diagnostics.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/diagnostics.scm
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/colors.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/colors.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/colors.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/i18n.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/i18n.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/i18n.scm.go
;;; WARNING: compilation of
/run/current-system/profile/share/guile/site/3.0/guix/diagnostics.scm failed:
;;; Unbound variable: trivial-format-string?
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/build/utils.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/build/utils.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/build/utils.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/read-print.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/read-print.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/read-print.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/build/syscalls.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:763:30:
warning: possibly unbound variable `RB_AUTOBOOT'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2008:17:
warning: possibly unbound variable `network-interface-flags'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2010:30:
warning: possibly unbound variable `IFF_LOOPBACK'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2017:30:
warning: possibly unbound variable `IFF_RUNNING'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2024:25:
warning: possibly unbound variable `IFF_NOARP'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2116:9:
warning: possibly unbound variable `set-network-interface-address'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2117:9:
warning: possibly unbound variable `set-network-interface-flags'
;;;
/run/current-system/profile/share/guile/site/3.0/guix/build/syscalls.scm:2132:53:
warning: possibly unbound variable `IFF_UP'
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/build/syscalls.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/combinators.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/combinators.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/combinators.scm.go
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/utils.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/deprecation.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/deprecation.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/deprecation.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/serialization.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/serialization.scm
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/base16.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/base16.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/base16.scm.go
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/serialization.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/remote-procedures.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling
/run/current-system/profile/share/guile/site/3.0/guix/remote-procedures.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/remote-procedures.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/monads.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/monads.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/monads.scm.go
;;; WARNING: compilation of
/run/current-system/profile/share/guile/site/3.0/guix/store.scm failed:
;;; In procedure scm_hash_fn_create_handle_x: Wrong type argument in position 1
(expecting hash-table): #<unspecified>
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/records.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/records.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/records.scm.go
;;; WARNING: loading compiled file
/run/current-system/profile/lib/guile/3.0/site-ccache/guix/base32.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode version
;;; compiling /run/current-system/profile/share/guile/site/3.0/guix/base32.scm
;;; compiled
/home/wolf/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/wjs73lq5xhfqjglh3gzksskqnzxw4zmc-guix-1.5.0-2.520785e/share/guile/site/3.0/guix/base32.scm.go
Backtrace:
In ice-9/psyntax.scm:
1056:44 19 (dobody _ _ _ _)
1056:44 18 (dobody _ _ _ _)
1401:23 17 (dobody (#<syntax:.guile:37:2 (#<syntax:.guile:37:3 (…>) …)
1327:27 16 (syntax-type (#<syntax:.guile:37:3 (@@ #<syntax:.gu…> …) …)
1311:39 15 (syntax-type %graft? (("placeholder" placeholder)) ((#)) …)
845:43 14 (resolve-identifier _ _ (("placeholder" placeholder)) _ #)
In ice-9/threads.scm:
390:8 13 (_ _)
In ice-9/boot-9.scm:
3253:13 12 (_)
In ice-9/threads.scm:
390:8 11 (_ _)
In ice-9/boot-9.scm:
3544:20 10 (_)
2836:4 9 (save-module-excursion _)
3564:26 8 (_)
In unknown file:
7 (primitive-load-path "guix/store" #<procedure 7fa9616b2…>)
In ice-9/eval.scm:
721:20 6 (primitive-eval (template-directory instantiations #))
In ice-9/psyntax.scm:
1229:36 5 (expand-top-sequence (#<syntax:store.scm:1575:0 (temp…>) …)
1121:20 4 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
1342:32 3 (syntax-type (template-directory instantiations #) ((…)) …)
1562:32 2 (expand-macro #<procedure 7fa9560c1120 at /run/current…> …)
In /run/current-system/profile/share/guile/site/3.0/guix/monads.scm:
227:15 1 (_ _)
In unknown file:
0 (hash-map->list #<procedure 7fa953bbdc30 at /run/curre…> …)
ERROR: In procedure hash-map->list:
In procedure hash-map->list: Wrong type argument in position 2 (expecting
hash-table): #<unspecified>
--8<---------------cut here---------------end--------------->8---
Interestingly, when I run `guile' second time without cleaning the
compile cache, it will *start* (after printing more warnings), but given
the above, I have no idea whether it is in correct state or not.
It can also be reproduced using time-machine:
--8<---------------cut here---------------start------------->8---
$ rm -rf ~/.cache/guile
$ guix time-machine -q --commit 444f00b7171dacc52c9c5327cc4f1f596832bf2f --
shell [email protected] -- guile
[..]
ERROR: In procedure hash-map->list:
In procedure hash-map->list: Wrong type argument in position 2 (expecting
hash-table): #<unspecified>
--8<---------------cut here---------------end--------------->8---
I did not see anything in pull news about guile-3.0 being deprecated,
there is no warning printed, and it is still used for building guile
libraries, so I assume this is a bug.
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.