From unknown Sun Jun 22 04:19:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62174: Cannot use modules with an inferior kernel. Resent-From: Robby Zambito Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Mar 2023 03:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62174 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 62174@debbugs.gnu.org X-Debbugs-Original-To: Guix Bugs Received: via spool by submit@debbugs.gnu.org id=B.167876632111481 (code B ref -1); Tue, 14 Mar 2023 03:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2023 03:58:41 +0000 Received: from localhost ([127.0.0.1]:35969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbvo9-0002z7-0f for submit@debbugs.gnu.org; Mon, 13 Mar 2023 23:58:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:36882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbvo6-0002yx-S1 for submit@debbugs.gnu.org; Mon, 13 Mar 2023 23:58:39 -0400 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 1pbvo6-0002hK-Kz for bug-guix@gnu.org; Mon, 13 Mar 2023 23:58:38 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbvo4-0007sL-O4 for bug-guix@gnu.org; Mon, 13 Mar 2023 23:58:38 -0400 Received: (Authenticated sender: contact@robbyzambito.me) by mail.gandi.net (Postfix) with ESMTPSA id 055751BF205 for ; Tue, 14 Mar 2023 03:58:31 +0000 (UTC) User-agent: mu4e 1.8.13; emacs 28.2 From: Robby Zambito Date: Mon, 13 Mar 2023 23:27:06 -0400 Message-ID: <87mt4gass9.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.201; envelope-from=contact@robbyzambito.me; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi, I use an inferior to pin my kernel version, but it seems like I cannot use modules with it. The following works fine: ``` (use-package-modules linux) (operating-system ... (kernel linux-libre) (kernel-loadable-modules (list v4l2loopback-linux-module)) ...) ``` As does the following: ``` (define rz/linux (let* ((channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "c81d2d448cbd051800867fe3f4b82ef3f4380ebf")))) (inferior (inferior-for-channels channels)) (kernel-version "6.1.15")) (first (lookup-inferior-packages inferior "linux-libre" kernel-version)= ))) (operating-system ... (kernel rz/linux) ...) ``` However when I combine the two (using the inferior for the kernel + specify modules)... ``` (operating-system ... (kernel rz/linux) (kernel-loadable-modules (list v4l2loopback-linux-module)) ...) ``` I get the following error: ``` Backtrace: In guix/store.scm: 659:37 19 (thunk) 1298:8 18 (call-with-build-handler # =E2=80=A6) 2168:25 17 (run-with-store # =E2=80= =A6) In guix/scripts/system.scm: 843:2 16 (_ _) 717:8 15 (_ #) In gnu/system.scm: 1307:19 14 (operating-system-derivation _) In gnu/services.scm: 1140:36 13 (_ _) In srfi/srfi-1.scm: 586:29 12 (map1 (#< type: #= =E2=80=A6)) 586:29 11 (map1 (#< type: #= =E2=80=A6)) 586:29 10 (map1 (#< type: #= =E2=80=A6)) 586:29 9 (map1 (#< type: #= =E2=80=A6)) 586:17 8 (map1 (#< type: #)) In gnu/services.scm: 951:29 7 (linux-builder-configuration->system-entry _) In guix/profiles.scm: 438:4 6 (packages->manifest _) In srfi/srfi-1.scm: 586:17 5 (map1 ((#)= =E2=80=A6)) In guix/inferior.scm: 549:2 4 (loop (#) =E2=80=A6) 529:4 3 (inferior-package-input-field (#) =E2=80=A6) 473:18 2 (inferior-package-field (#) =E2=80=A6) 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: In procedure struct-vtable: Wrong type argument in position 1 (expecting st= ruct): (#) ``` It seems to me like this is a bug. If I am mistaken, some guidance would be appreciated. Thanks, Robby From unknown Sun Jun 22 04:19:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62174: Cannot use modules with an inferior kernel. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Mar 2023 19:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62174 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Robby Zambito , 62174@debbugs.gnu.org Received: via spool by 62174-submit@debbugs.gnu.org id=B62174.16788235928501 (code B ref 62174); Tue, 14 Mar 2023 19:54:01 +0000 Received: (at 62174) by debbugs.gnu.org; 14 Mar 2023 19:53:12 +0000 Received: from localhost ([127.0.0.1]:38528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcAhr-0002D2-Hx for submit@debbugs.gnu.org; Tue, 14 Mar 2023 15:53:11 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcAhp-0002Cp-8a for 62174@debbugs.gnu.org; Tue, 14 Mar 2023 15:53:09 -0400 Received: by mail-ed1-f65.google.com with SMTP id eh3so10830379edb.11 for <62174@debbugs.gnu.org>; Tue, 14 Mar 2023 12:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678823583; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=DaDTc66OyFQ0uDEC0OvIAgURbUEvLwm9vAT78jNZMx0=; b=KbhsamFaFoLbXyCoqkgzlpvU8A1UfLwj608y7JYeOVhesL3PY7FsE4lKJ/E40lRD0I YzWDfaqhil/+jJNyCx1DrT/Yo5Mkraab8Yqv6X7yPv8joXt6QqiE5+Z0C85G1RY3F1Rk 0wPHd9Hu5dnMEvfafCU/zp8YpHEOERk0sFkTMX+nsiJJS/UTkt8e44Lq41d2O5EFhxWc rm3fvsE5rPYV1Lo4wdG4CagCzuljIpjHEmlWrFKjKLZsqxYsrrS1jvCeunZKfd6eWZlr L939uFz5ecpkXXXqUvKTilobDgeNF2i+5EZ9MlkDWhMVEjdbsWfSop+zUeTOLqd3Zwf4 yGXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678823583; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DaDTc66OyFQ0uDEC0OvIAgURbUEvLwm9vAT78jNZMx0=; b=pWNZziCxvkOappevXGultzKo6o7ZElbXGFEaRjXSvl9M9HmfYA1ravvuQdwoj15pMQ F0zgI3iyaxhbNlqYCaLxgG+M/WmgkA3QZxgV1glS2QJbSrKubxlQvQ6KzhYMUmiC4Gjt e+uaBrYsFtoQuCli2Xo0f4rftr9hJbyWXV5D1ufm9ttmv+EGHfuSRUXchYdqPloOCbOp B2wxexfdVL2X2i3N38B3KxPEFPiz3+WGvNzORD+1Awv5soYr8ENNc06udf1PyIpK9pi3 pQG4vP14zilKO82dBjN1eJ5tTzpYVdTqh+XYNcLCrCF6qfSYqAc4h9OqV1veKFwTOe/Y XoBw== X-Gm-Message-State: AO0yUKXYV2o00KeCBe6U0+eLh5SJX4zLuSLPhkxig/DPFqvp7VevE9h8 1Yyz0nr6pO8b3JzoPfl1pOns9gbFVgd3tw== X-Google-Smtp-Source: AK7set/vmfnNUxrs7+dM5p7wR/dwPZ0Af/057lEl1df50zM53zlAr+NtCOJQ0hZz1kLcV/B5h5YTyA== X-Received: by 2002:a17:906:68c:b0:929:d2f4:1824 with SMTP id u12-20020a170906068c00b00929d2f41824mr3748160ejb.21.1678823583369; Tue, 14 Mar 2023 12:53:03 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id l1-20020a170906644100b0091f5e98abd5sm1515821ejn.133.2023.03.14.12.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 12:53:03 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 14 Mar 2023 20:53:02 +0100 In-Reply-To: <87mt4gass9.fsf@robbyzambito.me> References: <87mt4gass9.fsf@robbyzambito.me> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Montag, dem 13.03.2023 um 23:27 -0400 schrieb Robby Zambito: > Hi, >=20 > I use an inferior to pin my kernel version, but it seems like I > cannot > use modules with it. The following works fine: >=20 > ``` > (use-package-modules linux) > (operating-system > =C2=A0 ... > =C2=A0 (kernel linux-libre) > =C2=A0 (kernel-loadable-modules (list v4l2loopback-linux-module)) > =C2=A0 ...) > ``` >=20 > As does the following: >=20 > ``` > (define rz/linux > =C2=A0 (let* ((channels > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list (channel > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (name 'guix) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (url "https://git.savannah.gnu.org/git/guix.git") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (commit > "c81d2d448cbd051800867fe3f4b82ef3f4380ebf")))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (inferior (inferior-for-= channels channels)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (kernel-version "6.1.15"= )) > =C2=A0=C2=A0=C2=A0 (first (lookup-inferior-packages inferior "linux-libre= " kernel- > version)))) >=20 > (operating-system > =C2=A0 ... > =C2=A0 (kernel rz/linux) > =C2=A0 ...) > ``` >=20 > However when I combine the two (using the inferior for the kernel + > specify modules)... >=20 > ``` > (operating-system > =C2=A0 ... > =C2=A0 (kernel rz/linux) > =C2=A0 (kernel-loadable-modules (list v4l2loopback-linux-module)) > =C2=A0 ...) > ``` >=20 > I get the following error: >=20 > ``` > Backtrace: > In guix/store.scm: > =C2=A0=C2=A0 659:37 19 (thunk) > =C2=A0=C2=A0 1298:8 18 (call-with-build-handler # > =E2=80=A6) > =C2=A0 2168:25 17 (run-with-store # > =E2=80=A6) > In guix/scripts/system.scm: > =C2=A0=C2=A0=C2=A0 843:2 16 (_ _) > =C2=A0=C2=A0=C2=A0 717:8 15 (_ #) > In gnu/system.scm: > =C2=A0 1307:19 14 (operating-system-derivation _) > In gnu/services.scm: > =C2=A0 1140:36 13 (_ _) > In srfi/srfi-1.scm: > =C2=A0=C2=A0 586:29 12 (map1 (#< type: # > =E2=80=A6)) > =C2=A0=C2=A0 586:29 11 (map1 (#< type: # > =E2=80=A6)) > =C2=A0=C2=A0 586:29 10 (map1 (#< type: # > =E2=80=A6)) > =C2=A0=C2=A0 586:29=C2=A0 9 (map1 (#< type: # > =E2=80=A6)) > =C2=A0=C2=A0 586:17=C2=A0 8 (map1 (#< type: # =E2=80=A6>)) > In gnu/services.scm: > =C2=A0=C2=A0 951:29=C2=A0 7 (linux-builder-configuration->system-entry _) > In guix/profiles.scm: > =C2=A0=C2=A0=C2=A0 438:4=C2=A0 6 (packages->manifest _) > In srfi/srfi-1.scm: > =C2=A0=C2=A0 586:17=C2=A0 5 (map1 ((#) > =E2=80=A6)) > In guix/inferior.scm: > =C2=A0=C2=A0=C2=A0 549:2=C2=A0 4 (loop (#) > =E2=80=A6) > =C2=A0=C2=A0=C2=A0 529:4=C2=A0 3 (inferior-package-input-field (#) > =E2=80=A6) > =C2=A0=C2=A0 473:18=C2=A0 2 (inferior-package-field (#) > =E2=80=A6) > In ice-9/boot-9.scm: > =C2=A0 1685:16=C2=A0 1 (raise-exception _ #:continuable? _) > =C2=A0 1685:16=C2=A0 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 > (expecting struct): (# linux-libre@6.1.15=C2=A07ff5261088a0>) > ``` >=20 > It seems to me like this is a bug. If I am mistaken, some guidance > would be appreciated. I think you should try to pin the kernel modules as well. If that still doesn't work as intended (it very well might), we have a proper case of something that should work but doesn't. Cheers From unknown Sun Jun 22 04:19:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62174: Cannot use modules with an inferior kernel. Resent-From: Robby Zambito Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Mar 2023 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62174 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: 62174@debbugs.gnu.org Received: via spool by 62174-submit@debbugs.gnu.org id=B62174.167883439627024 (code B ref 62174); Tue, 14 Mar 2023 22:54:01 +0000 Received: (at 62174) by debbugs.gnu.org; 14 Mar 2023 22:53:16 +0000 Received: from localhost ([127.0.0.1]:38602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcDW8-00071o-Aj for submit@debbugs.gnu.org; Tue, 14 Mar 2023 18:53:16 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:54355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcDW6-00071a-Iz for 62174@debbugs.gnu.org; Tue, 14 Mar 2023 18:53:15 -0400 Received: (Authenticated sender: contact@robbyzambito.me) by mail.gandi.net (Postfix) with ESMTPSA id 5E238100003; Tue, 14 Mar 2023 22:53:04 +0000 (UTC) References: <87mt4gass9.fsf@robbyzambito.me> User-agent: mu4e 1.8.13; emacs 28.2 From: Robby Zambito Date: Tue, 14 Mar 2023 17:48:04 -0400 In-reply-to: Message-ID: <87sfe73pyq.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Liliana Marie Prikler writes: > I think you should try to pin the kernel modules as well. If that > still doesn't work as intended (it very well might), we have a proper > case of something that should work but doesn't. > > Cheers Thanks for the suggestion. I tested with the following: ``` (define-values (rz/linux rz/linux-kernel-modules) (let* ((channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "d37b467631d5b0e965ea933b8bda8448993580e9")))) (inferior (inferior-for-channels channels)) (kernel-version "6.1.15")) (values (first (lookup-inferior-packages inferior "linux-libre" kernel-version)) (list (first (lookup-inferior-packages inferior "v4l2loopback-linux-module")))))) (operating-system ... (kernel rz/linux) (kernel-loadable-modules rz/linux-kernel-modules) ...) ``` But I receive a different error now: ``` running profile hook of type 'linux-module-database'... Backtrace: 1 (primitive-load "/gnu/store/7ha0kn8fz8yfi26m3m8997wlc8m?") In ice-9/boot-9.scm: 2007:7 0 (error _ . _) ice-9/boot-9.scm:2007:7: In procedure error: Specified Linux kernel and Linux kernel modules are not all of the same version ``` However, if I use the most recent kernel version available in the inferior... ``` (define-values (rz/linux rz/linux-kernel-modules) (let* ((channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "d37b467631d5b0e965ea933b8bda8448993580e9")))) (inferior (inferior-for-channels channels)) (kernel-version "6.2.2")) (values (first (lookup-inferior-packages inferior "linux-libre")) (list (first (lookup-inferior-packages inferior "v4l2loopback-linux-module")))))) ``` It actually works! So it seems that the problem is specifically with using kernel modules with a kernel version other than the latest linux-libre kernel from an inferior. I also tried using a specific kernel version without an inferior like so: ``` (operating-system ... (kernel (specification->package "linux-libre@6.1.15")) (kernel-loadable-modules (list (specification->package"v4l2loopback-linux-module"))) ...) ``` And that works as well. TL;DR: The issue has been narrowed down to using kernel modules with a kernel from an inferior besides the latest kernel from that inferior. From unknown Sun Jun 22 04:19:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62174: Cannot use modules with an inferior kernel. Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 15 Mar 2023 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62174 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Robby Zambito Cc: Liliana Marie Prikler , 62174@debbugs.gnu.org Received: via spool by 62174-submit@debbugs.gnu.org id=B62174.167888012229955 (code B ref 62174); Wed, 15 Mar 2023 11:36:02 +0000 Received: (at 62174) by debbugs.gnu.org; 15 Mar 2023 11:35:22 +0000 Received: from localhost ([127.0.0.1]:39196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcPPe-0007n4-AM for submit@debbugs.gnu.org; Wed, 15 Mar 2023 07:35:22 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:54644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcPPb-0007mv-UC for 62174@debbugs.gnu.org; Wed, 15 Mar 2023 07:35:20 -0400 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1678880117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ex6ZDzO6BK8JFaGh4LaWYEc1NCZ8G8qSBBsPAqST1vc=; b=dvV42n9J3Oq+X2OzA6vxhCbZ4GmZDHyQNR6A2AH27MQLRMcP/gNzwpfZGJaFARpnM6Dn9+ /sUhQKiFV+BBivHz1QXIa/MRR9uGBuvkAnhWD2U2y3GtCi6Zvltd4eWndQLeF7e7Gj0VWB IanPWEaovPRGsMdm76BsA7Qt39+G3/g= In-Reply-To: <87sfe73pyq.fsf@robbyzambito.me> References: <87mt4gass9.fsf@robbyzambito.me> <87sfe73pyq.fsf@robbyzambito.me> Date: Wed, 15 Mar 2023 12:35:16 +0100 Message-ID: <87h6umtfgr.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robby Zambito writes: > Liliana Marie Prikler writes: >> I think you should try to pin the kernel modules as well. If that >> still doesn't work as intended (it very well might), we have a proper >> case of something that should work but doesn't. >> >> Cheers > > Thanks for the suggestion. I tested with the following: > > ``` > (define-values (rz/linux rz/linux-kernel-modules) > (let* ((channels > (list (channel > (name 'guix) > (url "https://git.savannah.gnu.org/git/guix.git") > (commit "d37b467631d5b0e965ea933b8bda8448993580e9")))) > (inferior (inferior-for-channels channels)) > (kernel-version "6.1.15")) > (values (first (lookup-inferior-packages inferior "linux-libre" kernel-version)) > (list (first (lookup-inferior-packages inferior "v4l2loopback-linux-module")))))) > > (operating-system > ... > (kernel rz/linux) > (kernel-loadable-modules rz/linux-kernel-modules) > ...) > ``` > > But I receive a different error now: > > ``` > running profile hook of type 'linux-module-database'... > Backtrace: > 1 (primitive-load "/gnu/store/7ha0kn8fz8yfi26m3m8997wlc8m?") > In ice-9/boot-9.scm: > 2007:7 0 (error _ . _) > > ice-9/boot-9.scm:2007:7: In procedure error: > Specified Linux kernel and Linux kernel modules are not all of the same version > ``` > > However, if I use the most recent kernel version available in the > inferior... > > ``` > (define-values (rz/linux rz/linux-kernel-modules) > (let* ((channels > (list (channel > (name 'guix) > (url "https://git.savannah.gnu.org/git/guix.git") > (commit "d37b467631d5b0e965ea933b8bda8448993580e9")))) > (inferior (inferior-for-channels channels)) > (kernel-version "6.2.2")) > (values (first (lookup-inferior-packages inferior "linux-libre")) > (list (first (lookup-inferior-packages inferior "v4l2loopback-linux-module")))))) > ``` > > It actually works! So it seems that the problem is specifically with > using kernel modules with a kernel version other than the latest > linux-libre kernel from an inferior. I also tried using a specific > kernel version without an inferior like so: > > ``` > (operating-system > ... > (kernel (specification->package "linux-libre@6.1.15")) > (kernel-loadable-modules (list (specification->package"v4l2loopback-linux-module"))) > ...) > ``` > > And that works as well. > > TL;DR: The issue has been narrowed down to using kernel modules with a > kernel from an inferior besides the latest kernel from that inferior. I believe our kernel-loadable-modules is backed by a service with type linux-builder-service-type. It seems that the linux-builder-configuration->system-entry only deals gracefully with modules that are filtered by "(package? mod)" in order to rewrite the package with "package-for-kernel". So there are some things we'd need to do to ensure your use case works: - Get linux-builder-configuration->system-entry to support packages from an inferior. Can you try to wrap your kernel module package like such [untested], with rz/linux being the kernel inferior package you actually want: --8<---------------cut here---------------start------------->8--- (kernel rz/linux) (kernel-loadable-modules (map (lambda (mod) (package-for-kernel lz/linux mod)) rz/linux-kernel-modules)) --8<---------------cut here---------------end--------------->8--- If this doesn't work, we also need to make package-for-kernel support packages from an inferior for both the kernel and module argument, or create an alternative implementation that deals `linux-builder-configuration->system-entry' can dispatch to for this specific case. Good luck! - Jelle