engstrand-config / guix-dotfiles

Our GNU Guix system configuration and dotfiles
GNU General Public License v3.0
57 stars 4 forks source link

Error building ISO #33

Open jdeane opened 6 months ago

jdeane commented 6 months ago

Hello,

I'm trying to get into Guix and I found your project, it looks very interesting!

When I try to create a ISO using ./build.iso.sh I receive the following error:

View build log at '/var/log/guix/drvs/nr/yxvcvrlmnprbzpadb8aysa2zjdh7jk-guix-package-cache.drv.gz'. cannot build derivation /gnu/store/83ifbhvyp3snwb5lda3lp8lifwgs69hy-profile.drv': 1 dependencies couldn't be built guix time-machine: error: build of/gnu/store/83ifbhvyp3snwb5lda3lp8lifwgs69hy-profile.drv' failed Attempting to build the image... guix time-machine: error: './channels.scm' did not return a list of channels Could not create image.

Here is the build log output:

(repl-version 0 1 1)
Generating package cache for '/gnu/store/0307h7wsx9fjh2pc5sa2rkbj7ccvj71c-profile'...
error: %engstrand-base-features: unbound variable
hint: Did you forget `(use-modules (engstrand configs))'?

Backtrace:
In guix/repl.scm:
    141:4 19 (machine-repl _ _)
    126:7 18 (_)
In ice-9/boot-9.scm:
  1747:15 17 (with-exception-handler #<procedure 7fffedd32180 at ic?> ?)
  1752:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In guix/repl.scm:
    99:21 15 (_)
In unknown file:
          14 (_ #<procedure 7ffff78862c0 at guix/repl.scm:100:25 ()> ?)
          13 (primitive-load "/gnu/store/iy9b7j9nn4l8ywqny5yr2i5vqrn?")
In ice-9/boot-9.scm:
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In gnu/packages.scm:
   439:11 11 (generate-package-cache _)
In srfi/srfi-1.scm:
   460:18 10 (fold #<procedure expand-cache expr> _ _)
In gnu/packages.scm:
   399:37  9 (expand-cache . _)
In guix/packages.scm:
  1378:17  8 (supported-package? #<package rbw@1.4.2 engstrand/pack?> ?)
In guix/memoization.scm:
    101:0  7 (_ #<hash-table 7fffdb1ee340 23559/28099> #<package rb?> ?)
In guix/packages.scm:
  1356:39  6 (_)
  1618:16  5 (package->bag _ _ _ #:graft? _)
  1723:43  4 (thunk)
In engstrand/packages/utils.scm:
    88:21  3 (arguments #<package rbw@1.4.2 engstrand/packages/utils?>)
In ice-9/boot-9.scm:
  1685:16  2 (raise-exception _ #:continuable? _)
  1780:13  1 (_ #<&compound-exception components: (#<&undefined-vari?>)
In unknown file:
           0 (backtrace #<undefined>)

(exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (rust-aes-0.7)) (value #f))

Any ideas?

Thanks, Jon

Frewacom commented 6 months ago

Hi,

I have not updated my system for while, and it is quite possible that a lot of packages are broken at the moment.

From your error, it looks like the issue is rbw. Try commenting out the package definition along with feature-rbw and try again.

Alternatively, try to fix the package definition by choosing the correct version for rust-aes.

jdeane commented 6 months ago

Thanks for getting back to me.

I commented out feature-rbw in Features/Utils.scm and it had no effect. Exactly the same error as before. I noticed the following output as well:

building package cache... /builder for /gnu/store/nryxvcvrlmnprbzpadb8aysa2zjdh7jk-guix-package-cache.drv' failed to produce output path/gnu/store/09ksii3hx067g5cx15lhx1wldjxdkgv3-guix-package-cache' build of /gnu/store/nryxvcvrlmnprbzpadb8aysa2zjdh7jk-guix-package-cache.drv failed hint: This usually indicates a bug in one of the channels you are pulling from, or some incompatibility among them. You can check the build log and report the issue to the channel developers.

I'm only investigating Guix so it's quite possible I'm doing something stupid as well!

Frewacom commented 6 months ago

The package definition for rbw needs to be uncommented as well, since it is where the error originates from: https://github.com/engstrand-config/guix-dotfiles/blob/06ecbc501932141ba0cfc24703d44a8c7a407a0a/engstrand/packages/utils.scm#L61-L139

jdeane commented 6 months ago

Hi,

I commented out rbw-latest in Packages/utils.scm as well, and unfortunately it's the same problem.

Frewacom commented 6 months ago

Hm, probably need to tell guix to use the local changes when building. Add -L <path-to-dotfiles-root> to the guix time-machine commands in build-iso.h

jdeane commented 6 months ago

I'll give that a try and report back if I have any success.

Thanks for your time, Jon