From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 690 invoked by alias); 8 Oct 2017 15:53:22 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 654 invoked by uid 89); 8 Oct 2017 15:53:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=supplied, D*sbcglobal.net, Skype X-HELO: mail-qt0-f175.google.com Received: from mail-qt0-f175.google.com (HELO mail-qt0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Oct 2017 15:53:20 +0000 Received: by mail-qt0-f175.google.com with SMTP id z50so34186280qtj.4 for ; Sun, 08 Oct 2017 08:53:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=USxyUOar/czku5okBkxdbyZkjWjf4myAw96yr0FYMOg=; b=k51rX0OXucYI8zWyHCfv+oz//XMnqdUE0Vve8W8YoBN84xvA4jPEZz1FDsAZt471KC g69ibmOnfm1bV5SFUukGGYXdSFJIosuccoaC+m7dHQO8UK56Z+39z2F1N3b1Lh8sePoU bkv5Ba4FdvIbwlgEpnubXYEhqJ7uEx1HakA7GDAkr4IIHrJMJOvbVZGq53O++OJS+tkB miZOInS2/ORPnNouDHNN6sehcxoV/PS7wyUxx1Qp/VqsWeIYOrMA2SatoA9fRCImLTNS 6YCjDRVb1JrKM7lavFGLQK2P2VYtdotiEL8QrF26SjMbwCgPur6TdTJkd1q4GNT3lyN9 itHg== X-Gm-Message-State: AMCzsaWxriJMs0nG4UCpt97l5pFr5A8zp/vYCSUy1nPkhs2MtgCHj0qX LtT35wZtKVCRAl2iyvp5rqVL9/y8RBJLyDpku1Y= X-Google-Smtp-Source: AOwi7QAnFuBGHZJ3HMAHb+8NbI7bFQwXmmexkKBVHbJ5X8uzJBI8OQ7qKYYN6kzihLgEqjznEwcdPxHvBfio1coS70s= X-Received: by 10.129.95.66 with SMTP id t63mr1653934ywb.204.1507477999033; Sun, 08 Oct 2017 08:53:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.2.7 with HTTP; Sun, 8 Oct 2017 08:53:18 -0700 (PDT) In-Reply-To: <59DA4544.9090509@sbcglobal.net> References: <59DA4544.9090509@sbcglobal.net> From: Paul Richard Thomas Date: Sun, 08 Oct 2017 15:53:00 -0000 Message-ID: Subject: Re: Several Questions. To: "Stephen P. Molnar" Cc: "fortran@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00049.txt.bz2 Hi Stephen, This, in fact, is a list for the developers of gfortran not users. However, your problem does deserve some attention. Janne Blomqvist picked it up earlier on this year: https://gcc.gnu.org/ml/gcc-patches/2017-04/msg01388.html Given the content of the thread, I rather think that you should not use static but instead set LD_LIBRARY_PATH to include libgfortran. In my linux distro /lib64 has the system supplied libgfortran. Regards Paul On 8 October 2017 at 16:33, Stephen P. Molnar wrote: > Question 1. How do I join the gfortran users mailing list? > > Question 2 (a tad longer than 1): > > I have the source code for a fortran program that I wrote in 1996 using the > Microsoft FORTRAN compiler that I would like to port to gfortran as I no > linger have a copy of the Microsoft application. > > I have Debian v-9.1.0 installed on my 64bit AMD platform with the > distribution with gcc/gfortran installed. > > Much to my surprise, gfortran produced an executable file with only > correcting a couple of typographic errors. > > Naturally, there were run errors: > > comp@AbNormal:~/Apps/gFortran$ ./mt3dm1 B1.prn > At line 18 of file MT3DM1.FOR (unit = 1) > Fortran runtime error: Cannot open file '': No such file or directory > > Error termination. Backtrace: > #0 0x7f3b14086d4a > #1 0x7f3b14087825 > #2 0x7f3b14087f79 > #3 0x7f3b141478fa > #4 0x7f3b14147b3d > #5 0x4023e3 > #6 0x40300c > #7 0x7f3b1358b2b0 > #8 0x400a19 > #9 0xffffffffffffffff > > Which I assumed that the source code was not linked to the necessary > libraries. > > So I tried winking with the -static switch. Again (not surprisingly) errors: > > comp@AbNormal:~/Apps/gFortran$ gfortran -static -fno-align-commons > MT3DM1.FOR -o MT3DM1s > /home/comp/Apps/psi4/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../libgfortran.a(main.o): > In function `_gfortrani_find_addr2line': > (.text._gfortrani_find_addr2line+0xe): undefined reference to > `__secure_getenv' > /home/comp/Apps/psi4/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../libgfortran.a(unix.o): > In function `_gfortrani_open_external': > (.text._gfortrani_open_external+0x86): undefined reference to > `__secure_getenv' > collect2: error: ld returned 1 exit status > > Question 2 then is what's missing? > > I am sure that there will be a necessary editing of in and out statements, > but those can wait. > > Thanks in advance for yer attention. > > -- > Stephen P. Molnar, Ph.D. Life is a fuzzy set > www.molecular-modeling.net Stochastic and multivariate > (614)312-7528 (c) > Skype: smolnar1 -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein