Page 1 of 1

minimum gfortran version

PostPosted: Tue Oct 04, 2011 2:24 pm
by mvanhorn
Is there a minimum version of GNU Fortran necessary to build LAPACK/BLAS?

I'm having compile issues, and I'm guessing it's because the system I'm trying to build it on is using an old distribution (and the user doesn't want to change).

Thanks!

Re: minimum gfortran version

PostPosted: Thu Oct 06, 2011 2:17 am
by admin
No I don't think so.
Which version of gfortran are you using and what are your issues?

Re: minimum gfortran version

PostPosted: Thu Oct 06, 2011 8:13 am
by mvanhorn
Thank you for your response.

The version of GNU Fortran is

# f77 --version
GNU Fortran (GCC) 3.4.3 (cAos Linux 3.4.3)

The errors are, during the make:

g77 -g -g -O0 -c slamch.f -o slamch.o
slamch.f: In function `slamch':
slamch.f:63: warning:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Reference to unimplemented intrinsic `DIGITS' at (^) (assumed EXTERNAL)
slamch.f:63:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Invalid declaration of or reference to symbol `digits' at (^) [initially seen at (^)]
slamch.f:63: warning:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Reference to unimplemented intrinsic `EPSILON' at (^) (assumed EXTERNAL)
slamch.f:63:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Invalid declaration of or reference to symbol `epsilon' at (^) [initially seen at (^)]
slamch.f:63: warning:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Reference to unimplemented intrinsic `HUGE' at (^) (assumed EXTERNAL)
slamch.f:63:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Invalid declaration of or reference to symbol `huge' at (^) [initially seen at (^)]
slamch.f:63: warning:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Reference to unimplemented intrinsic `MAXEXPONENT' at (^) (assumed EXTERNAL)
slamch.f:63:
INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT,
^
Invalid declaration of or reference to symbol `maxexponent' at (^) [initially seen at (^)]
slamch.f:64: warning:
$ MINEXPONENT, RADIX, TINY
^
Reference to unimplemented intrinsic `MINEXPONENT' at (^) (assumed EXTERNAL)
slamch.f:64:
$ MINEXPONENT, RADIX, TINY
^
Invalid declaration of or reference to symbol `minexponent' at (^) [initially seen at (^)]
slamch.f:64: warning:
$ MINEXPONENT, RADIX, TINY
^
Reference to unimplemented intrinsic `RADIX' at (^) (assumed EXTERNAL)
slamch.f:64:
$ MINEXPONENT, RADIX, TINY
^
Invalid declaration of or reference to symbol `radix' at (^) [initially seen at (^)]
slamch.f:64: warning:
$ MINEXPONENT, RADIX, TINY
^
Reference to unimplemented intrinsic `TINY' at (^) (assumed EXTERNAL)
slamch.f:64:
$ MINEXPONENT, RADIX, TINY
^
Invalid declaration of or reference to symbol `tiny' at (^) [initially seen at (^)]
make[1]: *** [slamch.o] Error 1

Perhaps I'm misunderstanding, but it appears to me that there are types that the compiler doesn't know about.

Re: minimum gfortran version

PostPosted: Thu Oct 06, 2011 8:17 am
by admin
I see the problem, you are using g77 ( a Fortran 77 compiler) and not gfortran.
LAPACK now includes some f90 features and you must use a f90 compiler.
If you replace g77 by gfortran in your make.inc, that should work.
Julie

Re: minimum gfortran version

PostPosted: Thu Oct 06, 2011 9:49 am
by mvanhorn
Okay, that helps. Thanks!

Re: minimum gfortran version

PostPosted: Mon Mar 19, 2012 2:02 am
by D-V-C+
I'm in a situation where I have to use g77. I'm using legacy code for a scientific application that doesn't compile properly with gfortran. Is there an older version of LAPACK without the Fortran 90 components I can use?