[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15602: Possible work-around
From: |
Taylan Ulrich Bayırlı/Kammer |
Subject: |
bug#15602: Possible work-around |
Date: |
Fri, 06 Nov 2015 09:26:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
A possible work-around seems to be to use 'load' or 'load-compiled' on a
module file after compiling it.
As far as I understand, the problem is that Guile somehow ends up with a
"degenerate" version of the module in the run-time after it's compiled
but not fully loaded, so we alleviate that by explicitly loading it. I
know near to nothing about the deeper mechanisms at play here though, so
I might be off. In any case, changing
guile --no-auto-compile -L . -c \
'(use-modules (system base compile))
(for-each compile-file (list "one.scm" "three.scm" "two.scm"))'
to
guile --no-auto-compile -L . -c \
'(use-modules (system base compile))
(for-each (lambda (file)
(compile-file file)
(load file))
(list "one.scm" "three.scm" "two.scm"))'
alleviates the unbound variable error in this case.
Related thread:
https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00143.html
Taylan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#15602: Possible work-around,
Taylan Ulrich Bayırlı/Kammer <=