Hi Aidan,

Based on the error message, it seems your installed CMake version is lower than it is required by Nektar. Just upgrade your cmake to the latest version. It should solve the issue 

Best
Mohsen 

Dr Mohsen Lahooti, PhD
Lecturer in Fluid-Structure Interaction
Mechanical Engineering

Newcastle University
School of Engineering
Room 4.28, Stephenson Building
Claremont road
Newcastle upon Tyne
NE1 7RU
UK

Email mohsen.lahooti@newcastle.ac.uk
Webpage



From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Aidan Forknall <A.Forknall@lboro.ac.uk>
Sent: Friday, May 16, 2025 3:08:26 PM
To: nektar-users@imperial.ac.uk <nektar-users@imperial.ac.uk>
Subject: [Nektar-users] build issues with versions 5.6.0 and 5.7.0
 

⚠ External sender. Take care when opening links or attachments. Do not provide your login details.

This email from A.Forknall@lboro.ac.uk originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list to disable email stamping for this address.

 

Hi

I am having issues compiling fresh installs of nektar v5.6.0 and v5.7.0 onto a linux workstation. The tar.gz files are downloaded from nektar src. Once extracted I follow the user guide instructions to create a build directory and pull up the ccmake gui (versions of ccmake and cmake on the PC are 4.0.2 stored in /snap/bin/cmake). Only the IncNavirStokesSolver is on, with USE_MPI switched on with thirdparty builds of GSMPI and SCOTCH. When configuring a cmake warning appears regarding policy CMP0177, and when running 'make install' the following error is displayed:
~~~~
CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred!
make[2]: *** [CMakeFiles/gsmpi-1.2.1_2.dir/build.make:92: ThirdParty/stamp/gsmpi-1.2.1_2-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:1405: CMakeFiles/gsmpi-1.2.1_2.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
~~~~

I assume it is an error with gsmpi, however when trying to configure with MPI on without building thirdparty GSMPI, the configuring crashes stating it must be built.

Any advice is most welcome.

Kind regards,
Aidan

--------------------------------------------------------------------------------------------------

Aidan Forknall

Research Associate - Computational Fluid Dynamics of Spray Combustion

Rolls-Royce UTC in Combustion System Aerothermal Processes

Department of Aeronautical and Automotive Engineering

Loughborough University

LE11 3TU, UK​

--------------------------------------------------------------------------------------------------