-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
0.kind: build failureA package fails to buildA package fails to build
Description
Nixpkgs version
- Unstable (26.05)
Steps to reproduce
I wasn't sure if I would mess up the CI/CD by include (cuda) to specify that this is specifically a build failure that occurs with CUDA-enabled builds of openimagedenoise, which is pulled in by blender.
- Nixpkgs on branch
nixos-unstablecommit cda4854 nix-build --arg config "{cudaSupport=true;allowUnfree=true;}" -A openimagedenoise
errors because of failure to apply cuda.patch
I plan to submit a PR to fix this since the patch is pretty simple and I'm honestly surprised that the patch is failing to apply cleanly.
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
https://hydra.nixos-cuda.org/build/261424/nixlog/1
Relevant log output
[user@hostname:~/nixpkgs]$ nix-build --arg config "{cudaSupport=true;allowUnfree=true;}" -A openimagedenoise
this derivation will be built:
/nix/store/rzbby6z1kskqw1wbpkva4rfn7z7ysm5l-openimagedenoise-2.4.1.drv
building '/nix/store/rzbby6z1kskqw1wbpkva4rfn7z7ysm5l-openimagedenoise-2.4.1.drv'...
Sourcing setup-cuda-hook
source: sourcing removeStubsFromRunpathHook.bash (hostOffset=0) (targetOffset=1)
source: added removeStubsFromRunpathHookRegistration to prePhases
Sourcing fix-elf-files.sh
Running phase: removeStubsFromRunpathHookRegistration
removeStubsFromRunpathHookRegistration: added removeStubsFromRunpath to postFixupHooks
Running phase: unpackPhase
unpacking source archive /nix/store/5vw2d0q7msfx2bvsakxdwf389i29d98n-source
source root is source
Running phase: patchPhase
applying patch /nix/store/922qaxfmdgjhk64sx6gqx2iqdxkn3401-cuda.patch
patching file devices/CMakeLists.txt
Hunk #1 FAILED at 53.
Hunk #2 succeeded at 78 (offset 9 lines).
1 out of 2 hunks FAILED -- saving rejects to file devices/CMakeLists.txt.rej
error: Cannot build '/nix/store/rzbby6z1kskqw1wbpkva4rfn7z7ysm5l-openimagedenoise-2.4.1.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/bx013yckj52fwg0n4wclwjvhllqxmjb9-openimagedenoise-2.4.1
Last 15 log lines:
> Sourcing setup-cuda-hook
> source: sourcing removeStubsFromRunpathHook.bash (hostOffset=0) (targetOffset=1)
> source: added removeStubsFromRunpathHookRegistration to prePhases
> Sourcing fix-elf-files.sh
> Running phase: removeStubsFromRunpathHookRegistration
> removeStubsFromRunpathHookRegistration: added removeStubsFromRunpath to postFixupHooks
> Running phase: unpackPhase
> unpacking source archive /nix/store/5vw2d0q7msfx2bvsakxdwf389i29d98n-source
> source root is source
> Running phase: patchPhase
> applying patch /nix/store/922qaxfmdgjhk64sx6gqx2iqdxkn3401-cuda.patch
> patching file devices/CMakeLists.txt
> Hunk #1 FAILED at 53.
> Hunk #2 succeeded at 78 (offset 9 lines).
> 1 out of 2 hunks FAILED -- saving rejects to file devices/CMakeLists.txt.rej
For full logs, run:
nix-store -l /nix/store/rzbby6z1kskqw1wbpkva4rfn7z7ysm5l-openimagedenoise-2.4.1.drvAdditional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.18.18, NixOS, 26.05 (Yarara), 26.05pre963917.5b2c2d84341b - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.3 - nixpkgs:
/nix/store/01khq96pqw16y2sg1v6l8q0qfgnhsijd-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to buildA package fails to build