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