gfortran: error: unrecognized command line option ‘-r8’

ram90

New Member
Joined
Nov 28, 2018
Messages
1
Reaction score
0
Credits
0
When I tried to install a numerical code in cluster, I encountered the following error. Based on the error message, I understood that the installed gnu fortran version do not recognize the command option -r8.

Error message
gfortran: error: unrecognized command line option ‘-r8’; did you mean ‘-k8’? gfortran: error: unrecognized command line option ‘-i-dynamic’; did you mean ‘-rdynamic’?

Fortran version
GNU Fortran (GCC) version 7.2.0

Can you please help me with this? In addition, do you know how to change the flag -r8 to -fdefault-real-8?

Please let me know for any other question.


Thanks in advance,
Ram
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,957
Reaction score
7,925
Credits
37,761
G'day Ram and welcome to linux.org :)

I have moved this Thread to (had to toss a coin between Linux Other and) Command Line, both of which have references to Fortran and the like.

Your question is beyond my paygrade (although I learned some Minitran back in 1972, but did not follow through with it.

We have some programmers here, and I am hoping one or more of them can assist.

I will watch this Thread and see if I can learn something :D

Good luck!

Chris Turner
wizardfromoz
 

Members online


Top