Repository navigation
Conversation
Stages the riscv64 CMake patch for Blender's build_environment ("make
deps") dependency stage behind a minimal build-bpy.yml that runs just
that stage on the real riscv64 self-hosted runner, to get the first
real CI validation of the patch (prior work only had configure-only
dry runs against a cross-compile toolchain file, no actual riscv64
hardware). The main Blender configure/compile/wheel stage is
deliberately not wired up yet.
luhenry
added a commit
that referenced
this pull request
Oct 15, 2026
…ackage The first CI run on ubuntu-24.04-riscv failed before cmake even configured: dnf has no riscv64 build of patchelf (it ships only via EPEL, which the manylinux_2_39_riscv64 image disables for riscv64) or yasm (no riscv64 package in any Rocky 10 repo, and no real PyPI wheel either). Both are unconditionally required by upstream's check_software.cmake, with no riscv64/arch gate like the deps the CMake patch itself skips. Install patchelf from the riscv64 wheel this repo already publishes (docs/packages/patchelf.yaml) and build yasm from its official release tarball instead of via dnf.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bpy5.2.2(not releasable from this PR - see below)This is not a complete port. It stages only Blender's
build_environmentdependency stage (build_files/build_environment, whatmake deps/ Windows'build_deps.cmdruns) behind a minimalbuild-bpy.ymljob, to get this riscv64 CMake patch validated on the realubuntu-24.04-riscvself-hosted runner for the first time. Earlier work only had configure-only dry runs against a faked cross-compile toolchain file, never an actual riscv64 build. The main Blender configure/compile/wheel stage (bpy_module.cmakeonward) is not wired up, so this PR produces no wheel and should stay draft regardless of CI result.Patch:
0001-build_environment-skip-LLVM-OSL-ISPC-OIDN-Embree-GPU.patch- Inappropriate [riscv64 unsupported by these deps]. AddsBLENDER_PLATFORM_RISCV64(set like the adjacentBLENDER_PLATFORM_ARM) and uses it to skip LLVM/OSL/ISPC/OpenImageDenoise/Embree/level-zero plus the existing ARM-only GPU-vendor cluster (hiprt/dpcpp/igc/gmmlib/ocloc/...), both theinclude()s and theirdownload_source()calls incmake/download.cmake(24 of 117 calls dropped). USD/MaterialX/OpenVDB/Alembic/Draco keep building from source, same as every other non-ARM platform -build_environmentis a structurally separate CMake project with no coupling to the main configure'sWITH_USD/etc flags, so that later decision cannot shrink this stage further. Verified x86_64/aarch64 configure byte-identically with/without the patch; riscv64 drops exactly the 12 intended target families. Does not reproduce off riscv64.Testing: none yet - this PR exists to let CI attempt the actual build for the first time.
License: not assessed - no wheel is produced by this stage.