Skip to content

openshadinglanguage: remove libclang as shared lib - #546530

Open
amarshall wants to merge 2 commits into
NixOS:masterfrom
amarshall:blender-hip-fix
Open

openshadinglanguage: remove libclang as shared lib#546530
amarshall wants to merge 2 commits into
NixOS:masterfrom
amarshall:blender-hip-fix

Conversation

@amarshall

@amarshall amarshall commented Jul 28, 2026

Copy link
Copy Markdown
Member

See commit msgs for details.

Fixes #530702

Things done

Built pkgsRocm.blender and tested HIP GPU render and OSL CPU render.

Removing these seems to cause no build issues or issues using in
Blender. `clang` in nativeBuildInputs should be redundant since
`LLVM_BC_GENERATOR` is set explicitly.
This seems unnecessary since build succeeds, and OSL render in Blender
also succeeds.

It is necessary since adding libclang-cpp.so pulls in libLLVM, which we
are trying to avoid with LLVM_STATIC since it causes libLLVM conflicts
downstream in e.g. `pkgsRocm.blender`.

See NixOS#530702.
@amarshall
amarshall marked this pull request as ready for review July 28, 2026 02:59

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to better understand why upstream does this, and why we don’t need it even in “shared” mode (admittedly I don’t get it), to see if this or something similar can be upstreamed. Needs investigation though and that may take some time.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jul 28, 2026
@amarshall

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review
Commit: fc6c01f1e4d22b934d1d4bda596a8d7cf96ab29f


x86_64-linux

❌ 1 package failed to build:
  • vtk_9_6
✅ 11 packages built:
  • blender
  • blendfarm
  • exhibit
  • f3d
  • openshadinglanguage (python314Packages.openshadinglanguage)
  • openusd
  • python313Packages.f3d
  • python313Packages.openshadinglanguage
  • python313Packages.openusd
  • python314Packages.f3d
  • python314Packages.openusd

@amarshall
amarshall requested a review from veprbl July 28, 2026 13:27
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

blender: crashes when using GPU rendering with HIP

1 participant