[Gretl-users] lapack/gretl on 64 sabayon/gentoo

Allin Cottrell cottrell at wfu.edu
Wed Feb 27 11:16:19 EST 2008


On Mon, 25 Feb 2008, Helgi Tomasson wrote:

> Diagnostics on compilaton of GRETL on saybayon(gentoo)-64 
> linux...

According to unix.org:

"[T]he FORTRAN-77 standard requires that the type INTEGER be the 
same size as REAL, which is half the size of DOUBLE PRECISION. 
This, together with customer expectations, means that FORTRAN-77 
implementations will generally leave INTEGER as a 32-bit type, 
even on 64-bit platforms."

I think it's worth trying to tackle the issue the other way round: 
it may be that the "integers" being passed from gretl to lapack on 
your system are too big, not too small.

The size of "integer" is controlled by a header in the lib/src 
directory of gretl: it used to be called f2c.h but in current CVS 
it's renamed as gretl_f2c.h (to try to avoid confusion with any 
other f2c.h that might be on the system).  In that file you'll 
find:

  typedef long int integer;

Try changing this to 

  typedef int integer;

and rebuilding gretl.

Allin.








More information about the Gretl-users mailing list