[daip] AIPS compilation problem

Eric Greisen egreisen at nrao.edu
Fri Apr 8 10:55:19 EDT 2011


Philip Lah wrote:
> Hello daip at nrao.edu,
> 
>    I have been trying to install AIPS on a Fedora 14 Linux 64bit machine 
> without sucess.  Frank Briggs (my supervisor) suggested I contact you.
> 
>    I first tried a binary installation and got nowhere so I have been 
> working on getting a Text installation working.
> 
> I have reached the stage of INSTEP2 but this fails with:
> 
> AipsWiz: Error: INSTEP2 failed, no point in proceeding.
> 
> 
> Looking in the INSTEP2.LOG there are the below failed compliation message:
> 
> COMRPL    : Compile failed!
> COMRPL    : Deleted    /home/AIPS/AIPS/31DEC11/LNX64/PREP/UVDESC.f
> 
> COMRPL    : Compile failed!
> COMRPL    : Deleted    /home/AIPS/AIPS/31DEC11/LNX64/PREP/POSITION.f
> 
> 
> The only other problems I could find in the INSTEP2.LOG were a series of 
> messages like this:
> 
> 
> /home/AIPS/AIPS/31DEC11/LNX64/PREP/POSITION.f:679: (continued):
>                 CALL IMDGET (OUT, 'CRVAL', TYPE, DIM, CRVAL, CDUMMY, IERR)
>                      2
> Argument #5 of `imdget' is one precision at (2) but is some other 
> precision at (1) [info -f g77 M GLOBALS]
> 
> 
> I am not sure whether or not these would be a fatal errors.
> 
> 
> I am at a loss on how to fix these compilation problems.  I have a 
> suspicion that it may be due to the compiler options I used.  I do not 
> have access to ifort or icc so I am using g77 and gcc.  In order to get 
> these to work I had to remove several of the Compiler options.
> 
> Currently I am using g77 with
> 
> -c -ff90 -ip
> 
> (previously with ifort -c -axWPT -w90 -w95 -cm -ip -save all)
> 
> and gcc with
> 
> -c -O3 -ip -I/home/AIPS/AIPS/31DEC11/INC -D_FILE_OFFSET_BITS=64 
> -DHAVE_LINUX_GLIBC
> 
> (previously with icc -c -O3 -ip -axWPT -I/home/AIPS/AIPS/31DEC11/INC 
> -D_FILE_OFFSET_BITS=64 -DHAVE_LINUX_GLIBC   that is no -axWPT used with 
> gcc)
> 
> It is possible that I need to add some options for g77 and gcc to replace 
> the ones I removed in order for ISTEP2 to compile.  It is also possible 
> that it is something completely different going wrong.
> 
>    Any help that you could provide would be most welcome.
> 
>    Bye
>          Philip Lah

I would like to know what your problems with the binary installation 
were.  Over 90% of our sites now appear to be using the binary 
installation and so avoid the issues of incompatible compilers etc.
In FDEFAULT.SH there are options indicated for gfortran and for f77 but 
it is known that some versions of these compilers do not work correctly.
Furthermore, your -ff90 seems to assert that the code is Fortran 90 
compliant which it probably is not.  It is F77 code.  The warning 
message points out an "issue" which we handle carefully in the code in 
which the formal data types deliberately do not match across call 
sequences.  If we were to use a compiler that required a match it would 
literally take months to change things - I know because the code line 
above used to omit that character form and try to handle even that 
across the boundary (which is not legal in most Fortrans) so I had to go 
fix it.  If real vs integer vs array vs ??? had to be fixed the problem 
would be vastly more difficult.  Let us try to solve your binary install 
issues - you will get executables that run faster and are expected to work.

Eric Greisen




More information about the Daip mailing list