From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from impout003.msg.chrl.nc.charter.net (impout003aa.msg.chrl.nc.charter.net [47.43.20.27]) by sourceware.org (Postfix) with ESMTPS id 17EED38708E5 for ; Sat, 9 Jan 2021 19:26:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 17EED38708E5 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 yJsqkrCuBr76UyJsrkDLKA; Sat, 09 Jan 2021 19:26:46 +0000 Authentication-Results: charter.net; none X-Authority-Analysis: v=2.3 cv=dotv9Go4 c=1 sm=1 tr=0 a=07pILqX15KmGv9ZXTMmBNA==:117 a=07pILqX15KmGv9ZXTMmBNA==:17 a=IkcTkHD0fZMA:10 a=hOpmn2quAAAA:8 a=cA2IU5OdAAAA:8 a=n4EhPX9OkZCMZCxbpPAA:9 a=QEXdDO2ut3YA:10 a=GyA-uvUxXSCciAkwuKQO:22 Subject: Re: apple silicon fortran To: Iain Sandoe Cc: Thomas Koenig , Rosemary Mardling , Fortran List References: <941045F7-9782-408B-BF5A-015E2FAF246A@monash.edu> <7FCF49F0-EA95-44F1-B5B6-01393378783E@gmail.com> <1ED16F62-4E5F-4EC1-9CD6-3E5A59A6C415@googlemail.com> From: Jerry DeLisle Message-ID: Date: Sat, 9 Jan 2021 11:26:44 -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: <1ED16F62-4E5F-4EC1-9CD6-3E5A59A6C415@googlemail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CMAE-Envelope: MS4wfG+tKaONLGMH8OQ6Wto+LTfXE4CoeLwBKumMRS0etsFMEfMwF2FbiQjV8K/bSgj4xxr+XZJYFoiAOyTkl0lkR2bVg/BxNT8dlDhETZ/h7+orXY4t9DPg RPqlICvJ0NlLsHvNLPvhQjgaRa6MdRppru3Dq+CZjgmhqImUa1iPmV3KN/AFWmn1MseHSjkuvquPph2DS2SsKcTE47XxFJQvRfvhDnT5FHVYG5CqUAYe8Jhn AO0xyOYhcRgjT1W2Ndo5pJ01AMKR9xuihIDDPb3YIEDHnJfUkjJA8FPvA0cefszr X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_DMARC_STATUS, 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 19:26:48 -0000 On 1/9/21 11:07 AM, Iain Sandoe wrote: > Hi Jerry, > > Jerry DeLisle wrote: > >> https://gfortran.slack.com/archives/C013YLPNVS8/p1610212997054700 >> >>  To build:   sudo docker build . -t fed1 >> >>  To run:  sudo docker run -it fed1 /bin/bash > > FAOD, I assume that this produces a Linux GCC which is run inside the > docker container which is virtualising a suitable linux distribution? > > (assuming that’s the case) It would be interesting to know which Linux > was being virtualised - and some idea of the performance impact. > If you look at the first line of the DockerFile you will see a FROM command that specifies Fedore:latest which in this case bases it on Fedora 33. I have also done this with one based on Ubuntu 18.04 These have been confirmed by a friend to work on a Mac laptop. There are some nuance bewteen Fedora and Ubuntu as they uas different package managers.  The one I posted happens to install gtk-fortran support for GTK3 and GTK4 as this is what was needed initially.  One can install any packages you want either by modifying the DockerFile and rebuilding or doing so inside the container. Another thing you do need to know is the container ID created so that you can restart it at will and have it retain any work you have done.  Anyone intending to use this needs to get up on the Docker learning curve a little, the container ID is the "hostname" in the environment and you will see that in the bash prompt.  I usually copy and paste this to a bash script on my host machine and use that to restart it. For example: $ cat ~/bin/runit.sh #! /bin/bash sudo docker exec -it c9b60c30d2c8 /bin/bash On my system the docker daemon needs to be running: I use: sudo systemctl enable docker sudo systemctl start docker. One this is going, the exec command will work as shown above.  On some systems, the docker system allows gui apps to run in the container and they are displayed on the HOST machine. Very handy!  I have not learned to do this with my Fedora 33 Host yet, but it definitely works on MacOS and probably Windows. See docker docs to get up to speed or google some. Regards, Jerry