Hi Aidan,

Please check cmake version being used with
cmake --version

If you have multiple versions of cmake on your system, consider using full path (i.e. /snap/bin/ccmake ..)

Cheers,
Jacques


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

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​

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