Subject: no code for module (guix build qt-utils)

From: Jack Hill <[email-masked]>
Date: Sun, 4 Jul 2021 02:33:23 -0400 (EDT)

Hi Guix,

Today with Guix f7e14782025bf87aaef694a21f34010b1a95f7f6 on x86_64-linux, 
I am unable to build qt5ct because a module-import-compiled derivation 
fails with "no code for module (guix build qt-utils)". Terminal session 
transcript, which contains the full build log:

$ guix build qt5ct
The following derivations will be built:
    /gnu/store/nhvi7320gadymh793kh8dljr7zwl7a1v-qt5ct-1.2.drv
    /gnu/store/qsgf2yxf99kbz3yq2fsci5wrjhhivizv-module-import-compiled.drv
26.6 MB will be downloaded:
    /gnu/store/5s66rhnjys6qq8hdff9sy3dzy40fgxji-qtdeclarative-5.15.2
    /gnu/store/mz8q0qlnwyymdk8nswbpm4xrw13s0v2d-qttools-5.15.2
    /gnu/store/b90sxi7aphibx6amwqx2nqljjv0yp5wg-qtbase-5.15.2
    /gnu/store/11vb2q2kbi8aym0fx52h5inish61mzp6-qtsvg-5.15.2
substituting /gnu/store/b90sxi7aphibx6amwqx2nqljjv0yp5wg-qtbase-5.15.2...
downloading from https://ci.guix.gnu.org/nar/lzip/b90sxi7aphibx6amwqx2nqljjv0yp5wg-qtbase-5.15.2 ...
  qtbase-5.15.2  15.3MiB                          1.7MiB/s 00:09 [##################] 100.0%

building /gnu/store/qsgf2yxf99kbz3yq2fsci5wrjhhivizv-module-import-compiled.drv...
WARNING: (guix build cmake-build-system): imported module (guix build utils) overrides core binding `delete'
Backtrace:
In system/base/compile.scm:
      43:4 19 (call-with-output-file/atomic _ _ _)
In ice-9/boot-9.scm:
   1736:10 18 (with-exception-handler _ _ #:unwind? _ # _)
In system/base/compile.scm:
     59:11 17 (_)
    155:11 16 (_ #<closed: file 7ffff4774af0>)
    235:18 15 (read-and-compile #<input: guix/build/qt-build-system.?> ?)
    183:32 14 (compile-fold (#<procedure compile-tree-il (x e opts)>) ?)
In ice-9/boot-9.scm:
    2806:4 13 (save-module-excursion #<procedure 7ffff31fb580 at lang?>)
In language/scheme/compile-tree-il.scm:
     31:15 12 (_)
In ice-9/psyntax.scm:
   1241:36 11 (expand-top-sequence ((define-module (guix build #) ?)) ?)
   1233:19 10 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
    285:10  9 (parse _ (("placeholder" placeholder)) (()) _ c&e (# #) #)
In ice-9/eval.scm:
    293:34  8 (_ #<module (#{ g27891}#) 7ffff3133000>)
In ice-9/boot-9.scm:
    3380:4  7 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
   2565:24  6 (call-with-deferred-observers #<procedure 7ffff394b5f0 ?>)
   3393:24  5 (_)
    222:29  4 (map1 (((guix build cmake-build-system) #:prefix #) # ?))
    222:29  3 (map1 (((guix build utils)) ((guix build qt-utils)) # ?))
    222:17  2 (map1 (((guix build qt-utils)) ((ice-9 match)) ((# ?)) ?))
    3300:6  1 (resolve-interface (guix build qt-utils) #:select _ # _ ?)
   1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
no code for module (guix build qt-utils)
builder for `/gnu/store/qsgf2yxf99kbz3yq2fsci5wrjhhivizv-module-import-compiled.drv' failed with exit code 1
build of /gnu/store/qsgf2yxf99kbz3yq2fsci5wrjhhivizv-module-import-compiled.drv failed
View build log at '/var/log/guix/drvs/qs/gf2yxf99kbz3yq2fsci5wrjhhivizv-module-import-compiled.drv.bz2'.
cannot build derivation `/gnu/store/nhvi7320gadymh793kh8dljr7zwl7a1v-qt5ct-1.2.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/nhvi7320gadymh793kh8dljr7zwl7a1v-qt5ct-1.2.drv' failed

Best,
Jack