Healpix v2.20a Fortran installation issues on 64 architecture

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Robert Lee
Posts: 1
Joined: June 07 2011
Affiliation: Richmond

Healpix v2.20a Fortran installation issues on 64 architectur

Post by Robert Lee » June 07 2011

Hi,

I'm attempting to install healpix on a 64 bit parallelizable machine but cannot seem to make the fortran configuration. On another local machine where I have healpix installed serializable I run into no problems. When reproducing the installation on the parallelizable machine, I can correctly build the C routines and they compile no problem. When I configure the fortran options (I have gfortran installed) and attempt to make with the command

> make-f90

I get this error:

make[1]: Entering directory `/usr/local/src/Healpix_2.20a/src/f90/psht'
gcc -O -fopenmp -I c_utils -I libfftpack -I libpsht -I libpsht_healpix_f -c libpsht_all.c -o libpsht_all.o
ar -rsv libpsht_healpix_f.a libpsht_all.o
ar: creating libpsht_healpix_f.a
a - libpsht_all.o
make[1]: Leaving directory `/usr/local/src/Healpix_2.20a/src/f90/psht'
make[1]: Entering directory `/usr/local/src/Healpix_2.20a/src/f90/mod'
compiling healpix_types.F90
gcc -O -fopenmp -c -o cgetEnvironment.o cgetEnvironment.c
gfortran -O3 -I/usr/local/src/Healpix_2.20a/include -DGFORTRAN -fno-second-underscore -fopenmp -c -o indmed.o indmed.f90
gfortran -O3 -I/usr/local/src/Healpix_2.20a/include -DGFORTRAN -fno-second-underscore -fopenmp -c -o utilities.o utilities.f90
compiling bit_manipulation.F90
compiling extension.F90
compiling long_intrinsic.F90
In file long_intrinsic.F90:168

mysize = size(array, dim=dim)
1
Error: 'dim' argument of 'size' intrinsic at (1) must be of kind 8
In file long_intrinsic.F90:156

Any ideas, comments?

Renee Hlozek
Posts: 5
Joined: February 28 2007
Affiliation: Princeton University

Healpix v2.20a Fortran installation issues on 64 architectur

Post by Renee Hlozek » November 02 2011

I had the same issues with gfortran (not resolved), but these issues disappeared when I used ifort.

Good luck!

Phil Bull
Posts: 1
Joined: July 10 2012
Affiliation: University of Oxford
Contact:

Healpix v2.20a Fortran installation issues on 64 architectur

Post by Phil Bull » July 10 2012

Quick update on this: You probably need a more recent version of gfortran. See here.

Post Reply