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: bitsandbytes 0.43.1 #342458

Closed
ovitus opened this issue Sep 17, 2024 · 4 comments
Closed

Build failure: bitsandbytes 0.43.1 #342458

ovitus opened this issue Sep 17, 2024 · 4 comments
Labels
0.kind: build failure A package fails to build

Comments

@ovitus
Copy link

ovitus commented Sep 17, 2024

I'm on the following nixpkg commit: 4f807e8

The patch for this derivation isn't relevant to the newer versions of bitsandbytes and the build fails:

[wright@nixos:~/nixos]$ nix log /nix/store/zh5x0w37nhmp7qlj57710fjdpq7bsljj-python3.12-bitsandbytes-0.43.1.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/zh5x0w37nhmp7qlj57710fjdpq7bsljj-python3.12-bitsandbytes-0.43.1.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setup-cuda-hook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/742rqjwycc77jkai3czrkx8515vapzld-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_triton.py
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
substitute(): ERROR: file 'Makefile' does not exist

https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/python-modules/bitsandbytes/default.nix

https://github.com/bitsandbytes-foundation/bitsandbytes/tree/0.43.1

The newest version of bitsandbytes is 0.43.3.

@ovitus ovitus added the 0.kind: build failure A package fails to build label Sep 17, 2024
@dotlambda
Copy link
Member

Nobody is going to help you if you don't ping the maintainers.

@ovitus
Copy link
Author

ovitus commented Sep 17, 2024

@mweinelt

@mweinelt
Copy link
Member

Try again. The maintainer is @bcdarwin.

@ovitus
Copy link
Author

ovitus commented Sep 22, 2024

I got the latest package installed:

{ buildPythonPackage
, cmake
, cudaPackages
, fetchFromGitHub
}:
with cudaPackages;
buildPythonPackage 
{ buildInputs = 
  [ libcublas
    libcusparse
  ];
  nativeBuildInputs =
  [ cmake
    cuda_nvcc
  ];
  pname = "bitsandbytes";
  preBuild = ''
    cd ..
    export NVCC_APPEND_FLAGS="-I${lib.getDev cuda_cccl}/include -I${lib.getDev cuda_cudart}/include -L${lib.getLib cuda_cudart}/lib -L${lib.getStatic cuda_cudart}/lib"
    cmake -DCMAKE_CXX_FLAGS="-I${lib.getDev cuda_cccl}/include -I${lib.getDev cuda_cudart}/include" -DCOMPUTE_BACKEND=cuda -B build . && cmake --build build
  '';
  src = fetchFromGitHub
  { owner = "TimDettmers";
    repo = "bitsandbytes";
    rev = "main";
    hash = "sha256-YOvbMEpRVrbie5mo+mHV9mkfVIbPGgIggR10GLveBgM=";
  };
  version = "0.44.0.dev0";
}

I found this helpful to work off of:
#224291

@aucub aucub closed this as completed Dec 23, 2024
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

No branches or pull requests

4 participants