Should I try gfortran in this case ??

25 views
Skip to first unread message

monir

unread,
Dec 5, 2011, 11:45:28 AM12/5/11
to GNU Fortran
Hello;

I’m faced with the following situation.

1) I’ve copied a number of my Fortran executables to my new laptop
(Win 7 Pro, 64-bit).

2) Those programs currently and for years have been working fine on my
other computers (Win XP SP3,32-bit), but some of them wouldn’t run on
the new computer (even in a compatibility mode; an option which is
available in Win 7 Pro).
The error message clearly says that the program is incompatible.

3) Using g95 {GCC 4.1.2 (g95 0.92!) Jun 17 2009} I’ve successfully re-
compiled the first program, and it now runs perfectly in the new
environment.

4) The second program is also compiled with the same command:
...C:\MyFiles\...\...>g95 -fbounds-check -ftrace=full -o LL107
LL107.for
NO errors, NO warnings, and NO *.exe file created!!!

5) The following is displayed after I entered the above command line:
...C:\Users\Monir\AppData\Local\Temp/ccFEqbY7.o:LL107.for:(.data
+0x690): undefined reference to `_pmfrmo_'
There is no “pmfrmo” in the code, so it must be some kind of a keyword
meaningful only to the experts.
Notice also that the path in the returned statement is completely
different than that where the file resides.
So I don’t have a clue where to look for the problem.

SHOULD I try gfortran in this case ?? It might reveal more!
If so, could you please provide the link to download the latest
gfortran (for Win 7 64-bit OS) ??

Thank you kindly.
Monir

ajm...@gmail.com

unread,
Dec 5, 2011, 11:56:14 AM12/5/11
to gnu-f...@googlegroups.com
Just try
I am not with g95 anymore
GL
Bye!
Sent from my BlackBerry® smartphone from Qtel
--
You received this message because you are subscribed to the Google Groups "GNU Fortran" group.
To post to this group, send email to gnu-f...@googlegroups.com.
To unsubscribe from this group, send email to gnu-fortran...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gnu-fortran?hl=en.

Tobias Burnus

unread,
Dec 5, 2011, 12:16:36 PM12/5/11
to gnu-f...@googlegroups.com, monir
Hello,

On 12/05/2011 05:45 PM, monir wrote:
> 4) The second program is also compiled with the same command:
> ...C:\MyFiles\...\...>g95 -fbounds-check -ftrace=full -o LL107
> LL107.for
> NO errors, NO warnings, and NO *.exe file created!!!

Hmm, that's odd.


> SHOULD I try gfortran in this case ?? It might reveal more!
> If so, could you please provide the link to download the latest
> gfortran (for Win 7 64-bit OS) ??

I would give gfortran a try. Available binaries are linked at
http://gcc.gnu.org/wiki/GFortranBinaries

I have to admit that I do not have much experience with Windows, but I
think the build at

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/4.6.3/x86_64-w64-mingw32-gcc-4.6.3_rubenvb.7z/download

should be OK. There are other builds, but in general, I would prefer the
builds from MinGW-w64 project as they have been created by those who
maintain the 64bit Windows port of GCC.

Tobias

monir

unread,
Dec 5, 2011, 12:05:20 PM12/5/11
to GNU Fortran
On Dec 5, 11:56 am, ajm...@gmail.com wrote:
> Just try
> I am not with g95 anymore
> GL
> Bye!
> Sent from my BlackBerry® smartphone from Qtel
>

Sorry, I thought this group is for gfortran. My apologies!
Could you please advise what the appropriate DG is ??
Thank you.
Monir

Tobias Burnus

unread,
Dec 5, 2011, 12:24:52 PM12/5/11
to gnu-f...@googlegroups.com, monir
>> Just try
>> I am not with g95 anymore
> Sorry, I thought this group is for gfortran. My apologies!
> Could you please advise what the appropriate DG is ??

I think you have misread the answer. He suggested to use gfortran ("just
try") and to affirm the suggestion, he stated further that he moved from
g95 to gfortran ("I am not with g95 anymore"). At least that's how I
read the email.

For other mailing lists, see "mailing lists and news groups" at
http://gcc.gnu.org/wiki/GFortran

Tobias

ajm...@gmail.com

unread,
Dec 5, 2011, 12:39:00 PM12/5/11
to gnu-f...@googlegroups.com
And that was the idea :)
G95 was THE compiler of choice before it became "stagnated". Bugs are becoming an issue for me.
Sent from my BlackBerry® smartphone from Qtel

monir

unread,
Dec 6, 2011, 11:45:54 AM12/6/11
to GNU Fortran

On Dec 5, 12:39 pm, ajm...@gmail.com wrote:
>
> -----Original Message-----
> From: Tobias Burnus <bur...@net-b.de>
>

Thank you for the clarification:-)

1) I’m learning about gfortran before installing the MinGW for Win64,
i.e.; Mingw-w64, at:
http://gcc.gnu.org/wiki/GFortranBinaries
I think this is the appropriate gfortran package I should be
installing on my Win 7 Pro 64-bit m/c.
Correct ??

2) While I’m evaluating the pros and cons of having multiple Fortran
compilers on the same m/c, could you please have a quick look at item
5 of the OP, and advise if it tells you anything at all ??
The (g95) command line:


...C:\MyFiles\...\...>g95 -fbounds-check -ftrace=full -o LL107
LL107.for

returns NO errors, NO warnings, and NO *.exe file is created.

Instead, it returns what appears to be a system generated:


...C:\Users\Monir\AppData\Local\Temp/ccFEqbY7.o:LL107.for:(.data
+0x690): undefined reference to `_pmfrmo_'

3) The above ambiguous statement makes ref. to the Users folder, the
AppData subfolder, the source code file name, an undefined reference
which doesn’t exist anywhere in the system, etc..

Thank you.
Monir

Reply all
Reply to author
Forward
0 new messages