Skip to content

Build failure: openimagedenoise #500946

@d-r-a-b

Description

@d-r-a-b

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.

  1. Nixpkgs on branch nixos-unstable commit cda4854
  2. 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.drv

Additional 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

@LeshaInc


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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions