Fail to build 5.12.0-RC2 with superbuild

now I build egl version with docker image kitware/paraview:ci-superbuild-centos7-20201028, the following is the errors:

94%] Performing install step for 'pythonattrs'
Processing path/superbuild/pybind11/src
Processing path/superbuild/pythonattrs/src
Processing path/superbuild/numpy/src
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "<string>", line 117, in remove_output
        File "<string>", line 139, in <module>
        File "path/install/lib/python3.10/subprocess.py", line 503, in run
          with Popen(*popenargs, **kwargs) as process:
        File "path/install/lib/python3.10/subprocess.py", line 971, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "path/install/lib/python3.10/subprocess.py", line 1863, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 123, in <module>
        File "path/install/lib/python3.10/contextlib.py", line 153, in __exit__
          self.gen.throw(typ, value, traceback)
        File "<string>", line 120, in remove_output
        File "path/install/lib/python3.10/shutil.py", line 715, in rmtree
          onerror(os.lstat, path, sys.exc_info())
        File "path/install/lib/python3.10/shutil.py", line 713, in rmtree
          orig_st = os.lstat(path)
      FileNotFoundError: [Errno 2] No such file or directory: 'pybind11/include'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: attrs
  Building wheel for attrs (pyproject.toml): started
make[2]: *** [superbuild/pybind11/stamp/pybind11-pybind11-pip-install] Error 1
make[1]: *** [superbuild/CMakeFiles/pybind11.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
  Building wheel for attrs (pyproject.toml): finished with status 'done'
  Created wheel for attrs: filename=attrs-23.1.0-py3-none-any.whl size=61159 sha256=a52b657909da0dba949726d6f13408335cd5c89ecd1427a4a0034a898454e1c8
  Stored in directory: /tmp/pip-ephem-wheel-cache-lopcxchr/wheels/e9/56/72/c2dbdc0b9bf095f41be91592de81b4e29e35d552a71acf29f6
Successfully built attrs
Installing collected packages: attrs
Successfully installed attrs-23.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[ 94%] Performing install-licenses step for 'pythonattrs'
[ 94%] Completed 'pythonattrs'
[ 94%] Built target pythonattrs
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: numpy
  Building wheel for numpy (pyproject.toml): started
  Building wheel for numpy (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for numpy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [344 lines of output]
      Running from numpy source directory.
      <string>:69: DeprecationWarning:
      
        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools < 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html
      
      
      numpy/random/_bounded_integers.pxd.in has not changed
      numpy/random/_pcg64.pyx has not changed
      numpy/random/_philox.pyx has not changed
      numpy/random/mtrand.pyx has not changed
      numpy/random/_generator.pyx has not changed
      numpy/random/_common.pyx has not changed
      Processing numpy/random/_bounded_integers.pyx
      numpy/random/_mt19937.pyx has not changed
      numpy/random/_sfc64.pyx has not changed
      numpy/random/_bounded_integers.pyx.in has not changed
      numpy/random/bit_generator.pyx has not changed
      fatal: Not a git repository (or any of the parent directories): .git
      Cythonizing sources
      INFO: blas_opt_info:
      INFO: blas_armpl_info:
      INFO: customize UnixCCompiler
      INFO:   libraries armpl_lp64_mp not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blas_mkl_info:
      INFO:   libraries mkl_rt not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blas_ssl2_info:
      INFO:   libraries fjlapackexsve not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blis_info:
      INFO:   libraries blis not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_info:
      INFO:   libraries openblas not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: accelerate_info:
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO: Disabled atlas_3_10_blas_threads_info: (ATLAS is None)
      INFO:   libraries tatlas not found in []
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_info:
      INFO: Disabled atlas_3_10_blas_info: (ATLAS is None)
      INFO:   libraries satlas not found in []
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO: Disabled atlas_blas_threads_info: (ATLAS is None)
      INFO:   libraries ptf77blas,ptcblas,atlas not found in []
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_info:
      INFO: Disabled atlas_blas_info: (ATLAS is None)
      INFO:   libraries f77blas,cblas,atlas not found in []
      INFO:   NOT AVAILABLE
      INFO:
      path/superbuild/numpy/src/numpy/distutils/system_info.py:2154: UserWarning:
          Optimized (vendor) Blas libraries are not found.
          Falls back to netlib Blas library which has worse performance.
          A better performance should be easily gained by switching
          Blas library.
        if self._calc_info(blas):
      INFO: blas_info:
      INFO: Disabled blas_info: (BLAS is None)
      INFO:   libraries blas not found in []
      INFO:   NOT AVAILABLE
      INFO:
      path/superbuild/numpy/src/numpy/distutils/system_info.py:2154: UserWarning:
          Blas (http://www.netlib.org/blas/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [blas]) or by setting
          the BLAS environment variable.
        if self._calc_info(blas):
      INFO: blas_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      path/superbuild/numpy/src/numpy/distutils/system_info.py:2154: UserWarning:
          Blas (http://www.netlib.org/blas/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [blas_src]) or by setting
          the BLAS_SRC environment variable.
        if self._calc_info(blas):
      INFO:   NOT AVAILABLE
      INFO:
      non-existing path in 'numpy/distutils': 'site.cfg'
      INFO: lapack_opt_info:
      INFO: lapack_armpl_info:
      INFO:   libraries armpl_lp64_mp not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_mkl_info:
      INFO:   libraries mkl_rt not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_ssl2_info:
      INFO:   libraries fjlapackexsve not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_lapack_info:
      INFO:   libraries openblas not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_clapack_info:
      INFO:   libraries openblas,lapack not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: flame_info:
      INFO:   libraries flame not found in ['path/install/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO: Disabled atlas_3_10_threads_info: (ATLAS is None)
      INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_info:
      INFO: Disabled atlas_3_10_info: (ATLAS is None)
      INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO: Disabled atlas_threads_info: (ATLAS is None)
      INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_info:
      INFO: Disabled atlas_info: (ATLAS is None)
      INFO: <class 'numpy.distutils.system_info.atlas_info'>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_info:
      INFO: Disabled lapack_info: (LAPACK is None)
      INFO:   libraries lapack not found in []
      INFO:   NOT AVAILABLE
      INFO:
      path/superbuild/numpy/src/numpy/distutils/system_info.py:1972: UserWarning:
          Lapack (http://www.netlib.org/lapack/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [lapack]) or by setting
          the LAPACK environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
      INFO: lapack_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      path/superbuild/numpy/src/numpy/distutils/system_info.py:1972: UserWarning:
          Lapack (http://www.netlib.org/lapack/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [lapack_src]) or by setting
          the LAPACK_SRC environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
      INFO:   NOT AVAILABLE
      INFO:
      INFO: numpy_linalg_lapack_lite:
      INFO:   FOUND:
      INFO:     language = c
      INFO:
      Warning: attempted relative import with no known parent package
      path/install/lib/python3.10/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running config_cc
      INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      INFO: build_src
      INFO: building py_modules sources
      INFO: building library "npymath" sources
      WARN: Could not locate executable armflang
      WARN: Could not locate executable gfortran
      WARN: Could not locate executable f95
      WARN: Could not locate executable ifort
      WARN: Could not locate executable ifc
      WARN: Could not locate executable lf95
      WARN: Could not locate executable pgfortran
      WARN: Could not locate executable nvfortran
      WARN: Could not locate executable f90
      WARN: Could not locate executable f77
      WARN: Could not locate executable fort
      WARN: Could not locate executable efort
      WARN: Could not locate executable efc
      WARN: Could not locate executable g77
      WARN: Could not locate executable g95
      WARN: Could not locate executable pathf95
      WARN: Could not locate executable nagfor
      WARN: Could not locate executable frt
      WARN: don't know how to compile Fortran code on platform 'posix'
      INFO:   adding 'build/src.linux-x86_64-3.10/numpy/core/src/npymath' to include_dirs.
      INFO: None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h']
      INFO: building library "npyrandom" sources
      INFO: building extension "numpy.core._multiarray_tests" sources
      INFO: building extension "numpy.core._multiarray_umath" sources
      INFO:   adding 'build/src.linux-x86_64-3.10/numpy/core/src/multiarray' to include_dirs.
      INFO:   adding 'build/src.linux-x86_64-3.10/numpy/core/src/common' to include_dirs.
      INFO:   adding 'build/src.linux-x86_64-3.10/numpy/core/src/umath' to include_dirs.
      INFO: numpy.core - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/multiarray/arraytypes.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h', 'numpy/core/src/common/npy_partition.h', 'numpy/core/src/common/npy_binsearch.h', 'build/src.linux-x86_64-3.10/numpy/core/src/umath/funcs.inc', 'build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.h', 'build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_utils.h', 'build/src.linux-x86_64-3.10/numpy/core/src/umath/matmul.h', 'numpy/core/src/umath/clip.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/templ_common.h', 'build/src.linux-x86_64-3.10/numpy/core/include/numpy/config.h', 'build/src.linux-x86_64-3.10/numpy/core/include/numpy/_numpyconfig.h', 'build/src.linux-x86_64-3.10/numpy/core/include/numpy/__multiarray_api.h', 'build/src.linux-x86_64-3.10/numpy/core/include/numpy/__ufunc_api.h']
      INFO: building extension "numpy.core._umath_tests" sources
      INFO: building extension "numpy.core._rational_tests" sources
      INFO: building extension "numpy.core._struct_ufunc_tests" sources
      INFO: building extension "numpy.core._operand_flag_tests" sources
      INFO: building extension "numpy.core._simd" sources
      INFO:   adding 'build/src.linux-x86_64-3.10/numpy/core/src/_simd' to include_dirs.
      INFO: numpy.core - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/_simd/_simd_inc.h', 'build/src.linux-x86_64-3.10/numpy/core/src/_simd/_simd_data.inc']
      INFO: building extension "numpy.fft._pocketfft_internal" sources
      INFO: building extension "numpy.linalg.lapack_lite" sources
      ### Warning:  Using unoptimized lapack ###
      INFO: building extension "numpy.linalg._umath_linalg" sources
      ### Warning:  Using unoptimized lapack ###
      INFO: building extension "numpy.random._mt19937" sources
      INFO: building extension "numpy.random._philox" sources
      INFO: building extension "numpy.random._pcg64" sources
      INFO: building extension "numpy.random._sfc64" sources
      INFO: building extension "numpy.random._common" sources
      INFO: building extension "numpy.random.bit_generator" sources
      INFO: building extension "numpy.random._generator" sources
      INFO: building extension "numpy.random._bounded_integers" sources
      INFO: building extension "numpy.random.mtrand" sources
      INFO: building data_files sources
      INFO: build_src: building npy-pkg config files
      running build_py
      copying build/src.linux-x86_64-3.10/numpy/__config__.py -> build/lib.linux-x86_64-cpython-310/numpy
      copying build/src.linux-x86_64-3.10/numpy/distutils/__config__.py -> build/lib.linux-x86_64-cpython-310/numpy/distutils
      UPDATING build/lib.linux-x86_64-cpython-310/numpy/_version.py
      set build/lib.linux-x86_64-cpython-310/numpy/_version.py to '1.25.2'
      running build_clib
      INFO: customize UnixCCompiler
      INFO: customize UnixCCompiler using new_build_clib
      INFO: CCompilerOpt.__init__[819] : load cache from file -> path/superbuild/numpy/src/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_clib.py
      INFO: CCompilerOpt.__init__[830] : hit the file cache
      INFO: C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -fPIC
      
      creating tmp/tmpuxd93b2t
      INFO: compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -Ipath/install/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c'
      INFO: gcc: /tmp/tmpuxd93b2t/test.c
      INFO: C compiler: g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -fPIC
      
      creating tmp/tmpzh2fzhiv
      INFO: compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -Ipath/install/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c'
      INFO: g++: /tmp/tmpzh2fzhiv/test.cpp
      INFO: C compiler: g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -fPIC
      
      INFO: compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -Ipath/install/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c'
      extra options: '-std=c++17'
      INFO: g++: /tmp/tmpzh2fzhiv/test.cpp
      INFO: C compiler: g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -fPIC
      
      INFO: compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -Ipath/install/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c'
      extra options: '-std=c++17'
      INFO: g++: /tmp/tmpzh2fzhiv/test.cpp
      g++: error: unrecognized command line option '-std=c++17'
      Traceback (most recent call last):
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "path/install/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 434, in build_wheel
          return self._build_with_temp_dir(
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
          self.run_setup()
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "path/install/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 567, in <module>
        File "<string>", line 559, in setup_package
        File "path/superbuild/numpy/src/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
        File "path/install/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "path/install/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "path/install/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 364, in run
          self.run_command("build")
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "path/install/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "path/superbuild/numpy/src/numpy/distutils/command/build.py", line 62, in run
          old_build.run(self)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "path/install/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
          super().run_command(command)
        File "path/install/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "path/superbuild/numpy/src/numpy/distutils/command/build_clib.py", line 167, in run
          self.build_libraries(self.libraries)
        File "path/superbuild/numpy/src/numpy/distutils/command/build_clib.py", line 186, in build_libraries
          self.build_a_library(build_info, lib_name, libraries)
        File "<string>", line 305, in build_a_library
        File "<string>", line 264, in std_cxx_flags
        File "<string>", line 226, in flags_is_required
      RuntimeError: Broken toolchain during testing C++ compiler.
      A compiler with support for C++17 language features is required.
      Triggered the following error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -fPIC -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -Ipath/install/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c /tmp/tmpzh2fzhiv/test.cpp -o tmp/tmpzh2fzhiv/test.o -MMD -MF tmp/tmpzh2fzhiv/test.o.d -std=c++17" failed with exit status 1.
      INFO:
      ########### CLIB COMPILER OPTIMIZATION ###########
      INFO: Platform      :
        Architecture: x64
        Compiler    : gcc
      
      CPU baseline  :
        Requested   : 'min'
        Enabled     : SSE SSE2 SSE3
        Flags       : -msse -msse2 -msse3
        Extra checks: none
      
      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
        Generated   : none
      INFO: CCompilerOpt.cache_flush[863] : write cache to path -> path/superbuild/numpy/src/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_clib.py
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
CMake Error at path/superbuild/sb-numpy-install.cmake:47 (message):
  Failed with exit code 1

Is cmake in your PATH?

thanks