Skip to content

Commit 7aaba4a

Browse files
committed
RHAIENG-2101: set --env=CFLAGS=-Dundefined=64 on github actions emulated s390x to avoid pyzmq compilation failure (opendatahub-io#2760)
``` /dev/mapper/buildvg-buildlv 68G 14G 52G 21% /home/runner/.local/share/containers × Failed to build `pyzmq==27.1.0` ├─▶ The build backend returned an error ╰─▶ Call to `scikit_build_core.build.build_wheel` failed (exit status: 1) ... /tmp/tmpy8t962b7/build/_deps/bundled_libzmq-build/platform.hpp:22:28: error: ‘undefined’ was not declared in this scope 22 | #define ZMQ_CACHELINE_SIZE undefined | ^~~~~~~~~ ```
1 parent 142a02b commit 7aaba4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ jobs:
281281
if [[ "${{ inputs.platform }}" == "linux/s390x" ]]; then
282282
# workaround for known issue https://github.com/zeromq/libzmq/pull/4486
283283
# In qemu-user, CACHELINE_SIZE probe is undefined
284-
EXTRA_PODMAN_BUILD_ARGS+='--env=CXXFLAGS=-Dundefined=64'
284+
# Compiling pyzmq through UV needs this in CFLAGS
285+
EXTRA_PODMAN_BUILD_ARGS+='--env=CFLAGS=-Dundefined=64 --env=CXXFLAGS=-Dundefined=64 --unsetenv=CFLAGS --unsetenv=CXXFLAGS'
285286
fi
286287
echo "EXTRA_PODMAN_BUILD_ARGS=$EXTRA_PODMAN_BUILD_ARGS" >> $GITHUB_OUTPUT
287288

0 commit comments

Comments
 (0)