Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

#define SIGILL 6 /* blech */ -- Larry Wall in perl.c from the perl source code


devel / comp.lang.fortran / Re: gcc: error: fort77: No such file or directory

SubjectAuthor
* gcc: error: fort77: No such file or directoryAnouar BOUANO
+- Re: gcc: error: fort77: No such file or directoryThomas Koenig
`* Re: gcc: error: fort77: No such file or directorygah4
 `* Re: gcc: error: fort77: No such file or directoryAnouar BOUANO
  +- Re: gcc: error: fort77: No such file or directoryArjen Markus
  `* Re: gcc: error: fort77: No such file or directoryArjen Markus
   `- Re: gcc: error: fort77: No such file or directorygah4

1
gcc: error: fort77: No such file or directory

<578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2879&group=comp.lang.fortran#2879

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4007:b0:6be:91e8:c94e with SMTP id h7-20020a05620a400700b006be91e8c94emr26134451qko.375.1663157679726;
Wed, 14 Sep 2022 05:14:39 -0700 (PDT)
X-Received: by 2002:a05:6214:20e2:b0:4ac:b800:d280 with SMTP id
2-20020a05621420e200b004acb800d280mr12328248qvk.52.1663157679445; Wed, 14 Sep
2022 05:14:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 14 Sep 2022 05:14:39 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=197.253.216.209; posting-account=xwqcswoAAADcx-6nuyaS1Eb5Uo-90GoO
NNTP-Posting-Host: 197.253.216.209
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
Subject: gcc: error: fort77: No such file or directory
From: aboulanouar1@gmail.com (Anouar BOUANO)
Injection-Date: Wed, 14 Sep 2022 12:14:39 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
 by: Anouar BOUANO - Wed, 14 Sep 2022 12:14 UTC

I want to compile a fortran77 code and after using the commange :
fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f
I got the message : gcc: error: fort77: No such file or directory

Do you know any idea please how to solve this problem?

Re: gcc: error: fort77: No such file or directory

<tfsnja$10nh$2@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2881&group=comp.lang.fortran#2881

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2a0a-a540-1471-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: gcc: error: fort77: No such file or directory
Date: Wed, 14 Sep 2022 14:14:02 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <tfsnja$10nh$2@newsreader4.netcologne.de>
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
Injection-Date: Wed, 14 Sep 2022 14:14:02 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2a0a-a540-1471-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2a0a:a540:1471:0:7285:c2ff:fe6c:992d";
logging-data="33521"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Wed, 14 Sep 2022 14:14 UTC

Anouar BOUANO <aboulanouar1@gmail.com> schrieb:
> I want to compile a fortran77 code and after using the commange :
> fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f
> I got the message : gcc: error: fort77: No such file or directory
>
> Do you know any idea please how to solve this problem?

What you have posted is a single command line, but that looks messed up;
you are passing fort77 as an input file to the "fort77" command, which is
probably not what is intended (and which is what the compiler is
complaining about).

What is that fort77 command, is it a local script, or an alias, or... ?

It is best to read an introduction to your compiler to see how
executables are generated. At a guess, you probably want to set
the name of the output file with -o and add all the files that
should be compiled or linked in. So, if you wanted to compile
an output file named hello_goodbye from the source files
hello.f and goodbye.f, it could look something like (using
gfortran here)

gfortran -o hello_goodbye hello.f goodbye.f

Hope this helps.

Re: gcc: error: fort77: No such file or directory

<ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2882&group=comp.lang.fortran#2882

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:c9b:b0:6cb:cde2:27b5 with SMTP id q27-20020a05620a0c9b00b006cbcde227b5mr21393953qki.293.1663167426900;
Wed, 14 Sep 2022 07:57:06 -0700 (PDT)
X-Received: by 2002:a05:6214:2602:b0:4ac:ada1:de5b with SMTP id
gu2-20020a056214260200b004acada1de5bmr14940819qvb.122.1663167426699; Wed, 14
Sep 2022 07:57:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 14 Sep 2022 07:57:06 -0700 (PDT)
In-Reply-To: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:2407:830:8751:d505;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:2407:830:8751:d505
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com>
Subject: Re: gcc: error: fort77: No such file or directory
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 14 Sep 2022 14:57:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2812
 by: gah4 - Wed, 14 Sep 2022 14:57 UTC

On Wednesday, September 14, 2022 at 5:14:41 AM UTC-7, Anouar BOUANO wrote:
> I want to compile a fortran77 code and after using the commange :

> fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f
> I got the message : gcc: error: fort77: No such file or directory

It looks like what should have been three lines, three commands, was combined into one.

fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsacio.a
fort77 lscodaq-sn butfilter.f four1.f /home/dell/Documents/SAC/lib/libsac.a
gcc -o mlmcodaq-sn.f -o mlmcodaq-sn.f

That still leaves a few questions:

Is lscodeqan-sn options for the f77 command?

The gcc command doesn't make sense at all, with two -o options ...

The fort77 lines seem to compile the same Fortran programs with different libraries,
but don't specify an output file.
The default is a.out, which will be overwritten by the second one.

Most often, I recommend gfortran, even for older programs. As well as I know,
it does everything that fort77 does.

Last year, I was compiling Fortran programs written for the IBM 1130
with gfortran. Most things work just fine, even old depracated
features. The one problem I remember, is that IBM allows for
apostrophed character data in DATA statements, instead of the
more usual (for the time), Hollerith constants. gfortran only allows the latter.

You will need to recompile and generate new .a files, though,
to use any other compiler.

Re: gcc: error: fort77: No such file or directory

<b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2887&group=comp.lang.fortran#2887

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:e319:0:b0:6cd:f643:b6d6 with SMTP id y25-20020a37e319000000b006cdf643b6d6mr17632683qki.616.1663236168331;
Thu, 15 Sep 2022 03:02:48 -0700 (PDT)
X-Received: by 2002:a05:622a:513:b0:35b:b42a:9bf1 with SMTP id
l19-20020a05622a051300b0035bb42a9bf1mr17451993qtx.339.1663236167506; Thu, 15
Sep 2022 03:02:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 15 Sep 2022 03:02:47 -0700 (PDT)
In-Reply-To: <ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=196.121.110.207; posting-account=xwqcswoAAADcx-6nuyaS1Eb5Uo-90GoO
NNTP-Posting-Host: 196.121.110.207
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com> <ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
Subject: Re: gcc: error: fort77: No such file or directory
From: aboulanouar1@gmail.com (Anouar BOUANO)
Injection-Date: Thu, 15 Sep 2022 10:02:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1528
 by: Anouar BOUANO - Thu, 15 Sep 2022 10:02 UTC

thank you so much for your quick replay,
In this commande, you can find two fortran77 source files:
mlmcodaq-sn.f
lscodaq-sn.f

and two C-Shell files.

batch-mlmcodaq-sn.csh

batch-lscodaq-sn.csh
Because the fiels are written with fortran77, could you please tell me how I should compile these files

Re: gcc: error: fort77: No such file or directory

<bc82fb70-5fa6-40e0-a78e-adc731b04941n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2888&group=comp.lang.fortran#2888

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:bfc5:0:b0:6cd:d800:ab55 with SMTP id p188-20020a37bfc5000000b006cdd800ab55mr21210410qkf.176.1663237611744;
Thu, 15 Sep 2022 03:26:51 -0700 (PDT)
X-Received: by 2002:a05:6214:2602:b0:4ac:ada1:de5b with SMTP id
gu2-20020a056214260200b004acada1de5bmr18339127qvb.122.1663237611576; Thu, 15
Sep 2022 03:26:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 15 Sep 2022 03:26:51 -0700 (PDT)
In-Reply-To: <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=62.194.189.128; posting-account=A91wAAoAAADgBUxBX6QqsrSD26GLhVp8
NNTP-Posting-Host: 62.194.189.128
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
<ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com> <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc82fb70-5fa6-40e0-a78e-adc731b04941n@googlegroups.com>
Subject: Re: gcc: error: fort77: No such file or directory
From: arjen.markus895@gmail.com (Arjen Markus)
Injection-Date: Thu, 15 Sep 2022 10:26:51 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1687
 by: Arjen Markus - Thu, 15 Sep 2022 10:26 UTC

On Thursday, September 15, 2022 at 12:02:50 PM UTC+2, Anouar BOUANO wrote:
> thank you so much for your quick replay,
> In this commande, you can find two fortran77 source files:
> mlmcodaq-sn.f
> lscodaq-sn.f
>
> and two C-Shell files.
>
> batch-mlmcodaq-sn.csh
>
> batch-lscodaq-sn.csh
> Because the fiels are written with fortran77, could you please tell me how I should compile these files

Re: gcc: error: fort77: No such file or directory

