Your Fortran/C compiler is too old and does not recognize the -march=haswell
flag.
Three options:
-
Upgrade the gcc/gfortran in your base OS if possible. This will be used for all code compilation on your system.
-
Install a newer compiler from conda-forge into the mfix environment. This will only be used for compiling MFiX.
bash$ conda activate mfix-22.2.2
(mfix-22.2.2)$ conda install -c conda-forge gcc gfortran
- (Not recommended) Modify the CMake files to remove the
haswell
switch as described at :
Can not build the smp solver under Centos-7 - #4 by cgw
Note that this option will produce lower-quality (slower) code. Option 2 is probably easiest, in fact we are planning to include gcc/gfortran as part of the MFiX package in the future.