Building solver error on Centos7

Hi everyone

I have installed a Linux version of MFIX-21.4 on Centos7. MFIX is opened without vtk through mfix --novtk due to the opengl problem in my computer. A test is conducted to verify my installation through a case which runs well in Windows10. However, when building the solver, some errors are reported as follows. How to solve these problems. I have installed gcc, make and cmake.

Running build_mfixsolver -j --smp -DCMAKE_Fortran_COMPILER=gfortran
Building custom solver for Cylinder.mfx
Running cmake command:

cmake -DCMAKE_Fortran_COMPILER=gfortran -DENABLE_PYMFIX=ON -DPython3_EXECUTABLE=/home/feiyang/anaconda3/envs/mfix-21.4/bin/python3.8 -DPython3_ROOT_DIR=/home/feiyang/anaconda3/envs/mfix-21.4 -DENABLE_OpenMP=1 -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/ncsfs02/feiyang/Simulation/lb2 -DUDF_DIR=/ncsfs02/feiyang/Simulation/lb2 -DVERSION=21.4 /home/feiyang/anaconda3/envs/mfix-21.4/share/mfix/src

– Setting build type to ‘RelWithDebInfo’ as none was specified.
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.22.2
– Fortran compiler = gfortran
– Fortran flags =
– ENABLE_MPI = OFF
– ENABLE_OpenMP = 1
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The C compiler identification is GNU 11.1.0
– The Fortran compiler identification is GNU 4.8.5
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Check for working Fortran compiler: /usr/bin/gfortran - skipped
– Found OpenMP_C: -fopenmp (found version “4.5”)
– Found OpenMP_Fortran: -fopenmp (found version “3.1”)
– Found OpenMP: TRUE (found version “4.5”)
– Found Git: /home/feiyang/anaconda3/envs/mfix-21.4/bin/git (found version “2.35.0”)
– Found Python3: /home/feiyang/anaconda3/envs/mfix-21.4/bin/python3.8 (found version “3.8.12”) found components: Interpreter NumPy Development.Module
– Configuring done
– Generating done
– Build files have been written to: /ncsfs02/feiyang/Simulation/lb2/build
Build command:

cmake --build . --target install -j 4

Scanning dependencies of target mfixcore
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/funits_mod.f.o
gfortran: error: unrecognized command line option -ffpe-summary=none
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/funits_mod.f.o] Error 1
gmake[2]: *** Waiting for unfinished jobs…
gfortran: error: unrecognized command line option -ffpe-summary=none
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/param1_mod.f.o
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/param_mod.f.o

                 BUILD FAILED

==========================================================================
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/param1_mod.f.o] Error 1
gfortran: error: unrecognized command line option -ffpe-summary=none
gfortran: error: unrecognized command line option -ffpe-summary=none
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/param_mod.f.o] Error 1
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o] Error 1
gmake[1]: *** [model/CMakeFiles/mfixcore.dir/all] Error 2
gmake: *** [all] Error 2

You have a very old Fortran compiler. You (or somebody) upgraded C to version 11, but Fortran is stuck in the dark ages.

Either upgrade GFortran (recommended, you will get better results) or use this workaround described in Compilation failure

Hi, Charles

I met the following error when building solver for a PIC tutorial case in ubuntu 16.04 LTS. The MFIX verison is 20.2.1. Can you help me solve this problem? Thank you.

Wuming - please do not post new questions to threads that are already marked as ‘solved’, and try to make a subject that describes the problem clearly.

Cannot map zero-fill pages is not a message we’ve ever seen before coming from MFiX. This looks like a memory issue - how much RAM does this system have?