<f2ce0ad4-9dc8-4008-ab9f-ed7005139374n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2889&group=comp.lang.fortran#2889

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ae9:dc85:0:b0:6cd:ea8d:5113 with SMTP id q127-20020ae9dc85000000b006cdea8d5113mr20071773qkf.55.1663237833556;
Thu, 15 Sep 2022 03:30:33 -0700 (PDT)
X-Received: by 2002:ad4:5f0d:0:b0:4ac:b90b:8275 with SMTP id
fo13-20020ad45f0d000000b004acb90b8275mr16013695qvb.46.1663237833443; Thu, 15
Sep 2022 03:30:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 15 Sep 2022 03:30:33 -0700 (PDT)
In-Reply-To: <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=62.194.189.128; posting-account=A91wAAoAAADgBUxBX6QqsrSD26GLhVp8
NNTP-Posting-Host: 62.194.189.128
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
<ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com> <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f2ce0ad4-9dc8-4008-ab9f-ed7005139374n@googlegroups.com>
Subject: Re: gcc: error: fort77: No such file or directory
From: arjen.markus895@gmail.com (Arjen Markus)
Injection-Date: Thu, 15 Sep 2022 10:30:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2230
 by: Arjen Markus - Thu, 15 Sep 2022 10:30 UTC

On Thursday, September 15, 2022 at 12:02:50 PM UTC+2, Anouar BOUANO wrote:
> thank you so much for your quick replay,
> In this commande, you can find two fortran77 source files:
> mlmcodaq-sn.f
> lscodaq-sn.f
>
> and two C-Shell files.
>
> batch-mlmcodaq-sn.csh
>
> batch-lscodaq-sn.csh
> Because the fiels are written with fortran77, could you please tell me how I should compile these files

There is nothing particularly special about FORTRAN 77: gfortran and a variety of other Fortran compilers can handle such source files as Fortran in its modern versions (90, 95, 2003, 2008, 2018, ...) are all backward compatible. There may be small issues, but those relate to very obscure features of older versions and unusual extensions. So probably, if you replace "fort77" by "gfortran" in the command you showed, it will simply work.

Regards,

Arjen

Re: gcc: error: fort77: No such file or directory

<0e76e82a-1403-46b3-836a-0ef3597caa33n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2890&group=comp.lang.fortran#2890

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:178c:b0:35b:b8cc:e711 with SMTP id s12-20020a05622a178c00b0035bb8cce711mr14582741qtk.111.1663242584113;
Thu, 15 Sep 2022 04:49:44 -0700 (PDT)
X-Received: by 2002:a05:622a:38f:b0:35b:b8e7:82ef with SMTP id
j15-20020a05622a038f00b0035bb8e782efmr14583956qtx.647.1663242583965; Thu, 15
Sep 2022 04:49:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 15 Sep 2022 04:49:43 -0700 (PDT)
In-Reply-To: <f2ce0ad4-9dc8-4008-ab9f-ed7005139374n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:bc92:a17b:6a6f:b43e;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:bc92:a17b:6a6f:b43e
References: <578d4825-6a70-49c4-bfdc-572ba8c25c8bn@googlegroups.com>
<ecb84f0c-cd94-4b21-8e38-cfbcb79940fan@googlegroups.com> <b05cec1d-b2b1-4d3d-aeae-b114801d826dn@googlegroups.com>
<f2ce0ad4-9dc8-4008-ab9f-ed7005139374n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0e76e82a-1403-46b3-836a-0ef3597caa33n@googlegroups.com>
Subject: Re: gcc: error: fort77: No such file or directory
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 15 Sep 2022 11:49:44 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2168
 by: gah4 - Thu, 15 Sep 2022 11:49 UTC

On Thursday, September 15, 2022 at 3:30:35 AM UTC-7, arjen.m...@gmail.com wrote:

(snip)

> There is nothing particularly special about FORTRAN 77: gfortran and a
> variety of other Fortran compilers can handle such source files as
> Fortran in its modern versions (90, 95, 2003, 2008, 2018, ...)
> are all backward compatible. There may be small issues, but those
> relate to very obscure features of older versions and unusual extensions.
> So probably, if you replace "fort77" by "gfortran" in the command
> you showed, it will simply work.

Except that there are also some .a files, which are likely compiler specific.

If there is a Makefile, it will tell how to generate them, possible from C
or Fortran source.

It would be useful to see what the .csh files say, too.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor