Not sure why gfortran fails to link as shown in your config.log. You might have some env. variables causing problems in the link phase.
To better investigate the problem, please execute the following script and post the full log
cat > /tmp/ff.f <<EOF
program main
character(LEN=10) :: first_name
character(LEN=15) :: last_name
first_name = "John"
last_name = "Doe"
call sub(first_name, last_name)
end
EOF
gfortran -Wl,--verbose /tmp/ff.f -o ff.x
rm -f /tmp/ff.f /tmp/ff.x
By the way, you are missing two env. variables in your settings
BLAS_SIZE=8
SCALAPACK_SIZE=8
|