unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Csepp <raingloom@riseup.net>
To: Reza Housseini <reza.housseini@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Strange error when adding module gnu/packages/engineering
Date: Thu, 05 Jan 2023 03:34:02 +0100	[thread overview]
Message-ID: <865ydlvh2j.fsf@riseup.net> (raw)
In-Reply-To: <2f4c5155-c382-4126-83e9-466cb4110aae@gmail.com>


Reza Housseini <reza.housseini@gmail.com> writes:

> [[PGP Signed Part:Undecided]]
> Hello Guixers
>
> I'm in the process of adding a package to guix. When starting the
> build with ./pre-inst-env guix build openfoam-org I get the error:
>
> error: tcc: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: googletest: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: bzip2: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: binutils: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: gcc-4.9: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: gnutls: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: xz: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: gnu-make: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: binutils: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: ffmpeg-5: unbound variable
> hint: Did you forget a `use-modules' form?
>
> Throw to key `unbound-variable' with args `("resolve-interface" "no
> binding `~A' in module ~A" (shared-mime-info (gnu packages gnome))
> #f)'.
> Backtrace:
> In guix/store.scm:
>    661:37 19 (thunk)
>    1300:8 18 (call-with-build-handler #<procedure 7f6461f32f90 at g…> …)
> In guix/scripts/build.scm:
>     587:2 17 (_)
> In srfi/srfi-1.scm:
>    673:15 16 (append-map _ _ . _)
>    586:17 15 (map1 ((argument . "openfoam-org") (build-mode . 0) # …))
> In guix/scripts/build.scm:
>    607:31 14 (_ _)
> In gnu/packages.scm:
>     479:2 13 (%find-package "openfoam-org" "openfoam-org" #f)
>     364:6 12 (find-best-packages-by-name _ _)
>    294:56 11 (_ "openfoam-org" _)
> In unknown file:
>           10 (force #<promise #<procedure 7f646440e7e0 at gnu/packag…>)
> In gnu/packages.scm:
>    241:33  9 (fold-packages #<procedure 7f6460c77528 at gnu/package…> …)
> In guix/discovery.scm:
>    159:11  8 (all-modules _ #:warn _)
> In srfi/srfi-1.scm:
>    460:18  7 (fold #<procedure 7f6464472880 at guix/discovery.scm:1…> …)
> In guix/discovery.scm:
>    149:19  6 (_ _ ())
>     116:5  5 (scheme-modules _ _ #:warn _)
> In srfi/srfi-1.scm:
>    691:23  4 (filter-map #<procedure 7f6464472720 at guix/discove…> . #)
> In guix/discovery.scm:
>    124:24  3 (_ . _)
> In guix/ui.scm:
>     321:2  2 (report-unbound-variable-error _ #:frame _)
> In ice-9/boot-9.scm:
>   1685:16  1 (raise-exception _ #:continuable? _)
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Throw to key `match-error' with args `("match" "no matching pattern"
> (unbound-variable "resolve-interface" "no binding `~A' in module ~A"
> (shared-mime-info (gnu packages gnome)) #f))'.
>
> when removing the module gnu/packages/engineering.scm from the
> use-modules list the error disappears but I can't obviously not build
> the package without this dependency (cgns).
>
> The package builds fine otherwise (inside another channel).
>
> What I am doing wrong here?
>
> Cheers,
> Reza

Just to rule out the obvious things:
did you perform a clean rebuild?
ie.: make clean, or git clean -fxd, the bootstrap, configure, make

Also could you send the patch containing your additions?

My guess is that the Guix feature that auto-suggests what module to
import when there is an unbound variable error is matching the list
caught from the exception but its patterns don't cover it.  Maybe it has
an extra element or something?

Also, getting the commit from git that yours builds on might be helpful.


  reply	other threads:[~2023-01-05  2:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04 14:38 Strange error when adding module gnu/packages/engineering Reza Housseini
2023-01-05  2:34 ` Csepp [this message]
2023-01-06 12:13   ` Reza Housseini
2023-01-05 16:02 ` Maxim Cournoyer
2023-01-06 12:14   ` Reza Housseini
2023-01-06 17:42     ` Maxim Cournoyer
2023-01-07  9:05       ` reza.housseini
2023-01-08 20:20       ` Reza Housseini
2023-03-22 20:36       ` Reza Housseini
2023-04-08 19:29         ` Maxim Cournoyer
2023-01-05 16:52 ` Julien Lepiller
2023-01-06 12:15   ` Reza Housseini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865ydlvh2j.fsf@riseup.net \
    --to=raingloom@riseup.net \
    --cc=help-guix@gnu.org \
    --cc=reza.housseini@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).