[daip] [31DEC20] AIPS installation in macOS 10.15 Catalina.

egreisen egreisen at nrao.edu
Thu Apr 15 12:59:39 EDT 2021


On 2021-04-15 10:14, ‍김지인(학부학생/이과대학 천문우주학) wrote:
> Hi Eric,
> 
> I’ve been proceed a lot so many updates are required for this new
> question.
> 
> 1) I started over new installation 31DEC21 in the new AIPS_ROOT, which
> is /opt/aips
> 
> 2) I figured out that the part of former errors were occurred due to
> the compiler version differences. (I know there are other things out
> there, but for now, I want to concentrate on this problem.)
> 
> 3) This is fortran compiler I use,
> 
> jeeinkim at Jeeins-iMac JEEIN % gfortran -v
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin19/10.2.0/lto-wrapper
> Target: x86_64-apple-darwin19
> Configured with: ../gcc-10.2.0/configure --prefix=/usr/local/gfortran
> --with-gmp=/Users/fx/devel/gcc/build_package/deps
> --with-isl=/Users/fx/devel/gcc/build_package/deps
> --enable-languages=c,c++,fortran,objc,obj-c++
> --build=x86_64-apple-darwin19
> --with-native-system-header-dir=/usr/include
> --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
> Thread model: posix
> Supported LTO compression algorithms: zlib
> gcc version 10.2.0 (GCC)
> 
> 4) I modified all the compiling errors that are related to language c,
> but I have no idea with the fortran. I’ve never learned this
> language before.
> 
> 5) I got this error message, and I need your help here.
> 
> AipsWiz: ==> Press <ENTER> after you have verified FDEFAULT.SH::
> AipsWiz:  =====> Compile Utility Programs (if needed) in
> /opt/aips/31DEC21/MACINT/SYSTEM/JEEIN...
> AipsWiz:         - found existing F2PS program; assume it's ok.
> AipsWiz:         - found existing F2TEXT program; assume it's ok.
> AipsWiz:         - found existing NEWEST program; assume it's ok.
> AipsWiz: Compiling PRINTENV...
> AipsWiz:         - found existing AIPWD program; assume it's ok.
> AipsWiz: Compiling REVENV...
> AipsWiz:         - Compiling ZTRLOP.c...
> AipsWiz:         - done.  Now try building the PP preprocessor...
> AipsWiz: /usr/local/bin/gfortran -O -o PP.EXE PP.f ZTRLOP.o
> PP.f:943:33:
> 
>   943 |        CALL CHR2H (4, '    ', 1, HBLANK)
>       |                                 1
> Error: Rank mismatch in argument ‘ostr’ at (1) (rank-1 and scalar)
> AipsWiz: Error: Failed to build PP.EXE in
> /opt/aips/31DEC21/MACINT/SYSTEM/JEEIN
> AipsWiz: Error: This will prevent INSTEP2 from starting!!!!
> AipsWiz: Error: You need to find out why it failed, but for now
> AipsWiz: Error: you can proceed with the rest of the install...
> 
> Please let me know how to fix it!
> 
> Thank you for the former helps, and wish you good day.
> 
> Jeein

I did not realize that you are compiling it locally.  Why are you doing 
that?
Do you plan to write your own AIPS tasks?  If not I recommend using the 
binary
installation instead:

perl install.pl -n

The gfortran version you are using is comparing subroutine arguments to 
the
call sequence and treating apparent differences as errors.  This is very 
bad
for AIPS and will cause almost everything to fail.  Low level routines 
are
prepared to get arrays but higher level routines may only send scalars
which is fine if the low level routine is also told the dimension.  Bad 
versions
of gfortran treat this as an error rather than a warning.

Eric Greisen



More information about the Daip mailing list