Skip to content

Commit 37f731d

Browse files
committed
fix: disable libjpeg-turbo SIMD on riscv64 to avoid 3.1.4.1 build error
libjpeg-turbo 3.1.4.1 simdcoverage.c references jsimd_can_encode_mcu_AC_refine_prepare which is only declared in the RVV SIMD extensions added to upstream main (commit 9817c40) but not included in any stable release yet. Building with -DWITH_SIMD=FALSE avoids the error; riscv64 has no production SIMD support in 3.1.4.1 in any case. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent b3d4a13 commit 37f731d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/wheels-dependencies.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ function build {
267267
fi
268268
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
269269

270+
# libjpeg-turbo 3.1.4.1 simdcoverage.c references riscv64 RVV SIMD
271+
# functions that are only in upstream main and not yet released. Disable
272+
# SIMD for riscv64 to avoid the build error; there is no production
273+
# riscv64 SIMD support in this version anyway.
274+
if [[ "$(uname -m)" == "riscv64" ]]; then
275+
HOST_CMAKE_FLAGS="${HOST_CMAKE_FLAGS} -DWITH_SIMD=FALSE"
276+
fi
270277
build_libjpeg_turbo
271278
if [[ -n "$IS_MACOS" ]]; then
272279
# Custom tiff build to include jpeg; by default, configure won't include

0 commit comments

Comments
 (0)