unrecognized command line option ‘-r8’
Hi,
I am installing a package. I have received the following error: gfortran -c -O0 -r8 dlamch.f gfortran: error: unrecognized command line option ‘-r8’ make[2]: *** [dlamch.o] Error 1 make[2]: Leaving directory `/home/sara/Packages/opium-v3.7-src/src/lapack' make[1]: *** [all-subdirs] Error 1 make[1]: Leaving directory `/home/sara/Packages/opium-v3.7-src/src' make: *** [all] Error 2 what does the option '-r8' stand for? |
Normally in fortran, setting up a variable as "real" makes it a 32-bit float, while "double precision" or "real*8" makes it a 64-bit float.
-r8 is a flag used by many compilers to force both "real" and "real*8" variables to be 64-bit floats. gfortran has this option too, but the flag is called "-fdefault-real-8" instead. It may also promote "double precision" variables to 128-bit, if possible on your system. |
Quote:
|
Change -r8 to -fdefault-real-8
|
Quote:
|
It should be in the makefile, probably the one in the lapack directory.
|
Quote:
SHELL=/bin/sh Quote:
|
Just found it, thanks for very useful help.
|
All times are GMT -5. The time now is 10:12 PM. |