Hello Yvan,
Thank you very much. Thanks for your suggestions, I agree with you, the issue might be due to the incompatible compilers/linkers being used. So I tried another time, started at the very beginning, “module purge” and then “module load” the compilers.
The currently loaded modules are:
1) GCCcore/5.4.0 6) OpenMPI/1.10.3-GCC-5.4.0-2.26 11) foss/2016b 16) Tcl/8.6.5-foss-2016b 21) libffi/3.2.1-foss-2016b
2) binutils/2.26-GCCcore-5.4.0 7) OpenBLAS/0.2.18-GCC-5.4.0-2.26-LAPACK-3.6.1 12) bzip2/1.0.6-foss-2016b 17) SQLite/3.13.0-foss-2016b 22) Python/3.5.2-foss-2016b
3) GCC/5.4.0-2.26 8) gompi/2016b 13) zlib/1.2.8-foss-2016b 18) Tk/8.6.5-foss-2016b 23) cmake/3.16.5
4) numactl/2.0.11-GCC-5.4.0-2.26 9) FFTW/3.3.4-gompi-2016b 14) ncurses/6.0-foss-2016b 19) GMP/6.1.1-foss-2016b
5) hwloc/1.11.3-GCC-5.4.0-2.26 10) ScaLAPACK/2.0.2-gompi-2016b-OpenBLAS-0.2.18-LAPACK-3.6.1 15) libreadline/6.3-foss-2016b 20) XZ/5.2.2-foss-2016b
The setup_ini showed the compilers’ versions are changed, though I’m not 100% sure this time will have no compatible problems.
#========================================================
# Setup file for Code_Saturne installation
#========================================================
#
#--------------------------------------------------------
# Download packages ?
#--------------------------------------------------------
download yes
#
#--------------------------------------------------------
# Install Code_Saturne with debugging symbols
#--------------------------------------------------------
debug no
#
#--------------------------------------------------------
# Installation directory
#--------------------------------------------------------
prefix /users/rw00793/Code_Saturne/7.1-alpha
#
#--------------------------------------------------------
# Optional architecture Name (installation subdirectory)
#--------------------------------------------------------
use_arch no
arch Linux_x86_64
#
#--------------------------------------------------------
# C compiler and optional MPI wrapper
#--------------------------------------------------------
compC /users/rw00793/.conda/envs/myenv/bin/x86_64-conda-linux-gnu-cc
mpiCompC /opt/eb-pkg/ebadmin/software/OpenMPI/1.10.3-GCC-5.4.0-2.26/bin/mpicc
#
#--------------------------------------------------------
# Fortran compiler
#--------------------------------------------------------
compF /usr/bin/f95
#
#--------------------------------------------------------
# C++ compiler and MPI wrapper for optional packages
#
# Required only for static builds using the MED library
# or for build of optional modules such as MEDCoupling
# support.
#--------------------------------------------------------
compCxx /opt/eb-pkg/ebadmin/software/GCCcore/5.4.0/bin/c++
mpiCompCxx /opt/eb-pkg/ebadmin/software/OpenMPI/1.10.3-GCC-5.4.0-2.26/bin/mpicxx
#
#--------------------------------------------------------
# Python interpreter.
#--------------------------------------------------------
python /opt/eb-pkg/ebadmin/software/Python/3.5.2-foss-2016b/bin/python3
#
#--------------------------------------------------------
# Disable the Graphical user Interface ?
#--------------------------------------------------------
disable_gui no
#
#--------------------------------------------------------
# Disable frontend (also disables GUI) ?
# May be useful for debug builds and HPC cluster builds
# installed side-by side with a full build.
#--------------------------------------------------------
disable_frontend no
#
#--------------------------------------------------------
# Optional SALOME platform install path.
#
# This is the path for the main SALOME directory,
# not the application directory.
#
# If Code_Saturne is built with SALOME support,
# running "code_saturne salome" will launch the
# associated application, containing the CFDSTUDY module.
#--------------------------------------------------------
salome no
#
#--------------------------------------------------------
# Optional packages:
# ------------------
#
# MED / HDF5 For MED file format support
# (used by SALOME and by Gmsh)
#
# CGNS / HDF5 For CGNS file support
# (used by many meshing tools)
#
# Scotch (includes PT-Scotch) and/or ParMetis
# for parallel partitioning
#
# For Linux workstations, HDF5, CGNS, and even MED
# packages may be available through the package manager.
# HDF5 is also often available on large systems.
# When building with SALOME, the platform distribution's
# packages may be used, by setting in the matching entry
# 'yes' under the "Use" column and simply 'salome' under
# the path column.
#
# Scotch and Pt-Scotch are available in some Linux
# distributions, but may be built with options
# incompatible with non-threaded Code_Saturne runs.
#
# To install CGNS or ParMetis, the CMake
# configuration/installation tool is required
# (it is available in most Linux distributions).
#--------------------------------------------------------
#
# Name Use Install Path
#
hdf5 yes yes None
cgns yes yes None
med yes yes None
scotch yes yes None
parmetis yes yes None
#
#========================================================
When I installed this time, the last error in the “compile stage of scotch” disappeared. But an error occurred in the following step, “Error during configure stage of parmetis”. From the log file, I found it’s some cmake error.
CMake Error at /opt/pkg/apps/cmake/3.16.5/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/opt/eb-pkg/ebadmin/software/OpenMPI/1.10.3-GCC-5.4.0-2.26/bin/mpicc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_2c6d2/fast && gmake[1]: Entering directory `/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp'
gmake[1]: Warning: File `Makefile' has modification time 0.31 s in the future
/usr/bin/gmake -f CMakeFiles/cmTC_2c6d2.dir/build.make CMakeFiles/cmTC_2c6d2.dir/build
gmake[2]: Entering directory `/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp'
gmake[2]: Warning: File `CMakeFiles/cmTC_2c6d2.dir/flags.make' has modification time 0.31 s in the future
Building C object CMakeFiles/cmTC_2c6d2.dir/testCCompiler.c.o
/opt/eb-pkg/ebadmin/software/OpenMPI/1.10.3-GCC-5.4.0-2.26/bin/mpicc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /users/rw00793/.conda/envs/myenv/include -o CMakeFiles/cmTC_2c6d2.dir/testCCompiler.c.o -c /users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp/testCCompiler.c
gcc: error: unrecognized command line option ‘-fno-plt’
gmake[2]: *** [CMakeFiles/cmTC_2c6d2.dir/testCCompiler.c.o] Error 1
gmake[2]: Leaving directory `/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTC_2c6d2/fast] Error 2
gmake[1]: Leaving directory `/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeTmp'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeOutput.log".
See also "/users/rw00793/code_saturne-build/parmetis-4.0.3.build/metis/build/Linux-x86_64/CMakeFiles/CMakeError.log".
make: *** [config] Error 1
Could you please kindly guide me on how to get around this error? I think I might be almost there.
Many thanks,
Ruonan
setup_ini.txt (4.09 KB)
setup.txt (4.39 KB)
install_saturne.log (2.66 MB)