AGRIF compilation with recent version of gfortran
Whit recent version (gcc>10), AGRIF/conv is not compiled
A fix has been added in release 1.3.1 in jobcomp and jobcomp_rvtk
CI must be updated (with new docker container on recent gcc version) to highlight the error and fix it
Change will be done in check_master_vs_1.3.1 and merge in master after
if [[ $COMPILEAGRIF ]] ; then
# Find the default C compiler
CC1=$(echo -e 'dummy_target:\n\t@echo $(CC)' | $MAKE -f - dummy_target)
CFLAGS1=$(echo -e 'dummy_target:\n\t@echo $(CFLAGS)' | $MAKE -f - dummy_target)
# Test if the C compiler is the GNU Compiler
# if True add '-fcommon' to CFLAGS
if command -v "$CC1" >/dev/null && "$CC1" -v 2>&1 | grep -q "gcc version"; then
echo "Using the GNU C compiler. Adding -fcommon to CFLAGS"
CFLAGS1="$CFLAGS1 -fcommon"
fi
#
# compile the AGRIF librairy
#
if [[ $COMPILEMPI ]] ; then
$MAKE -C AGRIF FC="$CFT1" CPP="$CPP1" CPPFLAGS="-DAGRIF_MPI $MPIINC" FFLAGS="$FFLAGS1" CFLAGS="$CFLAGS1"
else