Menu

#84 macOS failed to compile Healpix_3.40/src/f90/mod/fitstools.F90

v3.40+
closed-fixed
5
2019-12-19
2018-09-11
Anonymous
No

macos sierra 10.13.6
libfitsio.a instaleld with macoptrs +g95
compilers: g95 & gcc7

configure f90 with all default options
make f90
....
....
....
compiling /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/pix_tools.F90
g95 -O3 -I/usr/local/IDL_LIBS/FIRST/Healpix_3.40/include -DGFORTRAN -DG95 -w -ffree-form -fno-second-underscore -fPIC -c /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/coord_v_convert.f90 -o /usr/local/IDL_LIBS/FIRST/Healpix_3.40/build/mod/coord_v_convert.o -fmod=/usr/local/IDL_LIBS/FIRST/Healpix_3.40/build/mod
compiling /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/fitstools.F90
In file fits_s_inc.f90:2339

Included at fitstools.junk.F90:348

          j4 = mod(p, qpix)
                      1

Error: 'p' argument of 'mod' intrinsic at (1) must be the same type and kind as 'a'
In file fits_s_inc.f90:2339

Included at fitstools.junk.F90:348

          j4 = mod(p, qpix)
               1

Error: Function 'mod' at (1) has no implicit type

Discussion

  • Eric Hivon

    Eric Hivon - 2018-09-12
    • labels: --> Fortran routines, F90
    • assigned_to: Eric Hivon
    • Group: v3.31+ --> v3.40+
     
  • Anonymous

    Anonymous - 2018-09-12

    UPDATE: I ported (macports) on my mac gcc7 , defined it as to be the default via gcc_select, ported again from scratch cfitsio +gcc7 and used gfortran in the configuration. All F90 compiled and worked out (I needed ismoothing in IDL). A few warnings but no crashes. I did that yesterday before reading now your advice. Thanks anyhow, I appreciate the fast response.

     
  • Eric Hivon

    Eric Hivon - 2019-12-19
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB