Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building ISO #33

Open
jdeane opened this issue Mar 14, 2024 · 6 comments
Open

Error building ISO #33

jdeane opened this issue Mar 14, 2024 · 6 comments

Comments

@jdeane
Copy link

jdeane commented Mar 14, 2024

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
Copy link
Member

Frewacom commented Mar 14, 2024

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
Copy link
Author

jdeane commented Mar 14, 2024

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
Copy link
Member

The package definition for rbw needs to be uncommented as well, since it is where the error originates from:

(define-public rbw-latest
(package
(name "rbw")
(version "1.4.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "rbw" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0mzmzr06rx9yc4ll99l6lbz48ix57awfrgq4q1p26a17rd7x5qxw"))))
(build-system cargo-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'configure 'relax-requirements
(lambda _
(substitute*
"guix-vendor/rust-password-hash-0.3.2.tar.gz/Cargo.toml"
(("version = \">=1, <1.1.0\"") "version = \">=1\""))
(substitute*
"guix-vendor/rust-rsa-0.5.0.tar.gz/Cargo.toml"
(("version = \">=1, <1.5\"") "version = \"^1\""))
(substitute*
"Cargo.toml"
(("version = \"1.4\"") "version = \"^1\"")))))
#:cargo-inputs
(("rust-aes" ,rust-aes-0.7)
("rust-anyhow" ,rust-anyhow-1)
("rust-arrayvec" ,rust-arrayvec-0.7)
("rust-async-trait" ,rust-async-trait-0.1)
("rust-base32" ,rust-base32-0.4)
("rust-base64" ,rust-base64-0.13)
("rust-block-modes" ,rust-block-modes-0.8)
("rust-block-padding" ,rust-block-padding-0.2.1)
("rust-daemonize" ,rust-daemonize-0.4)
("rust-directories" ,rust-directories-4)
("rust-env-logger" ,rust-env-logger-0.9)
("rust-hkdf" ,rust-hkdf-0.11)
("rust-hmac" ,rust-hmac-0.11)
("rust-humantime" ,rust-humantime-2)
("rust-libc" ,rust-libc-0.2)
("rust-log" ,rust-log-0.4)
("rust-nix" ,rust-nix-0.23)
("rust-paw" ,rust-paw-1)
("rust-pbkdf2" ,rust-pbkdf2-0.9)
("rust-percent-encoding" ,rust-percent-encoding-2)
("rust-rand" ,rust-rand-0.8)
("rust-region" ,rust-region-3)
("rust-reqwest" ,rust-reqwest-0.11)
("rust-rsa" ,rust-rsa-0.5)
("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-serde-path-to-error" ,rust-serde-path-to-error-0.1)
("rust-serde-repr" ,rust-serde-repr-0.1)
("rust-sha-1" ,rust-sha-1-0.9)
("rust-sha2" ,rust-sha2-0.9.9)
("rust-structopt" ,rust-structopt-0.3)
("rust-tempfile" ,rust-tempfile-3)
("rust-term-size" ,rust-term-size-0.3)
("rust-textwrap" ,rust-textwrap-0.11)
("rust-thiserror" ,rust-thiserror-1)
("rust-tokio" ,rust-tokio-1)
("rust-totp-lite" ,rust-totp-lite-1)
("rust-url" ,rust-url-2)
("rust-uuid" ,rust-uuid-0.8)
("rust-zeroize" ,rust-zeroize-1))))
(native-inputs
(list perl))
(home-page "https://git.tozt.net/rbw")
(synopsis "Unofficial Bitwarden CLI")
(description "This package is an unofficial command line client for
Bitwarden. Although Bitwarden ships with a command line client, but
it's limited by being stateless, which makes it very difficult to use. This
client avoids that problem by maintaining a background process which is able
to hold the keys in memory, similar to the way that ssh-agent or gpg-agent
work. This allows the client to be used in a much simpler way, with the
background agent taking care of maintaining the necessary state.")
(license license:expat)))

@jdeane
Copy link
Author

jdeane commented Mar 14, 2024

Hi,

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

@Frewacom
Copy link
Member

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
Copy link
Author

jdeane commented Mar 15, 2024

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

Thanks for your time,
Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants