Skip to content

Commit 7071e4e

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing fortran to build scikit-learn
``` × Failed to download and build `scikit-learn==1.7.2` ├─▶ Failed to install requirements from `build-system.requires` ├─▶ Failed to build `scipy==1.16.3` ├─▶ The build backend returned an error ╰─▶ Call to `mesonpy.build_wheel` failed (exit status: 1) [stdout] + meson setup ... ../meson.build:88:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']] The following exception(s) were encountered: Running `gfortran --help` gave "[Errno 2] No such file or directory: 'gfortran'" ```
1 parent a9692dc commit 7071e4e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ if [ "${TARGETARCH}" = "ppc64le" ]; then
398398

399399
# required to compile maturin
400400
openssl-devel
401+
402+
# required to compile scikit-learn
403+
gcc-gfortran
401404
)
402405
dnf install -y "${packages[@]}"
403406
fi

jupyter/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ if [ "${TARGETARCH}" = "ppc64le" ]; then
392392

393393
# required to compile maturin
394394
openssl-devel
395+
396+
# required to compile scikit-learn
397+
gcc-gfortran
395398
)
396399
dnf install -y "${packages[@]}"
397400
fi

0 commit comments

Comments
 (0)