Nikita Karetnikov <nik...@karetnikov.org> skribis: > This commit is buggy.
Which commit? > Backtrace: > In ice-9/boot-9.scm: > 2786: 19 [try-module-autoload (guix build download) #f] > 2131: 18 [save-module-excursion #<procedure a1f7630 at > ice-9/boot-9.scm:2787:17 ()>] [...] > ?: 3 [module-variable #<directory (guix build download) a323168> > make-session] > In ice-9/boot-9.scm: > 2732: 2 [b #<autoload (gnutls) a5fec18> make-session #f] > In unknown file: > ?: 1 [scm-error misc-error #f ...] > In ice-9/boot-9.scm: > 106: 0 [#<procedure 9dd98c0 at ice-9/boot-9.scm:97:6 (thrown-k . args)> > misc-error ...] > > ice-9/boot-9.scm:106:20: In procedure #<procedure 9dd98c0 at > ice-9/boot-9.scm:97:6 (thrown-k . args)>: > ice-9/boot-9.scm:106:20: missing interface for module (gnutls) > make[2]: *** [guix/scripts/download.go] Error 1 > make[2]: Leaving directory `/home/guix-FRESH' How did you achieve this? With Guile 2.0.7+, I see this: --8<---------------cut here---------------start------------->8--- $ strace -f -o ,,s make guix/build/download.go /home/ludo/.guix-profile/bin/mkdir -p `dirname "guix/build/download.go"` LC_ALL=C \ ./pre-inst-env \ /home/ludo/soft/bin/guild compile -L "." -L "." \ -Wformat -Wunbound-variable -Warity-mismatch \ --target="x86_64-unknown-linux-gnu" \ -o "guix/build/download.go" "guix/build/download.scm" guix/build/download.scm:110:17: warning: possibly unbound variable `make-session' guix/build/download.scm:110:17: warning: possibly unbound variable `connection-end/client' guix/build/download.scm:111:4: warning: possibly unbound variable `set-session-transport-fd!' guix/build/download.scm:112:4: warning: possibly unbound variable `set-session-default-priority!' guix/build/download.scm:113:4: warning: possibly unbound variable `set-session-credentials!' guix/build/download.scm:113:38: warning: possibly unbound variable `make-certificate-credentials' guix/build/download.scm:119:4: warning: possibly unbound variable `handshake' guix/build/download.scm:120:4: warning: possibly unbound variable `session-record-port' wrote `guix/build/download.go' $ grep gnutls.scm ,,s 24475 stat("gnu/packages/gnutls.scm", {st_mode=S_IFREG|0644, st_size=3282, ...}) = 0 24475 stat("gnu/packages/gnutls.scm", {st_mode=S_IFREG|0644, st_size=3282, ...}) = 0 24475 stat("gnu/packages/gnutls.scm", {st_mode=S_IFREG|0644, st_size=3282, ...}) = 0 --8<---------------cut here---------------end--------------->8--- IOW, compiling guix/build/download.scm does not attempt to load (gnutls), which is what the ‘module-autoload!’ call is here for. (Note that GnuTLS support in that file is unrelated to Mark’s recent change.) Thanks, Ludo’.