For Programmers: Free Programming Magazines  


Home > Archive > Fortran > April 2005 > g77 and gfortran together









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author g77 and gfortran together
Brian Salter-Duke

2005-04-21, 3:59 am

I use g77 all the time for my research code, but I want to play with
gfortran. I am currently using Fedora Core 3 with gcc/g77 version 3.4.2.
I have rpm's of the Fedora CDs for gcc4 and gfortran.

Can I install gfortran and have no conflicts with g77?

Do I have to also install gcc4? Again if this is named gcc4, are there
conflicts?

I realise that gcc4 and gfortran are still in development. Should I
download the latest versions or would it be OK to play with the ones on
the Fedora CD - gfortran 4.0.0-0.8 - for a while and upgrade when it gets
more serious?

Brian.
--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
Steven G. Kargl

2005-04-21, 3:59 am

In article <4267156a$0$8120$5a62ac22@per-qv1-newsreader-01.iinet.net.au>,
Brian Salter-Duke <b_duke@octa4.net.invalid> writes:
> I use g77 all the time for my research code, but I want to play with
> gfortran. I am currently using Fedora Core 3 with gcc/g77 version 3.4.2.
> I have rpm's of the Fedora CDs for gcc4 and gfortran.
>
> Can I install gfortran and have no conflicts with g77?


Yes, you can install both and no conflict will arise.
Note, however, that if you compile a library with g77
you can't link that library with a program compiled by
gfortran. There is a patch to gfortran to add this
functionality, but further testing is needed before
it is added to repository.

> Do I have to also install gcc4? Again if this is named gcc4, are there
> conflicts?


Yes, you need to install gcc 4.0.0 or mainline. If you
compile from source, you can do

../configure --program-suffix=4 --prefix=/usr/somedir --languages=c,f95

to install gcc4 and gfortran4 in somedir, which you can
add to your path.

> I realise that gcc4 and gfortran are still in development. Should I
> download the latest versions or would it be OK to play with the ones on
> the Fedora CD - gfortran 4.0.0-0.8 - for a while and upgrade when it gets
> more serious?


Go to www.gfortran.org. There are pre-compiled versions that
are kept up to date, so the latest fixes are available.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
Gerald F. Thomas

2005-04-21, 3:59 am


"Brian Salter-Duke" <b_duke@octa4.net.invalid> wrote in message
news:4267156a$0$8120$5a62ac22@per-qv1-newsreader-01.iinet.net.au...

What has this to to with Fortran?, nothing, so find someother vent for your
Windows inepitude.

--
You're Welcome,
Gerry T.
______
"I'm going to be as well known as Murphy one of these days." Gordon Moore,
founder of Intel.




Brooks Moses

2005-04-21, 8:58 am

Brian Salter-Duke wrote:
> I use g77 all the time for my research code, but I want to play with
> gfortran. I am currently using Fedora Core 3 with gcc/g77 version 3.4.2.
> I have rpm's of the Fedora CDs for gcc4 and gfortran.

[...]
> I realise that gcc4 and gfortran are still in development. Should I
> download the latest versions or would it be OK to play with the ones on
> the Fedora CD - gfortran 4.0.0-0.8 - for a while and upgrade when it gets
> more serious?


I would suggest downloading the latest versions; bug fixes are ongoing,
and one of the advantages of your playing with the latest version is
that it can be helpful to the gfortran developers if you do find
something that doesn't work.

I'd also recommend reading the gfortran developer's mailing list;
there's a lot of information there about what's still buggy, and what
should be working, and such. An easy way to read it is via the Gmane
mail-to-news gateway; look at the gmane.comp.lang.fortran newsgroup on
the news.gmane.org news server.

- Brooks


--
The "bmoses-nospam" address is valid; no unmunging needed.
Brian Salter-Duke

2005-04-21, 8:57 pm

On Thu, 21 Apr 2005 03:47:03 +0000 (UTC), Steven G. Kargl
<kargl@troutmask.apl.washington.edu> wrote:
> In article <4267156a$0$8120$5a62ac22@per-qv1-newsreader-01.iinet.net.au>,
> Brian Salter-Duke <b_duke@octa4.net.invalid> writes:
>
> Yes, you can install both and no conflict will arise.
> Note, however, that if you compile a library with g77
> you can't link that library with a program compiled by
> gfortran. There is a patch to gfortran to add this
> functionality, but further testing is needed before
> it is added to repository.
>
>
> Yes, you need to install gcc 4.0.0 or mainline. If you
> compile from source, you can do
>
> ./configure --program-suffix=4 --prefix=/usr/somedir --languages=c,f95
>
> to install gcc4 and gfortran4 in somedir, which you can
> add to your path.
>
>
> Go to www.gfortran.org. There are pre-compiled versions that
> are kept up to date, so the latest fixes are available.


Thank you most kindly. This is a very concise and helpfull description
of what I need to do.

Regards, Brian.

