From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from impout002.msg.chrl.nc.charter.net (impout002aa.msg.chrl.nc.charter.net [47.43.20.26]) by sourceware.org (Postfix) with ESMTPS id 964613857C6F for ; Sat, 9 Jan 2021 17:37:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 964613857C6F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=charter.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jvdelisle@charter.net Received: from [192.168.1.9] ([96.41.221.129]) by cmsmtp with ESMTPA id yIBXk54YjYUPMyIBXkABsM; Sat, 09 Jan 2021 17:37:57 +0000 Authentication-Results: charter.net; none X-Authority-Analysis: v=2.3 cv=RN4H4Lq+ c=1 sm=1 tr=0 a=07pILqX15KmGv9ZXTMmBNA==:117 a=07pILqX15KmGv9ZXTMmBNA==:17 a=IkcTkHD0fZMA:10 a=D5L9mS51AAAA:8 a=cA2IU5OdAAAA:8 a=kKqQff8QAAAA:8 a=J19_ZtElk6EyWkgArA0A:9 a=QEXdDO2ut3YA:10 a=CZ_L_0kY3JC2oih72GXC:22 a=Ft3ba-h1JWKev0c9YHoK:22 a=Ry2eTNIdGMwtTGQdmMb7:22 Subject: Re: apple silicon fortran From: Jerry DeLisle To: Thomas Koenig , Rosemary Mardling Cc: Fortran List , Iain Sandoe References: <941045F7-9782-408B-BF5A-015E2FAF246A@monash.edu> <7FCF49F0-EA95-44F1-B5B6-01393378783E@gmail.com> Message-ID: Date: Sat, 9 Jan 2021 09:37:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CMAE-Envelope: MS4wfN+uygtpb0A4znrI6B7Tpt4xzKvMqca8r1fgcZUMfboppUejyEP65DpgiqoQSnaJdKVQ+3PAELjnmaLzj0K95XH/q4EMEQ9u6bbo/bSJX+XQ/ZihrXp2 WJ50g3FUcOWZe6iw9dw1VrAW5NlTikXUDGY7Du32eqGliPkIfUHbnO09WbPD4bRDwJGuiuoi5yzciJbhXtmtxVAKYQzO0rY3m9pDR/F8YwhChAmz7sYh8NZu sx/j9wQcvrvifJ0OVL84HG+HKgWrUndWXRDPxS2mSGY2M5pSRAYHKFf7PoTGTJQ0 X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, BODY_8BITS, FREEMAIL_FROM, KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2021 17:37:58 -0000 Hi all, https://jaimyn.com.au/how-to-build-multi-architecture-docker-images-on-an-m1-mac/ Above link build a docker containers on the subject machine. I have a DockerFile that as all the good working. Ask if you would like a copy.  I will post to my gfortran-dev slack channel. https://gfortran.slack.com/archives/C013YLPNVS8/p1610212997054700  To build:   sudo docker build . -t fed1  To run:  sudo docker run -it fed1 /bin/bash Cheers, Jerry > > On 1/8/21 2:18 PM, Thomas Koenig wrote: >> Hi Rosemary, >> >>> It seems NAG have a fortran compiler but it is quite expensive >>> (GBP250 - I enquired): >>> >>> https://www.nag.com/news/first-fortran-compiler-apple-silicon-macs >> >> Well, NAG sort of cheat - they compile Fortran to C and then use the >> native C compiler.  Makes it easier if there is already a C compiler >> on the target, no need to worry about ABIs and such. (Interestingly >> enough, the whole NAG compiler has a similar scope as the gfortran >> front end and library). >> >> It would be interesteing to see the C code they emit for certain >> constructs, for example for code accessing variables in an outer >> scope from contained procedures. Not sure if there is an option to >> do this. >> >> Best regards >> >>     Thomas >