Open k-yoshimi opened 3 years ago
Also starting with version 10, GCC defaults to using -fno-common
. This results in a large amount of multiple definition
errors during linking. Adding -fcommon
to the C flags should fix this.
https://github.com/wistaria/MateriAppsInstaller/blob/master/apps/hphi/patch/hphi-3.4.0.patch solves the problem with GCC 10.
The above patch works also for GCC 11.
When you use gcc10 with MPI for compiling HPhi and receive the following error
please add the following option for cmake.
-DCMAKE_Fortran_FLAGS_RELEASE=-fallow-argument-mismatch
ref. https://gcc.gnu.org/gcc-10/changes.html
Mismatches between actual and dummy argument lists in a single file are now rejected with an error. Use the new option -fallow-argument-mismatch to turn these errors into warnings; this option is implied with -std=legacy. -Wargument-mismatch has been removed.