From 7021b15a4258c767adc95864d2faff6535b2be2c Mon Sep 17 00:00:00 2001 From: Tom <53666156+tom-miller1@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:13:49 -0400 Subject: [PATCH] Fix PPC64 page size in binary builds. (#7298) ## Summary Add maturin build flag to set 64kb page size on PPC64 and PPC64LE architectures. Not aware of modern systems that use 4kb pages. Resolves #6528 ## Test Plan ppc64le gnu dynamic-linked and musl static-linked binary builds were tested successfully on an IBM Power9 system running RHEL 8.8. I do not have access to other types of PPC64 systems for testing. --- .github/workflows/build-binaries.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 56ce96161..7f0787cbc 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -431,8 +431,12 @@ jobs: platform: - target: powerpc64le-unknown-linux-gnu arch: ppc64le + # see https://github.com/astral-sh/uv/issues/6528 + maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 - target: powerpc64-unknown-linux-gnu arch: ppc64 + # see https://github.com/astral-sh/uv/issues/6528 + maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 steps: - uses: actions/checkout@v4 @@ -576,6 +580,8 @@ jobs: arch: armv7 - target: powerpc64le-unknown-linux-musl arch: ppc64le + # see https://github.com/astral-sh/uv/issues/6528 + maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 toolchain: nightly fail-fast: false