Issues with the version of fenics-uf

Hello,
I am on OSX Sonoma 14.1, and I am trying to install dolfinx. I can successfully run cmake .., in the build folder. Then I go to the cpp folder and run

% make install
[  2%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/DofMap.cpp.o
In file included from /Applications/dolfinx-main/cpp/dolfinx/fem/DofMap.cpp:10:
/Applications/dolfinx-main/cpp/dolfinx/fem/utils.h:791:47: error: no member named 'value_shape' in 'ufcx_function_space'
  std::vector<std::size_t> value_shape(space->value_shape,
                                       ~~~~~  ^
/Applications/dolfinx-main/cpp/dolfinx/fem/utils.h:792:47: error: no member named 'value_shape' in 'ufcx_function_space'
                                       space->value_shape + space->value_rank);
                                       ~~~~~  ^
/Applications/dolfinx-main/cpp/dolfinx/fem/utils.h:792:68: error: no member named 'value_rank' in 'ufcx_function_space'
                                       space->value_shape + space->value_rank);
                                                            ~~~~~  ^
/Applications/dolfinx-main/cpp/dolfinx/fem/utils.h:1108:58: error: no member named 'entity_dimension' in 'ufcx_expression'
  std::vector<U> X(e.points, e.points + e.num_points * e.entity_dimension);
                                                       ~ ^
/Applications/dolfinx-main/cpp/dolfinx/fem/utils.h:1111:37: error: no member named 'entity_dimension' in 'ufcx_expression'
         static_cast<std::size_t>(e.entity_dimension)};
                                  ~ ^
5 errors generated.
make[2]: *** [dolfinx/CMakeFiles/dolfinx.dir/fem/DofMap.cpp.o] Error 1
make[1]: *** [dolfinx/CMakeFiles/dolfinx.dir/all] Error 2
make: *** [all] Error 2

Here is the output of cd build; ccmake ..

ADIOS2_DIR                       ADIOS2_DIR-NOTFOUND                                                                                                                
 BUILD_SHARED_LIBS                ON                                                                                                                                 
 Basix_DIR                        /usr/local/lib/cmake/basix                                                                                                         
 Boost_INCLUDE_DIR                /opt/homebrew/include                                                                                                              
 Boost_TIMER_LIBRARY_RELEASE      /opt/homebrew/lib/libboost_timer-mt.dylib                                                                                          
 CMAKE_BUILD_TYPE                 RelWithDebInfo                                                                                                                     
 CMAKE_INSTALL_PREFIX             /usr/local                                                                                                                         
 CMAKE_INSTALL_RPATH_USE_LINK_P   ON                                                                                                                                 
 CMAKE_OSX_ARCHITECTURES                                                                                                                                             
 CMAKE_OSX_DEPLOYMENT_TARGET      14.1                                                                                                                               
 CMAKE_OSX_SYSROOT                /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk                                 
 DOLFINX_ENABLE_ADIOS2            ON                                                                                                                                 
 DOLFINX_ENABLE_KAHIP             OFF                                                                                                                                
 DOLFINX_ENABLE_PARMETIS          ON                                                                                                                                 
 DOLFINX_ENABLE_SCOTCH            ON                                                                                                                                 
 DOLFINX_ENABLE_SLEPC             ON                                                                                                                                 
 DOLFINX_SKIP_BUILD_TESTS         OFF                                                                                                                                
 DOLFINX_UFCX_PYTHON              ON                                                                                                                                 
 DOXYGEN_DOLFINX_VERSION          0.8.0.0                                                                                                                            
 GIT_FOUND                        /opt/homebrew/bin/git                                                                                                              
 HDF5_C_LIBRARY_dl                /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libdl.tbd               
 HDF5_C_LIBRARY_hdf5              /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib                                                                                   
 HDF5_C_LIBRARY_m                 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libm.tbd                
 HDF5_C_LIBRARY_z                 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd                
 METIS_LIBRARY                    /opt/homebrew/lib/libmetis.dylib                                                                                                   
 PARMETIS_INCLUDE_DIRS            PARMETIS_INCLUDE_DIRS-NOTFOUND                                                                                                     
 PARMETIS_LIBRARY                 PARMETIS_LIBRARY-NOTFOUND                                                                                                          
 PTESMUMPS_LIBRARY                /opt/homebrew/lib/libptesmumps.dylib                                                                                               
 PTSCOTCHERR_LIBRARY              /opt/homebrew/lib/libptscotcherr.dylib                                                                                             
 PTSCOTCH_LIBRARY                 /opt/homebrew/lib/libptscotch.dylib                                                                                                
 SCOTCHERR_LIBRARY                /opt/homebrew/lib/libscotcherr.dylib                                                                                               
 SCOTCH_INCLUDE_DIRS              /opt/homebrew/include                                                                                                              
 SCOTCH_LIBRARY                   /opt/homebrew/lib/libscotch.dylib                                                                                                  
 _REQUIRE_ADIOS2                  OFF                                                                                                                                
 _REQUIRE_KAHIP                   OFF                                                                                                                                
 _REQUIRE_PARMETIS                OFF

Do I get the error above because ufcx.h is not found? As far as I can understand, ufcx is part of ffcx, and I tried to install ffcx by downloading the tar.gz archive, unzipping it, doing

% pip3 install . --break-system-packages
Defaulting to user installation because normal site-packages is not writeable
Processing /Applications/ffcx-main
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.21 in /Users/michele/.local/lib/python3.10/site-packages (from fenics-ffcx==0.8.0.dev0) (1.26.4)
ERROR: Could not find a version that satisfies the requirement fenics-basix<0.9.0,>=0.8.0.dev0 (from fenics-ffcx) (from versions: 0.4.0, 0.4.2.post1, 0.5.0, 0.6.0, 0.7.0.post0)
ERROR: No matching distribution found for fenics-basix<0.9.0,>=0.8.0.dev0
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip3 install --upgrade pip

Thank you for your help

Please make sure that you are installing compatible branches of ffcx, basix and dolfinx. (all main branches are in sync).

Hello, pipx and ffcx seem to be installed correctly

% pip3 install fenics-ffcx
Defaulting to user installation because normal site-packages is not writeable
Collecting fenics-ffcx
Using cached fenics_ffcx-0.7.0-py3-none-any.whl (119 kB)
Requirement already satisfied: fenics-ufl<2023.3.0,>=2023.2.0 in /Users/michele/.local/lib/python3.10/site-packages (from fenics-ffcx) (2023.2.0)
Requirement already satisfied: cffi in /Users/michele/.local/lib/python3.10/site-packages (from fenics-ffcx) (1.16.0)
Requirement already satisfied: numpy in /Users/michele/.local/lib/python3.10/site-packages (from fenics-ffcx) (1.26.4)
Collecting fenics-basix<0.8.0,>=0.7.0
Using cached fenics_basix-0.7.0.post0-cp310-cp310-macosx_11_0_arm64.whl (828 kB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/site-packages (from fenics-ffcx) (65.5.0)
Requirement already satisfied: pycparser in /Users/michele/.local/lib/python3.10/site-packages (from cffi->fenics-ffcx) (2.21)
Installing collected packages: fenics-basix, fenics-ffcx
Successfully installed fenics-basix-0.7.0.post0 fenics-ffcx-0.7.0
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip3 install --upgrade pip
% pip3 install fenics-basix
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fenics-basix in /Users/michele/.local/lib/python3.10/site-packages (0.7.0.post0)
Requirement already satisfied: numpy>=1.21 in /Users/michele/.local/lib/python3.10/site-packages (from fenics-basix) (1.26.4)
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip3 install --upgrade pip

However, when I try to install dolfinx, with cmake .. and then make install I still get the error in the original post.

Also, if I try to install dolfinx directly with pip, I get the error message

% pip3 install fenics-dolfinx
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement fenics-dolfinx (from versions: none)
ERROR: No matching distribution found for fenics-dolfinx
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip3 install --upgrade pip

Since you are pip installing ffcx and ufl, you should use the v0.7.x releases of basix and ufl, not main branches.

I installed version 0.7.0 of basix by downloading the tar.gz from herehttps://github.com/FEniCS/basix/releases/tag/v0.7.0, unzipping it, entering into the main folder and doing

% pip3 install .
[...]
Successfully installed fenics-basix-0.7.0

As for ufl, there is no 0.7.x version on its github page. I performed the same steps for the 2023.2.0 ufl version as for basics, but then when I do make install for dolfinx, I still get the same error message as in the original post.

UFL is fine with 2023.2.0. However, what is the version of FFCx you are using. Above it seems like you are using the main branch:

I donwloaded ffcx version 0.7.0 and succesfully installed it

 ffcx-0.7.0 % pip3 install .
Processing /Applications/ffcx-0.7.0
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /opt/anaconda3/lib/python3.11/site-packages (from fenics-ffcx==0.7.0) (1.26.4)
Requirement already satisfied: cffi in /opt/anaconda3/lib/python3.11/site-packages (from fenics-ffcx==0.7.0) (1.16.0)
Requirement already satisfied: setuptools in /opt/anaconda3/lib/python3.11/site-packages (from fenics-ffcx==0.7.0) (68.2.2)
Collecting fenics-basix<0.8.0,>=0.7.0 (from fenics-ffcx==0.7.0)
  Using cached fenics_basix-0.7.0.post0.tar.gz (618 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting fenics-ufl<2023.3.0,>=2023.2.0 (from fenics-ffcx==0.7.0)
  Using cached fenics_ufl-2023.2.0-py3-none-any.whl.metadata (3.8 kB)
Requirement already satisfied: pycparser in /opt/anaconda3/lib/python3.11/site-packages (from cffi->fenics-ffcx==0.7.0) (2.21)
Using cached fenics_ufl-2023.2.0-py3-none-any.whl (264 kB)
Building wheels for collected packages: fenics-ffcx, fenics-basix
  Building wheel for fenics-ffcx (pyproject.toml) ... done
  Created wheel for fenics-ffcx: filename=fenics_ffcx-0.7.0-py3-none-any.whl size=119908 sha256=63916298c7dffd388909e21e457c1d720083c7ac3ef1c7238e1b010ef1f3b4aa
  Stored in directory: /Users/michele/Library/Caches/pip/wheels/e7/e1/f1/ab7302eca21b57ea4b49331fc336fc74223fc98fa7661a7c26
  Building wheel for fenics-basix (pyproject.toml) ... done
  Created wheel for fenics-basix: filename=fenics_basix-0.7.0.post0-cp311-cp311-macosx_14_0_arm64.whl size=821736 sha256=3ca939d680ca87ed908e529e697bf485d2cdc51ebde613988bf9a74043791e58
  Stored in directory: /Users/michele/Library/Caches/pip/wheels/6b/3b/61/9f546855dc929b56a05c5f7e5439a8084d697882f80afd862c
Successfully built fenics-ffcx fenics-basix
Installing collected packages: fenics-ufl, fenics-basix, fenics-ffcx
Successfully installed fenics-basix-0.7.0.post0 fenics-ffcx-0.7.0 fenics-ufl-2023.2.0

but when I do make install in dolfinx cpp directory, I still get the same error message.

What branch of dolfinx are you on? Could you verify that you are running on v0.7.3?
Could you also add the full output of cmake, as adding snippets aren’t very helpful

I was using the main branch. I now downloaded dolfinx 0.7.3. Here is the output of cmake:

% cmake ..
fatal: not a git repository (or any of the parent directories): .git
-- Found Boost 1.82.0 at /opt/anaconda3/lib/cmake/Boost-1.82.0
--   Requested configuration: QUIET REQUIRED COMPONENTS timer
-- Found boost_headers 1.82.0 at /opt/anaconda3/lib/cmake/boost_headers-1.82.0
-- Found boost_timer 1.82.0 at /opt/anaconda3/lib/cmake/boost_timer-1.82.0
--   [x] libboost_timer.dylib
--   [ ] libboost_timer.a
-- Adding boost_timer dependencies: chrono;headers
-- Found boost_chrono 1.82.0 at /opt/anaconda3/lib/cmake/boost_chrono-1.82.0
--   [x] libboost_chrono.dylib
--   [ ] libboost_chrono.a
-- Adding boost_chrono dependencies: headers
-- Checking for basix hints with /opt/anaconda3/bin/python3.11
-- Found PETSc version 3.20.5, prefix: /opt/homebrew/opt/petsc
-- HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.
-- Found HDF5: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib (found version "1.14.3") found components: C
-- HDF5_DIR: HDF5_DIR-NOTFOUND
-- HDF5_DEFINITIONS: 
-- HDF5_INCLUDE_DIRS: /Applications/hdf5-1.14.3/hdf5/include
-- HDF5_LIBRARIES: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib
-- HDF5_HL_LIBRARIES: 
-- HDF5_C_DEFINITIONS: 
-- HDF5_C_INCLUDE_DIR: /Applications/hdf5-1.14.3/hdf5/include
-- HDF5_C_INCLUDE_DIRS: /Applications/hdf5-1.14.3/hdf5/include
-- HDF5_C_LIBRARY: 
-- HDF5_C_LIBRARIES: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib
-- HDF5_C_HL_LIBRARY: 
-- HDF5_C_HL_LIBRARIES: 
-- Defined targets (if any):
-- ... hdf5::hdf5
-- Found Python3: /opt/anaconda3/bin/python3.11 (found version "3.11.7") found components: Interpreter
-- Asking Python module FFCx for location of UFC... (Python executable: /opt/anaconda3/bin/python3.11)
-- Found UFCx: /opt/anaconda3/lib/python3.11/site-packages/ffcx/codegeneration (found suitable version "0.7.0", minimum required is "0.7")
CMake Warning at CMakeLists.txt:276 (find_package):
  By not providing "FindADIOS2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ADIOS2", but
  CMake did not find one.

  Could not find a package configuration file provided by "ADIOS2" (requested
  version 2.8.1) with any of the following names:

    ADIOS2Config.cmake
    adios2-config.cmake

  Add the installation prefix of "ADIOS2" to CMAKE_PREFIX_PATH or set
  "ADIOS2_DIR" to a directory containing one of the above files.  If "ADIOS2"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Checking for one of the modules 'slepc>=3.15'
-- Checking for package 'SCOTCH-PT'
-- Found SCOTCH (version 7.0.4)
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Success
-- Found SCOTCH: /opt/homebrew/lib/libptscotch.dylib;/opt/homebrew/lib/libscotch.dylib;/opt/homebrew/lib/libptscotcherr.dylib
-- ParMETIS could not be found/configured. (missing: PARMETIS_TEST_RUNS PARMETIS_INCLUDE_DIRS PARMETIS_VERSION PARMETIS_VERSION_OK) (Required is at least version "4.0.2")
-- The following features have been enabled:

 * BUILD_SHARED_LIBS, Build DOLFINx with shared libraries.
 * CMAKE_INSTALL_RPATH_USE_LINK_PATH, Add paths to linker search and installed rpath.
 * DOLFINX_UFCX_PYTHON, Enable UFCx discovery using Python. Disable if UFCx should be found using a CMake config file.

-- The following OPTIONAL packages have been found:

 * SCOTCH, Programs and libraries for graph, mesh and hypergraph partitioning, <https://www.labri.fr/perso/pelegrin/scotch>
   Parallel graph partitioning

-- The following REQUIRED packages have been found:

 * MPI (required version >= 3)
 * pugixml
 * boost_chrono (required version == 1.82.0)
 * boost_headers (required version == 1.82.0)
 * boost_timer (required version == 1.82.0)
 * Boost (required version >= 1.70), Boost C++ libraries, <http://www.boost.org>
 * Basix (required version >= 0.7)
 * PETSc, Portable, Extensible Toolkit for Scientific Computation (PETSc), <https://www.mcs.anl.gov/petsc/>
   PETSc linear algebra backend
 * HDF5, Hierarchical Data Format 5 (HDF5), <https://www.hdfgroup.org/HDF5>
 * Python3
 * UFCx (required version >= 0.7), Interface for form-compilers (part of FFCx), <https://github.com/fenics/ffcx>
 * PkgConfig

-- The following features have been disabled:

 * DOLFINX_SKIP_BUILD_TESTS, Skip build tests for testing usability of dependency packages.

-- The following OPTIONAL packages have not been found:

 * ADIOS2 (required version >= 2.8.1), Adaptable Input/Output (I/O) System., <https://adios2.readthedocs.io/en/latest/>
   IO, including in parallel

-- The following RECOMMENDED packages have not been found:

 * SLEPc, Scalable Library for Eigenvalue Problem Computations, <http://slepc.upv.es/>
   Eigenvalue computation
 * ParMETIS (required version >= 4.0.2), Parallel Graph Partitioning and Fill-reducing Matrix Ordering, <http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview>
   Parallel graph partitioning

-- Configuring done (2.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Applications/dolfinx-0.7.3/cpp/build

and here is the output of make install

% make install
[  2%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/defines.cpp.o
[  4%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/IndexMap.cpp.o
[  6%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/log.cpp.o
[  9%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/MPI.cpp.o
[ 11%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Table.cpp.o
[ 13%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Timer.cpp.o
[ 16%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogger.cpp.o
[ 18%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogManager.cpp.o
[ 20%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/timing.cpp.o
[ 23%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/DirichletBC.cpp.o
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:18:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/Geometry.h:316:17: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto xc = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:262:16: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto phi = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:269:21: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto x_dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:18:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/BoundingBoxTree.h:14:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/utils.h:152:17: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:18:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/BoundingBoxTree.h:14:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/utils.h:455:11: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:57:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:96:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:527:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:877:21: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:70:14: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
  auto phi = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:81:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto x_dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:552:11: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:566:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:571:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:576:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:602:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:606:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:611:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:615:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [dolfinx/CMakeFiles/dolfinx.dir/fem/DirichletBC.cpp.o] Error 1
make[1]: *** [dolfinx/CMakeFiles/dolfinx.dir/all] Error 2
make: *** [all] Error 2

This should be in Basix 0.7.x, Ref: mdspan update by garth-wells · Pull Request #699 · FEniCS/basix · GitHub

Could it be a compiler issue? What C/c++ compiler are you using?
Maybe @garth or @jackhale has any ideas:)

I would bet that @mekong has still basix 0.8.0 header files installed. That namespace changed on the latest update of mdspan in basix as of a week ago (circa).

Hello,
I found indeed from ccmake ... that the ufc header file directory was the one from another ufc installation that I did with anaconda. I cleaned up the installation, and did

build% cmake ..

-- The C compiler identification is AppleClang 15.0.0.15000100

-- The CXX compiler identification is AppleClang 15.0.0.15000100

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

fatal: not a git repository (or any of the parent directories): .git

-- Found MPI_C: /opt/homebrew/Cellar/open-mpi/5.0.1/lib/libmpi.dylib (found suitable version "3.1", minimum required is "3")

-- Found MPI_CXX: /opt/homebrew/Cellar/open-mpi/5.0.1/lib/libmpi.dylib (found suitable version "3.1", minimum required is "3")

-- Found MPI: TRUE (found suitable version "3.1", minimum required is "3")

-- Performing Test HAVE_PIPE

-- Performing Test HAVE_PIPE - Success

-- Performing Test HAVE_PEDANTIC

-- Performing Test HAVE_PEDANTIC - Success

-- Performing Test HAVE_DEBUG

-- Performing Test HAVE_DEBUG - Success

-- Performing Test HAVE_O2_OPTIMISATION

-- Performing Test HAVE_O2_OPTIMISATION - Success

-- Found Boost 1.84.0 at /opt/homebrew/lib/cmake/Boost-1.84.0

-- Requested configuration: QUIET REQUIRED COMPONENTS timer

-- Found boost_headers 1.84.0 at /opt/homebrew/lib/cmake/boost_headers-1.84.0

-- Found boost_timer 1.84.0 at /opt/homebrew/lib/cmake/boost_timer-1.84.0

-- [x] libboost_timer-mt.dylib

-- [ ] libboost_timer-mt.a

-- [ ] libboost_timer.dylib

-- [ ] libboost_timer.a

-- Adding boost_timer dependencies: headers

-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.70") found components: timer

-- Checking for basix hints with /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9

-- Found PkgConfig: /opt/homebrew/Cellar/pkg-config/0.29.2_3/bin/pkg-config (found version "0.29.2")

-- Checking for one of the modules 'PETSc>=3.15;petsc>=3.15'

-- Looking for PETSC_USE_COMPLEX

-- Looking for PETSC_USE_COMPLEX - not found

-- Found PETSc version 3.20.5, prefix: /opt/homebrew/opt/petsc

-- HDF5: Using hdf5 compiler wrapper to determine C configuration

-- Found HDF5: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libdl.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libm.tbd (found version "1.14.3") found components: C

-- HDF5_DIR: HDF5_DIR-NOTFOUND

-- HDF5_DEFINITIONS:

-- HDF5_INCLUDE_DIRS: /Applications/hdf5-1.14.3/hdf5/include

-- HDF5_LIBRARIES: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libdl.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libm.tbd

-- HDF5_HL_LIBRARIES:

-- HDF5_C_DEFINITIONS:

-- HDF5_C_INCLUDE_DIR:

-- HDF5_C_INCLUDE_DIRS: /Applications/hdf5-1.14.3/hdf5/include

-- HDF5_C_LIBRARY:

-- HDF5_C_LIBRARIES: /Applications/hdf5-1.14.3/hdf5/lib/libhdf5.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libdl.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libm.tbd

-- HDF5_C_HL_LIBRARY:

-- HDF5_C_HL_LIBRARIES:

-- Defined targets (if any):

-- ... hdf5::hdf5

-- Found Python3: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 (found version "3.9.6") found components: Interpreter

-- Asking Python module FFCx for location of UFC... (Python executable: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9)

-- Found UFCx: /Users/michele/.local/lib/python3.10/site-packages/ffcx/codegeneration (found suitable version "0.7.0", minimum required is "0.7")

CMake Warning at CMakeLists.txt:276 (find_package):

By not providing "FindADIOS2.cmake" in CMAKE_MODULE_PATH this project has

asked CMake to find a package configuration file provided by "ADIOS2", but

CMake did not find one.

Could not find a package configuration file provided by "ADIOS2" (requested

version 2.8.1) with any of the following names:

ADIOS2Config.cmake

adios2-config.cmake

Add the installation prefix of "ADIOS2" to CMAKE_PREFIX_PATH or set

"ADIOS2_DIR" to a directory containing one of the above files. If "ADIOS2"

provides a separate development package or SDK, be sure it has been

installed.

-- Checking for one of the modules 'slepc>=3.15'

-- Checking for package 'SCOTCH-PT'

-- Found SCOTCH (version 7.0.4)

-- Performing test SCOTCH_TEST_RUNS

-- Performing test SCOTCH_TEST_RUNS - Success

-- Found SCOTCH: /opt/homebrew/lib/libptscotch.dylib;/opt/homebrew/lib/libscotch.dylib;/opt/homebrew/lib/libptscotcherr.dylib

-- ParMETIS could not be found/configured. (missing: PARMETIS_TEST_RUNS PARMETIS_INCLUDE_DIRS PARMETIS_VERSION PARMETIS_VERSION_OK) (Required is at least version "4.0.2")

-- The following features have been enabled:

* BUILD_SHARED_LIBS, Build DOLFINx with shared libraries.

* CMAKE_INSTALL_RPATH_USE_LINK_PATH, Add paths to linker search and installed rpath.

* DOLFINX_UFCX_PYTHON, Enable UFCx discovery using Python. Disable if UFCx should be found using a CMake config file.

-- The following OPTIONAL packages have been found:

* SCOTCH, Programs and libraries for graph, mesh and hypergraph partitioning, <https://www.labri.fr/perso/pelegrin/scotch>

Parallel graph partitioning

-- The following REQUIRED packages have been found:

* MPI (required version >= 3)

* pugixml

* boost_headers (required version == 1.84.0)

* boost_timer (required version == 1.84.0)

* Boost (required version >= 1.70), Boost C++ libraries, <http://www.boost.org>

* Basix (required version >= 0.7)

* PETSc, Portable, Extensible Toolkit for Scientific Computation (PETSc), <https://www.mcs.anl.gov/petsc/>

PETSc linear algebra backend

* HDF5, Hierarchical Data Format 5 (HDF5), <https://www.hdfgroup.org/HDF5>

* Python3

* UFCx (required version >= 0.7), Interface for form-compilers (part of FFCx), <https://github.com/fenics/ffcx>

* PkgConfig

-- The following features have been disabled:

* DOLFINX_SKIP_BUILD_TESTS, Skip build tests for testing usability of dependency packages.

-- The following OPTIONAL packages have not been found:

* ADIOS2 (required version >= 2.8.1), Adaptable Input/Output (I/O) System., <https://adios2.readthedocs.io/en/latest/>

IO, including in parallel

-- The following RECOMMENDED packages have not been found:

* SLEPc, Scalable Library for Eigenvalue Problem Computations, <http://slepc.upv.es/>

Eigenvalue computation

* ParMETIS (required version >= 4.0.2), Parallel Graph Partitioning and Fill-reducing Matrix Ordering, <http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview>

Parallel graph partitioning

-- Configuring done (3.3s)

-- Generating done (0.0s)

-- Build files have been written to: /Applications/dolfinx-0.7.3/cpp/build

and then

 % make install
[  2%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/log.cpp.o
[  4%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/MPI.cpp.o
[  6%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Table.cpp.o
[  9%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Timer.cpp.o
[ 11%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogger.cpp.o
[ 13%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogManager.cpp.o
[ 16%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/timing.cpp.o
[ 18%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/DirichletBC.cpp.o
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:18:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/Geometry.h:316:17: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto xc = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:262:16: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto phi = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:11:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/FunctionSpace.h:269:21: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto x_dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:18:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/BoundingBoxTree.h:14:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/utils.h:152:17: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:18:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/BoundingBoxTree.h:14:
/Applications/dolfinx-0.7.3/cpp/dolfinx/mesh/utils.h:455:11: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:57:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:96:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:527:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
      auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:19:
/Applications/dolfinx-0.7.3/cpp/dolfinx/geometry/utils.h:877:21: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        auto dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:70:14: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
  auto phi = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE::
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:81:19: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
    auto x_dofs = MDSPAN_IMPL_STANDARD_NAMESPACE::
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:552:11: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
        = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:566:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:571:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:576:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:602:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:606:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:611:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.cpp:7:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/DirichletBC.h:12:
In file included from /Applications/dolfinx-0.7.3/cpp/dolfinx/fem/Function.h:12:
/Applications/dolfinx-0.7.3/cpp/dolfinx/fem/interpolate.h:615:13: error: no member named 'submdspan' in namespace 'std::experimental'; did you mean 'std::submdspan'?
          = MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE ::
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            std::submdspan
/usr/local/include/basix/mdspan.hpp:23:42: note: expanded from macro 'MDSPAN_IMPL_STANDARD_NAMESPACE'
  #define MDSPAN_IMPL_STANDARD_NAMESPACE std
                                         ^
/usr/local/include/basix/mdspan.hpp:5258:1: note: 'std::submdspan' declared here
submdspan(const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy> &src,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [dolfinx/CMakeFiles/dolfinx.dir/fem/DirichletBC.cpp.o] Error 1
make[1]: *** [dolfinx/CMakeFiles/dolfinx.dir/all] Error 2
make: *** [all] Error 2

Now the issue has changed, which suggests tha the issue before was with the location of the header files. Do you know how to fix this latest issue?

Thank you

Here is the info on my C++ compiler

 % g++ -v
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

That didn’t make any difference whatsoever, basix include is still /usr/local/include/basix/mdspan.hpp. Until you are sure which version of basix you installed there, I doubt the error will change significantly.

Well, then how do I force cmake to look for basix ina specific folder?

Remove the basix in usr/local/include and reinstall it.
Is there a specific reason you are installing from source and not using any of our package managing options? (Conda, docker, spack?)

I removed the former basix installation directory and now make install works !

sudo make install
Password:
[  2%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/defines.cpp.o
[  4%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/IndexMap.cpp.o
[  6%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/log.cpp.o
[  9%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/MPI.cpp.o
[ 11%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Table.cpp.o
[ 13%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/Timer.cpp.o
[ 16%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogger.cpp.o
[ 18%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/TimeLogManager.cpp.o
[ 20%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/common/timing.cpp.o
[ 23%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/DirichletBC.cpp.o
[ 25%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/CoordinateElement.cpp.o
[ 27%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/DofMap.cpp.o
[ 30%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/ElementDofLayout.cpp.o
[ 32%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/FiniteElement.cpp.o
[ 34%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/dofmapbuilder.cpp.o
[ 37%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/petsc.cpp.o
[ 39%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/sparsitybuild.cpp.o
[ 41%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/fem/utils.cpp.o
[ 44%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/graph/ordering.cpp.o
[ 46%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/graph/partitioners.cpp.o
[ 48%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/graph/partition.cpp.o
[ 51%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/ADIOS2Writers.cpp.o
[ 53%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/cells.cpp.o
[ 55%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/HDF5Interface.cpp.o
[ 58%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/VTKFile.cpp.o
[ 60%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/vtk_utils.cpp.o
[ 62%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/XDMFFile.cpp.o
[ 65%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/xdmf_function.cpp.o
[ 67%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/xdmf_mesh.cpp.o
[ 69%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/io/xdmf_utils.cpp.o
[ 72%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/la/SparsityPattern.cpp.o
[ 74%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/la/petsc.cpp.o
[ 76%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/la/slepc.cpp.o
[ 79%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/Topology.cpp.o
[ 81%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/cell_types.cpp.o
[ 83%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/graphbuild.cpp.o
[ 86%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/permutationcomputation.cpp.o
[ 88%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/topologycomputation.cpp.o
[ 90%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/mesh/utils.cpp.o
[ 93%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/nls/NewtonSolver.cpp.o
[ 95%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/refinement/plaza.cpp.o
[ 97%] Building CXX object dolfinx/CMakeFiles/dolfinx.dir/refinement/utils.cpp.o
[100%] Linking CXX shared library libdolfinx.dylib
[100%] Built target dolfinx
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib/libdolfinx.0.7.3.dylib
-- Up-to-date: /usr/local/lib/libdolfinx.0.7.dylib
-- Up-to-date: /usr/local/lib/libdolfinx.dylib
-- Installing: /usr/local/lib/cmake/dolfinx/DOLFINXTargets.cmake
-- Installing: /usr/local/lib/cmake/dolfinx/DOLFINXTargets-relwithdebinfo.cmake
-- Up-to-date: /usr/local/include/dolfinx.h
-- Up-to-date: /usr/local/include/dolfinx/common/defines.h
-- Up-to-date: /usr/local/include/dolfinx/common/dolfinx_common.h
-- Up-to-date: /usr/local/include/dolfinx/common/dolfinx_doc.h
-- Up-to-date: /usr/local/include/dolfinx/common/IndexMap.h
-- Up-to-date: /usr/local/include/dolfinx/common/log.h
-- Up-to-date: /usr/local/include/dolfinx/common/loguru.hpp
-- Up-to-date: /usr/local/include/dolfinx/common/sort.h
-- Up-to-date: /usr/local/include/dolfinx/common/types.h
-- Up-to-date: /usr/local/include/dolfinx/common/math.h
-- Up-to-date: /usr/local/include/dolfinx/common/MPI.h
-- Up-to-date: /usr/local/include/dolfinx/common/Scatterer.h
-- Up-to-date: /usr/local/include/dolfinx/common/Table.h
-- Up-to-date: /usr/local/include/dolfinx/common/Timer.h
-- Up-to-date: /usr/local/include/dolfinx/common/TimeLogger.h
-- Up-to-date: /usr/local/include/dolfinx/common/TimeLogManager.h
-- Up-to-date: /usr/local/include/dolfinx/common/timing.h
-- Up-to-date: /usr/local/include/dolfinx/common/utils.h
-- Up-to-date: /usr/local/include/dolfinx/fem/Constant.h
-- Up-to-date: /usr/local/include/dolfinx/fem/CoordinateElement.h
-- Up-to-date: /usr/local/include/dolfinx/fem/DirichletBC.h
-- Up-to-date: /usr/local/include/dolfinx/fem/DofMap.h
-- Up-to-date: /usr/local/include/dolfinx/fem/ElementDofLayout.h
-- Up-to-date: /usr/local/include/dolfinx/fem/Expression.h
-- Up-to-date: /usr/local/include/dolfinx/fem/FiniteElement.h
-- Up-to-date: /usr/local/include/dolfinx/fem/Form.h
-- Up-to-date: /usr/local/include/dolfinx/fem/Function.h
-- Up-to-date: /usr/local/include/dolfinx/fem/FunctionSpace.h
-- Up-to-date: /usr/local/include/dolfinx/fem/assembler.h
-- Up-to-date: /usr/local/include/dolfinx/fem/assemble_matrix_impl.h
-- Up-to-date: /usr/local/include/dolfinx/fem/assemble_scalar_impl.h
-- Up-to-date: /usr/local/include/dolfinx/fem/assemble_vector_impl.h
-- Up-to-date: /usr/local/include/dolfinx/fem/discreteoperators.h
-- Up-to-date: /usr/local/include/dolfinx/fem/dofmapbuilder.h
-- Up-to-date: /usr/local/include/dolfinx/fem/dolfinx_fem.h
-- Up-to-date: /usr/local/include/dolfinx/fem/interpolate.h
-- Up-to-date: /usr/local/include/dolfinx/fem/petsc.h
-- Up-to-date: /usr/local/include/dolfinx/fem/sparsitybuild.h
-- Up-to-date: /usr/local/include/dolfinx/fem/utils.h
-- Up-to-date: /usr/local/include/dolfinx/geometry/BoundingBoxTree.h
-- Up-to-date: /usr/local/include/dolfinx/geometry/gjk.h
-- Up-to-date: /usr/local/include/dolfinx/geometry/dolfinx_geometry.h
-- Up-to-date: /usr/local/include/dolfinx/geometry/utils.h
-- Up-to-date: /usr/local/include/dolfinx/graph/AdjacencyList.h
-- Up-to-date: /usr/local/include/dolfinx/graph/dolfinx_graph.h
-- Up-to-date: /usr/local/include/dolfinx/graph/ordering.h
-- Up-to-date: /usr/local/include/dolfinx/graph/partitioners.h
-- Up-to-date: /usr/local/include/dolfinx/graph/partition.h
-- Up-to-date: /usr/local/include/dolfinx/io/dolfinx_io.h
-- Up-to-date: /usr/local/include/dolfinx/io/ADIOS2Writers.h
-- Up-to-date: /usr/local/include/dolfinx/io/cells.h
-- Up-to-date: /usr/local/include/dolfinx/io/HDF5Interface.h
-- Up-to-date: /usr/local/include/dolfinx/io/vtk_utils.h
-- Up-to-date: /usr/local/include/dolfinx/io/VTKFile.h
-- Up-to-date: /usr/local/include/dolfinx/io/XDMFFile.h
-- Up-to-date: /usr/local/include/dolfinx/io/xdmf_function.h
-- Up-to-date: /usr/local/include/dolfinx/io/xdmf_mesh.h
-- Up-to-date: /usr/local/include/dolfinx/io/xdmf_utils.h
-- Up-to-date: /usr/local/include/dolfinx/la/dolfinx_la.h
-- Up-to-date: /usr/local/include/dolfinx/la/MatrixCSR.h
-- Up-to-date: /usr/local/include/dolfinx/la/matrix_csr_impl.h
-- Up-to-date: /usr/local/include/dolfinx/la/SparsityPattern.h
-- Up-to-date: /usr/local/include/dolfinx/la/Vector.h
-- Up-to-date: /usr/local/include/dolfinx/la/petsc.h
-- Up-to-date: /usr/local/include/dolfinx/la/utils.h
-- Up-to-date: /usr/local/include/dolfinx/la/slepc.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/dolfinx_mesh.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/Mesh.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/Geometry.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/Topology.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/MeshTags.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/cell_types.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/generation.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/graphbuild.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/permutationcomputation.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/topologycomputation.h
-- Up-to-date: /usr/local/include/dolfinx/mesh/utils.h
-- Up-to-date: /usr/local/include/dolfinx/nls/dolfinx_nls.h
-- Up-to-date: /usr/local/include/dolfinx/nls/NewtonSolver.h
-- Up-to-date: /usr/local/include/dolfinx/refinement/dolfinx_refinement.h
-- Up-to-date: /usr/local/include/dolfinx/refinement/plaza.h
-- Up-to-date: /usr/local/include/dolfinx/refinement/refine.h
-- Up-to-date: /usr/local/include/dolfinx/refinement/utils.h
-- Installing: /usr/local/include/dolfinx/common/version.h
-- Installing: /usr/local/lib/cmake/dolfinx/DOLFINXConfig.cmake
-- Installing: /usr/local/lib/cmake/dolfinx/DOLFINXConfigVersion.cmake
-- Installing: /usr/local/lib/pkgconfig/dolfinx.pc
-- Installing: /usr/local/lib/dolfinx/dolfinx.conf
----------------------------------------------------------------------------
DOLFINx has now been installed in

    /usr/local

and demo programs have been installed in

    /usr/local/share/dolfinx/demo

Don't forget to update your environment variables. This can be done
easily using the helper file 'dolfinx.conf' which sets the appropriate
variables (for users of the Bash shell).

To update your environment variables, run the following command:

    source /usr/local/lib/dolfinx/dolfinx.conf

I have been trying multiple ways of installing dolfinx, and this is the one that worked first.

Also, the output of make install says

nd demo programs have been installed in

    /usr/local/share/dolfinx/demo

however, no such directory exists:

 % cd  /usr/local/share/dolfinx  
cd: no such file or directory: /usr/local/share/dolfinx

Where can I find the demo files ?
Thanks