From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 14 15:53:11 2023 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: Subject: Re: Cannot use modules with an inferior kernel. From: Liliana Marie Prikler To: Robby Zambito , 62174@debbugs.gnu.org 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-Debbugs-Envelope-To: 62174 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