Ludovic Courtès writes:
> Hello, > > bre...@posteo.net skribis: > >> I reference the newt module in this file of my channel >> https://git.sr.ht/~brettgilio/guix-system/tree/master/guile-modules/gscale/screen.scm >> >> However, when I `guix pull` it fails to build citing that there is no >> code available for that module. I have guile-newt installed system >> wide, and to my local profile manifest, but neither of those fix the >> issue. > > When Guile and Guile-Newt are in the same profile, the GUILE_LOAD_PATH > and GUILE_LOAD_COMPILED_PATH are automatically set appropriately: > > guix environment -C --ad-hoc guile guile-newt -- guile -c '(use-modules > (newt))' > # success > > So it looks like GUILE_LOAD_PATH may be unset or wrong in your case. > > Ludo’. Hi Ludo, I had some time to look at this. Here is what echoing $GUILE_LOAD_PATH returns for me brettg@guixsd ~/Repos/guix-system/dotfiles [env]$ echo $GUILE_LOAD_PATH /home/brettg/Repos/guix-system:/home/brettg/Repos/guix-system:/home/brettg/Repos/guix-system:/home/brettg/.guix-profile/share/guile/site/2.2:/run/current-system/profile/share/guile/site/2.2 Newt is indeed available in /run/current-system/profile/share/guile/site/2.2 and it is also in my local /.guix-profile when I add it. But neither case resolves the issue. Here is the full info for the build failing. building /gnu/store/frc4lyhrijq5ss3n2zmz6bgkdfqr44k1-guix-system.drv... |builder for `/gnu/store/frc4lyhrijq5ss3n2zmz6bgkdfqr44k1-guix-system.drv' failed to produce output path `/gnu/store/mhkf633xnly60av67gvxnpmqcykjxxjx-guix-system' build of /gnu/store/frc4lyhrijq5ss3n2zmz6bgkdfqr44k1-guix-system.drv failed View build log at '/var/log/guix/drvs/fr/c4lyhrijq5ss3n2zmz6bgkdfqr44k1-guix-system.drv.bz2'. cannot build derivation `/gnu/store/fmbl1qkfjiqarrhv4xxwbbq832372nlf-profile.drv': 1 dependencies couldn't be built guix pull: error: build of `/gnu/store/fmbl1qkfjiqarrhv4xxwbbq832372nlf-profile.drv' failed The first build log shows (repl-version 0 0) (exception misc-error (value #f) (value "~A ~S") (value ("no code for module" (newt))) (value #f)) The second build log shows Derive ([("out","/gnu/store/asagnba7svzsmkf2kwz2pvada9smrfqn-profile","","")] ,[("/gnu/store/0dzzrfjnykzjnb86280g1fvm7wvr219i-manual-database.drv",["out"]) ,("/gnu/store/16c8c8hm1qdn6xz8014939mirc7c4d4j-guile-2.2.4.drv",["out"]) ,("/gnu/store/7jcrsq0rm46fj3zql19y5w94vf2av18h-guix-package-cache.drv",["out"]) ,("/gnu/store/97wvcdim7xa3s1dd3f3y59zkw26w37yk-module-import-compiled.drv",["out"]) ,("/gnu/store/cfln5hzm0p1cgb477cg5928yzs49i3x5-ca-certificate-bundle.drv",["out"]) ,("/gnu/store/frc4lyhrijq5ss3n2zmz6bgkdfqr44k1-guix-system.drv",["out"]) ,("/gnu/store/gzmrcb55fm7vdb16gzjhh3y66i9l2wmn-fonts-dir.drv",["out"]) ,("/gnu/store/kzhvcnzrbf9g5j488f9ynf0ys76mf3kb-guix-56a485821.drv",["out"]) ,("/gnu/store/sg42z9rkibdcm6x7fisar7p5h4j8w2bz-glibc-utf8-locales-2.28.drv",["out"]) ,("/gnu/store/x9pznv2pyawyh2y9sab90dxlqi9ml4pr-info-dir.drv",["out"])] ,["/gnu/store/k1pj5ry1acc40hq18qd1ji9hpg350j2f-module-import","/gnu/store/nd623dxmwhavwh94m0vxwxagahh5428f-profile-builder"] ,"x86_64-linux","/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile",["--no-auto-compile","-L","/gnu/store/k1pj5ry1acc40hq18qd1ji9hpg350j2f-module-import","-C","/gnu/store/ism9qw00d9gdhlhiankg72cik02bpnfm-module-import-compiled","/gnu/store/nd623dxmwhavwh94m0vxwxagahh5428f-profile-builder"] ,[("GUILE_WARN_DEPRECATED","no") ,("allowSubstitutes","0") ,("out","/gnu/store/asagnba7svzsmkf2kwz2pvada9smrfqn-profile") ,("preferLocalBuild","1")]) Thank you