Skip to content

tests.cuda fails to evaluate: "Function called without required argument "backendStdenv" #280377

Closed

Description

@trofi

Describe the bug

Noticed the test evaluation failure when explored nixpkgs attributes for obvious instantiation mistakes.

The reproducer:

$ nix-instantiate '<nixpkgs>' -A tests.cuda
error:
       … while calling the 'abort' builtin

         at lib/customisation.nix:210:13:

          209|        # which is especially relevant with allowAliases = false
          210|        else abort "lib.customisation.callPackageWith: ${error}";
             |             ^
          211|

       error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "backendStdenv" at pkgs/test/cuda/cuda-library-samples/generic.nix:3'

Expected behavior

The test set should instantiate successfully.

Notify maintainers

@ConnorBaker @samuela @SomeoneSerge

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.10, NixOS, 24.05 (Uakari), 24.05.20240111.be34eb4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(root): `""`
 - channels(slyfox): `""`
 - nixpkgs: `/run/current-system/sw/share/nixos-flakes/inputs/nixpkgs`

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Jan 11, 2024
  2. added
    6.topic: cuda
    on Jan 11, 2024
  3. SomeoneSerge commented on Jan 11, 2024

    @SomeoneSerge
    Contributor

    Oh, again, CC #279684 #279703 @NixOS/cuda-maintainers

    The immediate error is that this should be cudaPackages_XX.callPackage, not pkgs.callPackage. That said though, the samples are already part of the cudaPackages scope, e.g. cudaPackages_11_8.cuda-library-samples. As mentioned in the referenced issue, we should move them out of pkgs/tests bc right now cudaPackages weirdly depend on pkgs/tests and they shouldn't

  4. SomeoneSerge commented on Jan 24, 2024

    @SomeoneSerge
    Contributor
  5. moved this from New to ✅ Done in CUDA Teamon Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug6.topic: cuda

    Projects

    • Status
      ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions