Skip to content

BUG: Failed to build numpy on Windows using intel compiler #31337

Description

@yojeep

Describe the issue:

Reproduce the code example:

(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>set CC=icx
(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>set CXX=icx
(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>pip wheel . --no-deps -w C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4 --verbose

Error message:

(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>set CC=icx
(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>set CXX=icx
(bnp313) C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4>pip wheel . --no-deps -w C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4 --verbose
Processing .\.
  Running command installing build dependencies
  Using pip 26.0.1 from C:\Users\yjp\miniforge3\envs\bnp313\Lib\site-packages\pip (python 3.13)
  Collecting meson-python>=0.18.0
    Obtaining dependency information for meson-python>=0.18.0 from https://files.pythonhosted.org/packages/16/7f/d1b0c65b267a1463d752b324f11d3470e30889daefc4b9ec83029bfa30b5/meson_python-0.19.0-py3-none-any.whl.metadata
    Using cached meson_python-0.19.0-py3-none-any.whl.metadata (2.1 kB)
  Collecting Cython>=3.0.6
    Obtaining dependency information for Cython>=3.0.6 from https://files.pythonhosted.org/packages/91/3f/deb8f023a5c10c0649eb81332a58c180fad27c7533bb4aae138b5bc34d92/cython-3.2.4-cp313-cp313-win_amd64.whl.metadata
    Using cached cython-3.2.4-cp313-cp313-win_amd64.whl.metadata (7.7 kB)
  Collecting meson>=1.2.3 (from meson-python>=0.18.0)
    Obtaining dependency information for meson>=1.2.3 from https://files.pythonhosted.org/packages/5e/cd/f3a881ff5e601d6bbeff63b38ee2362e1167c47d9cde03eddf8d71a4ffb0/meson-1.11.1-py3-none-any.whl.metadata
    Using cached meson-1.11.1-py3-none-any.whl.metadata (1.8 kB)
  Collecting packaging>=23.2 (from meson-python>=0.18.0)
    Obtaining dependency information for packaging>=23.2 from https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl.metadata
    Using cached packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
  Collecting pyproject-metadata>=0.9.0 (from meson-python>=0.18.0)
    Obtaining dependency information for pyproject-metadata>=0.9.0 from https://files.pythonhosted.org/packages/1d/0b/da4851b1e2d9c40c9bd74c0abd94510a7d797da9ccde0a90e8953751ed4a/pyproject_metadata-0.11.0-py3-none-any.whl.metadata
    Using cached pyproject_metadata-0.11.0-py3-none-any.whl.metadata (6.4 kB)
  Using cached meson_python-0.19.0-py3-none-any.whl (28 kB)
  Using cached cython-3.2.4-cp313-cp313-win_amd64.whl (2.8 MB)
  Using cached meson-1.11.1-py3-none-any.whl (1.1 MB)
  Using cached packaging-26.2-py3-none-any.whl (100 kB)
  Using cached pyproject_metadata-0.11.0-py3-none-any.whl (22 kB)
  Installing collected packages: packaging, meson, Cython, pyproject-metadata, meson-python
    Creating C:\Users\yjp\AppData\Local\Temp\2\pip-build-env-6pcmbi79\overlay\Scripts

  Successfully installed Cython-3.2.4 meson-1.11.1 meson-python-0.19.0 packaging-26.2 pyproject-metadata-0.11.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  + C:\Users\yjp\miniforge3\envs\bnp313\python.exe C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\vendored-meson\meson\meson.py setup C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4 C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\.mesonpy-5qtz8wy9 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\.mesonpy-5qtz8wy9\meson-python-native-file.ini
  The Meson build system
  Version: 1.9.2
  Source dir: C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4
  Build dir: C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\.mesonpy-5qtz8wy9
  Build type: native build
  Project name: NumPy
  Project version: 2.4.4
  C compiler for the host machine: icx (intel-llvm-cl 2025.3.2)
  C linker for the host machine: xilink.exe xilink 2025.3.2
  C++ compiler for the host machine: icx (intel-llvm-cl 2025.3.2)
  C++ linker for the host machine: xilink.exe xilink 2025.3.2
  Cython compiler for the host machine: cython (cython 3.2.4)
  Host machine cpu family: x86_64
  Host machine cpu: x86_64
  Program python found: YES (C:\Users\yjp\miniforge3\envs\bnp313\python.exe)
  Run-time dependency python found: YES 3.13
  Has header "Python.h" with dependency python: YES
  Compiler for C supports arguments -fno-strict-aliasing: YES
  Test features "X86_V2" : Supported
  Test features "X86_V3" : Supported
  Test features "X86_V4" : Supported
  Test features "AVX512_ICL" : Supported
  Test features "AVX512_SPR" : disabled due to AVX512_SPR is disabled due to "intel-llvm-cl compiler does not support it"
  Configuring npy_cpu_dispatch_config.h using configuration
  Message:
  CPU Optimization Options
    baseline:
      Requested : min
      Enabled   : X86_V2
    dispatch:
      Requested : max
      Enabled   : X86_V3 X86_V4 AVX512_ICL

  Library m found: NO
  Fetching value of define "__MINGW32__" : (undefined)
  Found pkg-config: YES (C:\Users\yjp\miniforge3\envs\bnp313\Library\bin\pkg-config.EXE) 0.29.2
  Run-time dependency scipy-openblas found: NO (tried pkgconfig)
  Run-time dependency mkl found: YES 2025.3
  Message: BLAS symbol suffix:
  Checking if "Check atomic builtins without -latomic" links: YES
  Program _build_utils/process_src_template.py found: YES (C:\Users\yjp\miniforge3\envs\bnp313\python.exe C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\numpy\_build_utils/process_src_template.py)
  Program _build_utils/tempita.py found: YES (C:\Users\yjp\miniforge3\envs\bnp313\python.exe C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\numpy\_build_utils/tempita.py)
  Configuring __config__.py using configuration
  Run-time dependency OpenMP found: YES 5.1
  Checking for size of "short" : 2
  Checking for size of "int" : 4
  Checking for size of "long" : 4
  Checking for size of "long long" : 8
  Checking for size of "float" : 4
  Checking for size of "double" : 8
  Checking for size of "long double" : 8
  Checking for size of "size_t" : 8
  Checking for size of "size_t" : 8 (cached)
  Checking for size of "wchar_t" : 2
  Checking for size of "off_t" : 4
  Checking for size of "Py_intptr_t" with dependency python: 8
  Checking for size of "PY_LONG_LONG" with dependency python: 8
  Has header "complex.h" : YES
  Checking for type "_Fcomplex" : NO

  ..\numpy\_core\meson.build:197:4: ERROR: Problem encountered: "complex.h" header does not include complex type _Fcomplex

  A full log can be found at C:\Users\yjp\Desktop\numpy-2.4.4.tar\numpy-2.4.4\.mesonpy-5qtz8wy9\meson-logs\meson-log.txt
  error: subprocess-exited-with-error

Python and NumPy Versions:

python = 3.13
numpy = 2.4.4

Runtime Environment:

No response

How does this issue affect you or how did you find it:

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions