firedrakeproject / firedrake

Firedrake is an automated system for the portable solution of partial differential equations using the finite element method (FEM)
https://firedrakeproject.org
Other
520 stars 160 forks source link

INSTALL: `libsupermesh` should be built using the CMake built during PETSc configure #3806

Open JDBetteridge opened 1 month ago

JDBetteridge commented 1 month ago

The installation process frequently fails building libsupermesh because an outdated system CMake is being used.

To work around this issue for PETSc external packages, the installation script will tell PETSc configure to download and build a newer CMake. This should be linked in $VIRTUAL_ENV/bin and used later in the install script to build libsupermesh.

kakila commented 1 day ago

Is there a workaround? I am hitting this problem. Distributor ID: Ubuntu Description: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble Python 3.12.3

JDBetteridge commented 1 day ago

firedrake-install --pip-install cmake Should add a more up to date CMake to your virtualenv at install time.

Alternatively, to pick up a previously failed install:

pip install cmake
firedrake-update
kakila commented 1 day ago

It was

cmake version 3.28.3

after first command got

Successfully installed cmake-3.31.1

then, update works. Testing now... Thanks!