gfortran46: Error: Type of argument 'z' in call to 'dimag' at (1) should be COMPLEX(16), not COMPLEX(8)
Anton Shterenlikht
mexas at bris.ac.uk
Fri Jul 12 11:18:57 UTC 2013
>From sgk at troutmask.apl.washington.edu Fri Jul 12 07:25:06 2013
*skip*
>Yes, this is essentially the cause of the problem.
>I downloaded french/aster, and quite frankly, I
>would not trust any results from that code. Given
>the amount of Fortran code, blindly using
>-fdefault-integer-8 and -fdefault-real-8 is not a
>good idea.
*skip*
>I suspect that the code_aster developers have no
>idea how dangerous these options are, or understand
>their limitations. If the code_aster developers
>do not want to do a proper port of the Fortran code
>from single precision to double precision, then they
>probably should use -freal-4-real-8, which is likely
>closers to what they want.
Ok, I'll see if the port builds with -freal-4-real-8.
However this option is only supported starting from 4.7:
$ gfortran46 -freal-4-real-8 z.f90
f951: error: unrecognized command line option '-freal-4-real-8'
$ gfortran47 -freal-4-real-8 z.f90
$
which brings me to the topic I struggled for some time -
using non-default GCC ports compiler. Simply changing
$ grep GCC_DEFAULT_VERSION= /usr/ports/Mk/bsd.gcc.mk
GCC_DEFAULT_VERSION= 4.6
$
to e.g. 4.7 seems to work for some ports but not for others.
It is not clear how many ports, and which, have to
be rebuilt with such a change. For example, if I want
to build code_aster with 4.7, do I need to rebuild
all or some ports on which it depends also with 4.7?
Anton
More information about the freebsd-fortran
mailing list