Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 12:18:43 +0100 (BST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        mexas@bristol.ac.uk, sgk@troutmask.apl.washington.edu
Cc:        fortran@freebsd.org
Subject:   Re: gfortran46: Error: Type of argument 'z' in call to 'dimag' at (1) should be COMPLEX(16), not COMPLEX(8)
Message-ID:  <201307121118.r6CBIhiE098987@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <20130712051417.GA71107@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>From sgk@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307121118.r6CBIhiE098987>