From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uFMPOvg4tmMCRQAAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 03:42:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UDzzOfg4tmN5JwAAauVa8A (envelope-from ) for ; Thu, 05 Jan 2023 03:42:00 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8FAE33F011 for ; Thu, 5 Jan 2023 03:42:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDGCF-0007oF-Kd; Wed, 04 Jan 2023 21:41:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDGCD-0007nl-JQ for help-guix@gnu.org; Wed, 04 Jan 2023 21:41:33 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDGCA-0006Tu-W5 for help-guix@gnu.org; Wed, 04 Jan 2023 21:41:33 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4NnW201397z9s8H; Thu, 5 Jan 2023 02:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1672886488; bh=ZKeu4bE3oLYIYTP2Jb5P5oZSsSUdpdMR/+akLoHPELw=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Wio8Qi0ninh+HWqX+1tacU4fP0Idpb3Ej/FOCefWmJP1R37xpI/4c7Xw5mgNPsSK5 n39HqBonPksYLL2FKWdL0wviWJA6+0uS1gUzBtOEttrbnEfTCAV4Dp9r9G5Vb5A5LZ rDsa3b8RKBiptJKwhi0XXD2ucEuvopZWqp05BAN8= X-Riseup-User-ID: C0AF5CC79BFF03EAAE4EF0536FC8BF8466F2073967E2CA26718E711D372CCD11 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4NnW1z30rSz1y9N; Thu, 5 Jan 2023 02:41:27 +0000 (UTC) References: <2f4c5155-c382-4126-83e9-466cb4110aae@gmail.com> From: Csepp To: Reza Housseini Cc: help-guix@gnu.org Subject: Re: Strange error when adding module gnu/packages/engineering Date: Thu, 05 Jan 2023 03:34:02 +0100 In-reply-to: <2f4c5155-c382-4126-83e9-466cb4110aae@gmail.com> Message-ID: <865ydlvh2j.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672886520; a=rsa-sha256; cv=none; b=rXnx3/WSfrzL0nn8Wb3hxvGNkqampZu+lOW2xN/4ce6xhAB/QdglZwgDgehvzkhkEzUX6B sj7L7XAVR2K3Ew9J7fZUf6CBKo3z0THGpJjdx5KtqDNX0kpjPkF4E1kahqCjHcQgGmOjJe DEYkM7t/Qg2qhbM7ldgvgZTXhqdxjebDXPxUXRpZWKVPqby1Vy8JYuMlzJqu//++AbFsIC FXCzFjVtYFzZJvSzZqciS6JJ6boryaSxqNpg3odkrN/y1UHsKEaApAJ6SKYWTqs3OAPYGh inSzeHhj2UB8kZtvQi/R3Ve2StE3Z2K5vCiN0sBgiCqaUX8Ud4cXndMBstud7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Wio8Qi0n; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672886520; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Jh9AzLoAZrvtvMFb36A1LXmj8B3RcTRCbgXxNjWVClo=; b=nx33pqGLikXWtURJOxsU2qw6yao8E8ohrFDGX7TIRmghsiN+tns/5fnniAZ+I5nnTQscgI mSVR0JQyfOL1VH7QXuopTDkmKzr2/o3J8K/bQeWGTc3l1vvCcRotRrqN5mVULaD01kEQ+U DmEWYvyixYFh6mkBfOO0JInHE0ahkI5ZzsF2WQgO8BPFpc7YeiHWlQrqx1ieLipvZxur6G igLf3ax8gND8OECT6ZzBYSa0LnOW9LcHOxGnp5Ycxt7H9xUmUaKELULCyWrVzniwT3NVPO DffuOQ27e3+vv3pf4l1BMm2Diz6rqN50IPYLPbRQWA8rZTHMXcf9UhYoHAHiIw== X-Spam-Score: -12.05 X-Migadu-Queue-Id: 8FAE33F011 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Wio8Qi0n; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -12.05 X-TUID: dDIrZU2ONqqO Reza Housseini 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 # =E2=80=A6) > 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) # =E2=80= =A6)) > 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 #) > In gnu/packages.scm: > 241:33 9 (fold-packages # =E2=80=A6) > In guix/discovery.scm: > 159:11 8 (all-modules _ #:warn _) > In srfi/srfi-1.scm: > 460:18 7 (fold # =E2=80=A6) > In guix/discovery.scm: > 149:19 6 (_ _ ()) > 116:5 5 (scheme-modules _ _ #:warn _) > In srfi/srfi-1.scm: > 691:23 4 (filter-map # . #) > 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.