Conversation
zlib-ng's riscv_check_features() runtime-probes the V extension with an inline vsetvli instruction; on the riscv64 CI hardware these wheels build on, that probe itself raises SIGILL, crashing every process that touches zlib_ng (zng_deflateInit2, hit at import time by all three test modules). Patch setup.py to pass zlib-ng's own --without-rvv to configure on riscv64, falling back to the portable C code paths. See the patch's Upstream-Status note for why this can't be done via CMAKE_ARGS or a CIBW_ENVIRONMENT knob (the Linux build path drives ./configure directly, with no argument-passthrough hook).
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.
zlib-ng1.0.0Drop-in replacement for the
zlib/gzipstdlib modules, compiled against a vendored zlib-ng (statically linked). Upstream publishes no riscv64 wheel.Mirrors upstream's
ci.ymldeploy job.Differs from upstream
Testing
License: OK
Built and tested locally under QEMU (
manylinux_2_39_riscv64andmusllinux_1_2_riscv64) on cp312: 197 passed, 2 skipped, including the RVV-accelerated code path.