Scipy 1.14.0 build error on Windows

Am getting the linking error below when building on Windows with python 3.10.4, the latest MSVC 2019 and MKL 2024.2.0. I also have the recommended rtools installed. I’m using this command to build:

python -m pip install . -Csetup-args=-Dblas=mkl -Csetup-args=-Dlapack=mkl --verbose

What I am doing wrong?

[306/1383] Linking target scipy/sparse/linalg/_propack/_zpropack.cp310-win_amd64.pyd
FAILED: scipy/sparse/linalg/_propack/_zpropack.cp310-win_amd64.pyd
“xilink.exe” /MACHINE:x64 /OUT:scipy/sparse/linalg/_propack/_zpropack.cp310-win_amd64.pyd scipy/sparse/linalg/_propack/_zpropack.cp310-win_amd64.pyd.p/meson-generated__zpropackmodule.c.obj scipy/sparse/linalg/_propack/zpropack.cp310-win_amd64.pyd.p/meson-generated__zpropack-f2pywrappers.f.obj “/nologo” “/OPT:REF” “/DLL” “/IMPLIB:scipy\sparse\linalg_propack_zpropack.cp310-win_amd64.lib” "scipy/sparse/linalg/propack/liblib__zpropack.a" “scipy/libg77_abi_wrappers.a” “scipy/lib_fortranobject.a” “D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_core_dll.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_ilp64_dll.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_thread_dll.lib” “c:\users\strut\appdata\local\activestate\cache\02fb0e1f\libs\python310.lib”
Creating library scipy\sparse\linalg_propack_zpropack.cp310-win_amd64.lib and object scipy\sparse\linalg_propack_zpropack.cp310-win_amd64.exp
liblib__zpropack.a(PROPACK_complex16_zblasext.F.obj) : error LNK2019: unresolved external symbol zzdotc
referenced in function pzdotc

scipy\sparse\linalg_propack_zpropack.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals

[307/1383] Linking target scipy/sparse/linalg/_propack/_cpropack.cp310-win_amd64.pyd
FAILED: scipy/sparse/linalg/_propack/_cpropack.cp310-win_amd64.pyd
“xilink.exe” /MACHINE:x64 /OUT:scipy/sparse/linalg/_propack/_cpropack.cp310-win_amd64.pyd scipy/sparse/linalg/_propack/_cpropack.cp310-win_amd64.pyd.p/meson-generated__cpropackmodule.c.obj scipy/sparse/linalg/_propack/cpropack.cp310-win_amd64.pyd.p/meson-generated__cpropack-f2pywrappers.f.obj “/nologo” “/OPT:REF” “/DLL” “/IMPLIB:scipy\sparse\linalg_propack_cpropack.cp310-win_amd64.lib” "scipy/sparse/linalg/propack/liblib__cpropack.a" “scipy/libg77_abi_wrappers.a” “scipy/lib_fortranobject.a” “D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_core_dll.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_ilp64_dll.lib” “D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_thread_dll.lib” “c:\users\strut\appdata\local\activestate\cache\02fb0e1f\libs\python310.lib”
Creating library scipy\sparse\linalg_propack_cpropack.cp310-win_amd64.lib and object scipy\sparse\linalg_propack_cpropack.cp310-win_amd64.exp
liblib__cpropack.a(PROPACK_complex8_cblasext.F.obj) : error LNK2019: unresolved external symbol ccdotc
referenced in function pcdotc

scipy\sparse\linalg_propack_cpropack.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals

If you cloned the repo and did not run

git submodule update --init --recursive

please do so, to get the submodules also downloaded. It looks like you are missing them