--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
Brian Salter-Duke

2005-04-21, 8:57 pm

On Thu, 21 Apr 2005 01:44:15 -0400, Gerald F. Thomas <gfthomas@sympatico.ca>
wrote:
>
> "Brian Salter-Duke" <b_duke@octa4.net.invalid> wrote in message
> news:4267156a$0$8120$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
>
> What has this to to with Fortran?, nothing, so find someother vent for your
> Windows inepitude.


What the hell are you thinking of? Read my subject line - gfortran and
g77!

--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
Brian Salter-Duke

2005-04-21, 8:57 pm

On Thu, 21 Apr 2005 01:19:17 -0700, Brooks Moses
<bmoses-nospam@cits1.stanford.edu> wrote:
> Brian Salter-Duke wrote:
> [...]
>
> I would suggest downloading the latest versions; bug fixes are ongoing,
> and one of the advantages of your playing with the latest version is
> that it can be helpful to the gfortran developers if you do find
> something that doesn't work.


Yes, that makes sense.

> I'd also recommend reading the gfortran developer's mailing list;
> there's a lot of information there about what's still buggy, and what
> should be working, and such. An easy way to read it is via the Gmane
> mail-to-news gateway; look at the gmane.comp.lang.fortran newsgroup on
> the news.gmane.org news server.


