Skip to content

py-scipy fails to build [email protected] on ubuntu #1848

@eap

Description

@eap

Proposed fix

Running spack config add "packages:py-scipy:require:['%gcc']" fixed the build. Maybe the generic config oneapi should specify "%gcc"

Issue description

Attempting to build this spec with oneapi 2025.3.0 fails on unbuntu:

package spec: [email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake %c,cxx,[email protected]

Full output of `spack spec` [email protected]~cluster+envmods~gfortran~ilp64+shared build_system=generic mpi_family=none threads=none arch=linux-ubuntu24.04-icelake

[+] ^[email protected]+internal_glib build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[e] ^[email protected]~guile build_system=generic patches:=599f134 arch=linux-ubuntu24.04-icelake

[e] ^[email protected]amd+envmodsnvidia build_system=generic arch=linux-ubuntu24.04-icelake

[e] ^[email protected] build_system=generic arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=generic arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=python_pip patches:=0f0b1bd arch=linux-ubuntu24.04-icelake

[+] ^[email protected]+re2c build_system=generic patches:=93f4bb3 arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip patches:=873745d arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=generic arch=linux-ubuntu24.04-icelake

[+] ^[email protected]+ipo build_system=cmake build_type=Release generator=ninja arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]doc+ncurses+ownlibsqtgui build_system=generic build_type=Release arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected]gssapildaplibidn2librtmplibsshlibssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=python_pip arch=linux-ubuntu24.04-icelake

[+] ^[email protected] build_system=generic arch=linux-ubuntu24.04-icelake

[+] ^[email protected]+bz2crypt+ctypes+dbmdebug+libxml2+lzmaoptimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssltkinter+uuid+zlib build_system=generic patches:=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected]debugpic+shared build_system=generic arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]~libbsd build_system=autotools arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools libs:=shared,static arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]http+picpython+shared build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=autotools zip=pigz arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=makefile arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]+pic+programs build_system=makefile compression:=none libs:=shared,static arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected]~symlinks+termlib abi=none build_system=autotools patches:=7a351bc arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected]~docs+shared build_system=generic certs=system arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected]+cpanm+opcode+open+shared+threads build_system=generic arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=autotools patches:=1ea4349,24f587b,3d9885e,5911a5b,622ba38,6c8adf8,758e2ec,79572ee,a177edc,bbf97f1,c7b45ff,e0013d9,e065038 arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected] build_system=autotools arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]~pic build_system=autotools libs:=shared,static arch=linux-ubuntu24.04-icelake %[email protected]

[+] ^[email protected]+optimize+pic+shared build_system=makefile arch=linux-ubuntu24.04-icelake %c,[email protected]

[+] ^[email protected] build_system=generic arch=linux-ubuntu24.04-icelake

==> Error: ProcessError: Command exited with status 1:
    '/opt/spack-stack/envs/unified-oneapi/install/none/none/python-venv-1.0-lkn2xni/bin/python3' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-ve
rsion-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/opt/spack-stack/envs/unified-on
eapi/install/intel-oneapi-compilers/2025.3.0/py-scipy-1.16.0-sohqi6l' '--config-settings=builddir=build' '--config-settings=compile-args=-j12' '--config-settings=
setup-args=-Dfortran_std=legacy' '--config-settings=setup-args=-Dblas=mkl-dynamic-lp64-seq' '--config-settings=setup-args=-Dlapack=mkl-dynamic-lp64-seq' '.'
==> Installing py-scipy-1.16.0-sohqi6lqqihnoxgtlzvd5qwu2zjfqa3f [260/292]

4 errors found in build log:
     3668      [1437/1443] Linking target scipy/ndimage/_ni_label.cpython-311-x86_64-linux-gnu.so
     3669      [1438/1443] Compiling C++ object scipy/optimize/_highspy/_core.cpython-311-x86_64-linux-gnu.so.p/.._.._.._subprojects_highs_src_highs_bindings.cpp
             .o
     3670      [1439/1443] Linking target scipy/optimize/_highspy/_core.cpython-311-x86_64-linux-gnu.so
     3671      [1440/1443] Compiling C++ object scipy/interpolate/_rbfinterp_pythran.cpython-311-x86_64-linux-gnu.so.p/meson-generated__rbfinterp_pythran.cpp.o
     3672      [1441/1443] Linking target scipy/interpolate/_rbfinterp_pythran.cpython-311-x86_64-linux-gnu.so
     3673      [1442/1443] Compiling C++ object scipy/sparse/sparsetools/_sparsetools.cpython-311-x86_64-linux-gnu.so.p/bsr.cxx.o
  >> 3674    FAILED: scipy/sparse/sparsetools/_sparsetools.cpython-311-x86_64-linux-gnu.so.p/bsr.cxx.o
     3675      /opt/spack-stack/envs/unified-oneapi/install/none/none/compiler-wrapper-1.0-bg47rrw/libexec/spack/oneapi/icpx -Iscipy/sparse/sparsetools/_sparseto
             ols.cpython-311-x86_64-linux-gnu.so.p -Iscipy/sparse/sparsetools -I../scipy/sparse/sparsetools -I../scipy/_build_utils/src -I../../../../../../envs/
             unified-oneapi/install/intel-oneapi-compilers/2025.3.0/py-numpy-1.26.4-3c5o3d7/lib/python3.11/site-packages/numpy/core/include -I/opt/spack-stack/en
             vs/unified-oneapi/install/intel-oneapi-compilers/2025.3.0/python-3.11.11-pt7uag5/include/python3.11 -fvisibility=hidden -fvisibility-inlines-hidden
             -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O3 -fp-model=strict -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_9
             _API_VERSION -MD -MQ scipy/sparse/sparsetools/_sparsetools.cpython-311-x86_64-linux-gnu.so.p/bsr.cxx.o -MF scipy/sparse/sparsetools/_sparsetools.cpy
             thon-311-x86_64-linux-gnu.so.p/bsr.cxx.o.d -o scipy/sparse/sparsetools/_sparsetools.cpython-311-x86_64-linux-gnu.so.p/bsr.cxx.o -c ../scipy/sparse/s
             parsetools/bsr.cxx
  >> 3676      fatal error: error in backend: Do not know how to scalarize this operator's operand!
     3677
     3678      PLEASE append the compiler options "-save-temps -v", rebuild the application to get the full command which is failing and submit a bug report to h
             ttps://software.intel.com/en-us/support/priority-support which includes the failing command, input files for the command and the crash backtrace (if
              any).
     3679      Stack dump:
     3680      0.    Program arguments: /opt/intel/oneapi/compiler/2025.3/bin/compiler/clang++ @/tmp/icpx1027574457NUF1Jl/icpxargqFYSG0
     3681      1.    <eof> parser at end of file
     3682      2.    Code generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions