I get an installation error when I try building the main branch using spack. it seems that the python wheel is using the wrong cmake build the py-fenicsx-dolfinx.
all the other packages required in the concretisation have been installed correctly.
Here is the output from the system.
==> [2024-04-09-10:52:58.220527] '********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/python-3.11.7-w2kpjwjirxnfznxvr7zbrafidsdvdppw/bin/python3.11' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r' '.'
Using pip 23.1.2 from ********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-pip-23.1.2-upiadzekaeikeiet6llgqotzmiycavh4/lib/python3.11/site-packages/pip (python 3.11)
Non-user install due to --prefix or --target option
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-build-tracker-hiectx17
Initialized build tracking at /tmp/pip-build-tracker-hiectx17
Created build tracker: /tmp/pip-build-tracker-hiectx17
Entered build tracker: /tmp/pip-build-tracker-hiectx17
Created temporary directory: /tmp/pip-install-nhytr9rw
Created temporary directory: /tmp/pip-ephem-wheel-cache-lk55kbfc
Processing ********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python
Added file://********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python to build tracker '/tmp/pip-build-tracker-hiectx17'
Created temporary directory: /tmp/pip-modern-metadata-xgj28tp_
Preparing metadata (pyproject.toml): started
Running command Preparing metadata (pyproject.toml)
*** scikit-build-core 0.6.1 using CMake 3.17.5 (metadata_wheel)
Preparing metadata (pyproject.toml): finished with status 'done'
Source in ********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python has version 0.8.0.dev0, which satisfies requirement fenics-dolfinx==0.8.0.dev0 from file://********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python
Removed fenics-dolfinx==0.8.0.dev0 from file://********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python from build tracker '/tmp/pip-build-tracker-hiectx17'
Created temporary directory: /tmp/pip-unpack-j16ayppm
Building wheels for collected packages: fenics-dolfinx
Created temporary directory: /tmp/pip-wheel-kftt_hkl
Destination directory: /tmp/pip-wheel-kftt_hkl
Building wheel for fenics-dolfinx (pyproject.toml): started
Running command Building wheel for fenics-dolfinx (pyproject.toml)
*** scikit-build-core 0.6.1 using CMake 3.17.5 (wheel)
*** Configuring CMake...
loading initial cache file /tmp/tmppz4hsd86/build/CMakeInit.txt
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.18 or higher is required. You are running version 3.17.5
-- Configuring incomplete, errors occurred!
*** CMake configuration failed
error: subprocess-exited-with-error
× Building wheel for fenics-dolfinx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: ********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/python-3.11.7-w2kpjwjirxnfznxvr7zbrafidsdvdppw/bin/python3.11 ********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-pip-23.1.2-upiadzekaeikeiet6llgqotzmiycavh4/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpkrlqwuax
cwd: ********/spack/tmp/spack-stage-py-fenics-dolfinx-main-mfrsd7g6xwccaiclzjr7ogkt42n5fd3r/spack-src/python
Building wheel for fenics-dolfinx (pyproject.toml): finished with status 'error'
ERROR: Failed building wheel for fenics-dolfinx
Failed to build fenics-dolfinx
ERROR: Could not build wheels for fenics-dolfinx, which is required to install pyproject.toml-based projects
Exception information:
Traceback (most recent call last):
File "********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-pip-23.1.2-upiadzekaeikeiet6llgqotzmiycavh4/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-pip-23.1.2-upiadzekaeikeiet6llgqotzmiycavh4/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "********/spack/opt/spack/linux-centos7-broadwell/gcc-11.2.0/py-pip-23.1.2-upiadzekaeikeiet6llgqotzmiycavh4/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 426, in run
raise InstallationError(
pip._internal.exceptions.InstallationError: Could not build wheels for fenics-dolfinx, which is required to install pyproject.toml-based projects
Removed build tracker: '/tmp/pip-build-tracker-hiectx17'```
can anybody help?
You would have to provide how you set up your environment (the config file) or the actual commands you ran. It would also help if you added the output of spack concretize.