I use slrn to download gmane groups. I could not find
gmane.comp.lang.fortran (Is'nt it this group?). I did find however,
gmane.comp.gcc.fortran and gmane.comp.gcc.fortran.announce. Are these
the ones you meant?

Thanks for you help.

Brian.

> - Brooks
>
>


--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
Greg Lindahl

2005-04-21, 8:57 pm

In article <42682559$0$12614$5a62ac22@per-qv1-newsreader-01.iinet.net.au>,
Brian Salter-Duke <b_duke@octa4.net.invalid> wrote:

>What the hell are you thinking of? Read my subject line - gfortran and
>g77!


Brian,

Gerry is a troll. Feel free to completely ignore him.

-- greg
Brooks Moses

2005-04-21, 8:57 pm

Brian Salter-Duke wrote:
> On Thu, 21 Apr 2005 01:19:17 -0700, Brooks Moses
> <bmoses-nospam@cits1.stanford.edu> wrote:
>
> I use slrn to download gmane groups. I could not find
> gmane.comp.lang.fortran (Is'nt it this group?). I did find however,
> gmane.comp.gcc.fortran and gmane.comp.gcc.fortran.announce. Are these
> the ones you meant?


Those are the ones I meant, indeed -- my apologies for the typo!

- Brooks

--
The "bmoses-nospam" address is valid; no unmunging needed.
Richard E Maine

2005-04-21, 8:57 pm

In article
<42682559$0$12614$5a62ac22@per-qv1-newsreader-01.iinet.net.au>,
Brian Salter-Duke <b_duke@octa4.net.invalid> wrote:

> On Thu, 21 Apr 2005 01:44:15 -0400, Gerald F. Thomas <gfthomas@sympatico.ca>
> wrote:
>
> What the hell are you thinking of? Read my subject line - gfortran and
> g77!


Brian,

Most of us try to ignore the particular troll who blasted you. He likes
to just throw out random insults just to see if he can get a response.
The more outrageous and irrelevant the insult, the more fun he seems to
have. You are lucky he didn't add in some racial slurs and profanity.
Don't take it personally; he does it to pretty much everyone. I suggest
a killfile entry or the equivalent for your newsreader. He's pretty
easily the newsgroup's biggest embarrassment. There's not even any point
in arguing with him; that just encourages more of it.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
Gerald F. Thomas

2005-04-22, 8:57 am


"Greg Lindahl" <lindahl@pbm.com> wrote in message
news:426827c9$1@news.meer.net...
> In article

<42682559$0$12614$5a62ac22@per-qv1-newsreader-01.iinet.net.au>,
> Brian Salter-Duke <b_duke@octa4.net.invalid> wrote:
>
>
> Brian,
>
> Gerry is a troll. Feel free to completely ignore him.
>


Why don't you follow your own bogus advise? Can't resist, eh!
--
You're Welcome,
Gerry T.
______
"Facts are meaningless. You could use facts to prove anything that's even
remotely true." -- Homer Simpson.


Gerald F. Thomas

2005-04-22, 8:57 am


"Richard E Maine" <nospam@see.signature> wrote in message
news:nospam-52FF09.16022521042005@news.supernews.com...

Via la papa Ricardo II/66/IV/77/90/95/2003.5, etcetra, etcetra, etcetra.
Seemingly I'm not on your 'killfile'?, so at least convince yourself that I
should before pontificating the same to others, :-). You're a petty little
pope of no persuasion. BTW, how's your Schiavoing efforts coming along?
--
You're Welcome,
Gerry T.
______
"The most successful tyranny is not the one that uses force to assure
uniformity but the one that removes the awareness of other possibilities,
that makes it seem inconceivable that other ways are viable, that removes
the sense that there is an outside." -- Allan Bloom, in The Closing of the
American Mind.


Clive Page

2005-04-22, 8:57 pm

In message <42676205.9A7EA6CC@cits1.stanford.edu>, Brooks Moses
<bmoses-nospam@cits1.stanford.edu> writes
>I would suggest downloading the latest versions; bug fixes are ongoing,
>and one of the advantages of your playing with the latest version is
>that it can be helpful to the gfortran developers if you do find
>something that doesn't work.


I'd also suggest that you consider g95 (www.g95.org) which looks to be a
bit further ahead in the development stakes at present than gfortran.
They both have a common base, of course.

The next question, I guess, is whether you can have g95 and gfortran
installed together without them conflicting. I may discover the answer
to that soon, at present I don't know. Certainly g95 does not conflict
with g77.

--
Clive Page
Paul Van Delst

2005-04-22, 8:57 pm

Clive Page wrote:
> In message <42676205.9A7EA6CC@cits1.stanford.edu>, Brooks Moses
> <bmoses-nospam@cits1.stanford.edu> writes
>
>
>
> I'd also suggest that you consider g95 (www.g95.org) which looks to be a
> bit further ahead in the development stakes at present than gfortran.
> They both have a common base, of course.
>
> The next question, I guess, is whether you can have g95 and gfortran
> installed together without them conflicting. I may discover the answer
> to that soon, at present I don't know. Certainly g95 does not conflict
> with g77.


I've got them both installed. As far as I can tell they don't conflict. Of course,
gfortran can't compile any of my code yet, but ignoring that, they seem to reside side by
side quite nicely.

cheers,

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC

Steven G. Kargl

2005-04-23, 3:57 am

In article <d4bni4$rsl$1@news.nems.noaa.gov>,
Paul Van Delst <paul.vandelst@noaa.gov> writes:
>
> I've got them both installed. As far as I can tell they don't conflict. Of course,
> gfortran can't compile any of my code yet, but ignoring that, they seem to reside side by
> side quite nicely.
>


Have you submitted bug reports about gfortran ? If you don't like
gcc's bugzilla, send an email to fortran@gcc.gnu.org with details
about the problem.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
Kamaraju Kusumanchi

2005-04-23, 3:57 am

Brian Salter-Duke wrote:
> I use g77 all the time for my research code, but I want to play with
> gfortran. I am currently using Fedora Core 3 with gcc/g77 version 3.4.2.
> I have rpm's of the Fedora CDs for gcc4 and gfortran.
>
> Can I install gfortran and have no conflicts with g77?


I dont know about fedora core 3, but in debian you definitely can have
g77, gfortran together. In fact you can have multile gcc versions
installed on the same machine without any conflict. For an ordinary
user, The package manager (yum? in redhat) should take care of all that.

raju
Paul Van Delst

2005-04-23, 3:57 am

Steven G. Kargl wrote:
> In article <d4bni4$rsl$1@news.nems.noaa.gov>,
> Paul Van Delst <paul.vandelst@noaa.gov> writes:
>
>
>
> Have you submitted bug reports about gfortran ? If you don't like
> gcc's bugzilla, send an email to fortran@gcc.gnu.org with details
> about the problem.


Hi Steven,

My apologies - I didn't word my original reply very well. What I meant by gfortran not
being able to compile my code was that some features have yet to be implemented, not that
it was buggy.

cheers,

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC

Steven G. Kargl

2005-04-23, 3:57 am

In article <d4bsg8$vkj$1@news.nems.noaa.gov>,
Paul Van Delst <paul.vandelst@noaa.gov> writes:
> Steven G. Kargl wrote:
>
> My apologies - I didn't word my original reply very well. What I meant
> by gfortran not being able to compile my code was that some features
> have yet to be implemented, not that it was buggy.


I wasn't offended or annoyed by your reply. Indeed, I will recommend
that people try g95 as well as gfortran due limitations in gfortran.
I just wanted to make sure that any bugs you find in gfortran get
into the bugzilla database.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
Brian Salter-Duke

2005-04-23, 3:57 am

On Fri, 22 Apr 2005 17:51:06 -0400, Kamaraju Kusumanchi
<kk288@cornell.edu> wrote:
> Brian Salter-Duke wrote:
>
> I dont know about fedora core 3, but in debian you definitely can have
> g77, gfortran together. In fact you can have multile gcc versions
> installed on the same machine without any conflict. For an ordinary
> user, The package manager (yum? in redhat) should take care of all that.


You probably can do that in Fedora. With Redhat 7.2 before I upgraded
quite recently I had gcc 2.9 something and gcc 3.0 something installed
and used both of them.

Thanks to all for your help. I took the advice about g95 before reading
the advice!. I downloaded it last night, but I've just realised the
download must have failed part through while I was having dinner. I'll
do it again soon.

Brian.

> raju


--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com