Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: pcl with CUDA enabled on x86_64-linux #275090

Closed
al3xtjames opened this issue Dec 17, 2023 · 1 comment · Fixed by #275092
Closed

Build failure: pcl with CUDA enabled on x86_64-linux #275090

al3xtjames opened this issue Dec 17, 2023 · 1 comment · Fixed by #275092
Labels
0.kind: build failure A package fails to build

Comments

@al3xtjames
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix develop with the following flake:
{
  inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; };

  outputs = { self, nixpkgs }: {
    devShells = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          config = {
            allowUnfree = true;
            cudaSupport = true;
          };
        };
      in {
        default = pkgs.mkShell {
          buildInputs = [ (pkgs.pcl.override { withCuda = pkgs.config.cudaSupport; }) ];
        };
      });
  };
}

Build log

https://gist.github.com/al3xtjames/64ac677568ba786ed2a1823891157d0d

Additional context

I think this broke with the recent cudaPackages changes, but I haven't figured out the responsible commit.

Notify maintainers

@viric
@samuela
@SomeoneSerge
@ConnorBaker

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.61-hardened1, NixOS, 24.05 (Uakari), 24.05.20231204.2c7f3c0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos"`
 - channels(alex): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a 👍 reaction to issues you find important.

@al3xtjames al3xtjames added the 0.kind: build failure A package fails to build label Dec 17, 2023
al3xtjames added a commit to al3xtjames/nixpkgs that referenced this issue Dec 18, 2023
NixOS#271078 caused the configurePhase of pcl to fail when
withCuda is set to true. Fix NixOS#275090 by replacing
cudatoolkit with cudaPackages.cuda_nvcc.
@samuela
Copy link
Member

samuela commented Dec 18, 2023

Not directly relevant but we should rename withCuda -> cudaSupport for consistency at some point.

github-actions bot pushed a commit that referenced this issue Dec 18, 2023
#271078 caused the configurePhase of pcl to fail when
withCuda is set to true. Fix #275090 by replacing
cudatoolkit with cudaPackages.cuda_nvcc.

(cherry picked from commit 8db5a1a)
Lainera pushed a commit to Lainera/nixpkgs that referenced this issue Dec 20, 2023
NixOS#271078 caused the configurePhase of pcl to fail when
withCuda is set to true. Fix NixOS#275090 by replacing
cudatoolkit with cudaPackages.cuda_nvcc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants