From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 50660385043B for ; Sat, 9 Jan 2021 17:29:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 50660385043B Received: by mail-pj1-x1031.google.com with SMTP id v1so5365528pjr.2 for ; Sat, 09 Jan 2021 09:29:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=K4Q3/ERnhyQ6BzrMAbqz4LqDRl5gQnvzG/bNy7o0JiA=; b=fiLvkPU5CNWMPK669hxTG0pnYLf478rswZZVtenQuNAObmsuLB5JZw937UlsS6a6QN E5ciZype9AxYbFfNhREtYQZiYi5sb1raQFBNnCRY0bQfTJjzxP/qJTtgNReVrGZaeFWF cPuTCzHTBngdZ7IuUFv84E2djcoQLlDJoZwObRGpJ/F9VkUKlTQWJvpyHiHQ7ygP1xEI WXLGIt+I1Sp+yY3RB3kWyRKmYRXKAUzwrO4Jm4jdSkb3ebgRWjIcljGpm1nxV4QGo3vf u07/9H6JvxoBldAtXA6Qa3ndAUM+saWCYta/3Js/IcdwO8slhkuf1YtEJcX/jxjpeoJN ZPzg== X-Gm-Message-State: AOAM530A6TXDndeWjkShGVMIGaIi3+ViBWBAlklHvTUTUfbvPpVfcIfT 4OryGKpv56QB6tKgqXpYqK4= X-Google-Smtp-Source: ABdhPJzjWg8trvDMvBtSZ9q5O22WDcgLVOLZFB46BO/PJ7U1MyCaqH/x0DUzw5+nfnQB941ZzhGRFw== X-Received: by 2002:a17:90a:ae13:: with SMTP id t19mr9810358pjq.52.1610213383248; Sat, 09 Jan 2021 09:29:43 -0800 (PST) Received: from ?IPv6:2600:6c54:7a80:4261:9e30:5bff:fea3:6d6f? ([2600:6c54:7a80:4261:9e30:5bff:fea3:6d6f]) by smtp.gmail.com with ESMTPSA id x1sm12736675pfn.48.2021.01.09.09.29.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Jan 2021 09:29:42 -0800 (PST) Subject: Re: apple silicon fortran 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> From: Jerry DeLisle Message-ID: Date: Sat, 9 Jan 2021 09:29:40 -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-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, 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:29:45 -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