From owner-freebsd-fortran@FreeBSD.ORG Fri Jul 12 11:18:56 2013 Return-Path: Delivered-To: fortran@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EDF98695 for ; Fri, 12 Jul 2013 11:18:56 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog103.obsmtp.com (eu1sys200aog103.obsmtp.com [207.126.144.115]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED611DF3 for ; Fri, 12 Jul 2013 11:18:55 +0000 (UTC) Received: from mail-ea0-f175.google.com ([209.85.215.175]) (using TLSv1) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKUd/mGZvPIo0ik654RsprG73CrBB+YIqY@postini.com; Fri, 12 Jul 2013 11:18:56 UTC Received: by mail-ea0-f175.google.com with SMTP id z7so6283558eaf.34 for ; Fri, 12 Jul 2013 04:18:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:message-id:to:subject:cc:reply-to:in-reply-to :x-gm-message-state; bh=D+TUtgmkYMGG4BOiEJmdZ1HgeaEt6QCew6N2VUVI2eg=; b=IvMwK+tr0Xtl6sCc8LTin6Q/RpevPkKz3xMaDlvqM+NeGG/V5yr0vCbCu7/HCkP9HM SAFs7SVy9abxw404DwojWaD5ZeEd+iEhSkauQL2GlLBEa0YOD+LfAYwPpvVgQy1psuKE 3Z1Mk4VpJybYXzK+QKVYmTSAgZxMG6qtKtJfuqbRDqpN0o66UCSR74G3Hic+lFHJF764 6y6lZG6CPSerXfFqARuyJ9cJIitx6XaBSYYrUZbvX9/+QKbiLakQdcgPAr34lTVLaCCy XiX1o9Rv/ohcqv6AJYRSauHtRSWceHhmEQ+Jlc+pkMCpt7TIIqVmT1JF7oUyPfOvcEIn C1Mw== X-Received: by 10.14.223.199 with SMTP id v47mr46833233eep.32.1373627929359; Fri, 12 Jul 2013 04:18:49 -0700 (PDT) X-Received: by 10.14.223.199 with SMTP id v47mr46833139eep.32.1373627928005; Fri, 12 Jul 2013 04:18:48 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id l42sm77441225eeo.14.2013.07.12.04.18.46 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Jul 2013 04:18:46 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6) with ESMTP id r6CBIirm098988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 12 Jul 2013 12:18:44 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6/Submit) id r6CBIhiE098987; Fri, 12 Jul 2013 12:18:43 +0100 (BST) (envelope-from mexas) Date: Fri, 12 Jul 2013 12:18:43 +0100 (BST) From: Anton Shterenlikht Message-Id: <201307121118.r6CBIhiE098987@mech-cluster241.men.bris.ac.uk> To: mexas@bristol.ac.uk, sgk@troutmask.apl.washington.edu Subject: Re: gfortran46: Error: Type of argument 'z' in call to 'dimag' at (1) should be COMPLEX(16), not COMPLEX(8) In-Reply-To: <20130712051417.GA71107@troutmask.apl.washington.edu> X-Gm-Message-State: ALoCoQmkAzH7mOFh3vrdhC06aN5/o2Zs5GXx+HqL4WO/Z05C8H4dqniAd7Og0JWPX02xlHV4SP/dKAl7ycj6VvZxq3WvVOkncV8unbwGuA8/sDy9L9vUY/aGb8X2sJSXaVQFoWNnLUMMEeke8d7S4W6I/3TLgUyMwA== Cc: fortran@freebsd.org X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 11:18:57 -0000 >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