[daip] Instep 4 not working (solaris)

Eric Greisen egreisen at cv3.cv.nrao.edu
Wed Jan 29 12:00:59 EST 2003


Sally Laurent-Muehleisen writes:
 > 
 > Hi,
 > 
 > 	I'm trying (via internet connection!) to help someone install the 
 > 31DEC03 version of AIPS on a Solaris (5.6) system.  I've got my colleague to
 > install the 2.95 gnu compilers (which was his first major problem).
He also

    Actually - for Solaris one almost always uses the SUN compilers
which produce very much better code.  The comments about 2.95.3 vs
3.2.1 apply only to Linux on Pentium IVs.  The options in FDEFAULT.SH
for solaris g77 are probably not correct.

 > had mispointed to the gnu readline libraries, which I've fixed.  We're still
 > running into a few problems.  A few tasks in INSTEP2 fail to compile (in APLSUB,
 > DECBIT fails to compile and in APLNOT, DLAMCH and SLAMCH fail to
compile).

    If these fail to compile then many programs including AIPS will
not link edit.

 > Also, INSTEP4 fails completely, being unable to create the SUBLIBs.
I'll

    INSTEP2 usually creates the libraries after running the compile of
the particular directory.  The shell script LIBR is probably failing
but you have not sent me its error messages.  They should be burried
in INSTEP2.LOG or INSTEP2.ERR (or wherever &2 was sent).  I am working
on a MacIntosh Os/X port and just encountered an error in LIBR there
which apparently is not normally an error on other machines.  In lIBR
there is a section of code with
               if ar cr SUBLIB.$$ 2> $PREP/ERROR.$$
If you comment out all lines in the q) case except the first echo and
the ;; terminator, then LIBR worked for me on Mac.  But I knew that
because error messages identified this line as a problem.  With no
error messages I do not know what your problem is.

 > attach various error messages below.  In the DECBIT, DLAMCH and SLAMCH failures
 > to compile, the relevant error seems to be "g77: No input files".
I've set the

   I do not know what this message means - have you tried
           COMRPL $APLSUB/DECBIT $APLNOT/*LAMCH
by hand to see what comes out?

 > fortran compiler and linker to /solaris/gnu/gcc-2.95.3/bin/g77, and the
 > C-compiler to /solaris/gnu/gcc-2.95.3/bin/gcc.  I haven't touched the default
 > options.  I note that there's a note in LDOPTS about needing the readline
 > libraries when using shared libraries in solaris...could the
problem be that

   That is an ld problem when you actually have load modules and would
not affect you sooner.

 > the first few runs of install.pl, we were not pointed at the right place for
 > the readline libraries?  If not, any idea what's wrong?
 > 
 > 						Thanks for your help,
 > 						 Sally Laurent-Muehleisen
 > 
 > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 > INSTEP4 Errors:
 > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 > 
 > 
 > INSTEP4    : Begins at Tue Jan 28 15:23:20 MST 2003
 > INSTEP4    :
 > INSTEP4    : Compile and Link all programs (may take a while)
 > INSTEP4    :
 > INSTEP4    : Processing $AIPPGM/...
 > INSTEP4    : programs.
 > INSTEP4    : File       /md2/cly/aips/31DEC03/SUL/INSTALL/AIPPGM.LIS
 > INSTEP4    : already exists (no need to create).
 > INSTEP4    : Resume     $AIPPGM/...
 > INSTEP4    : compiling/linking at
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/AIPS.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/AIPSB.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/AIPSC.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/AJAX.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/BATER.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/BSTRT1.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/DAIP.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/FILAI2.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/FILAIP.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/FILINI.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/GRIPR.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/POPSGN.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/QMNGR.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/RECAT.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/SETSP.FOR
 > INSTEP4   : /md2/cly/aips/31DEC03/AIPS/PGM/SETTVP.FOR
 > COMLNK    : Date       Tue Jan 28 15:23:20 MST 2003
 > PP        : Preprocess /md2/cly/aips/31DEC03/AIPS/PGM/AIPS.FOR
 > PP        : into       /md2/cly/aips/31DEC03/SUL/PREP/AIPS.f
 > FC        : Date       Tue Jan 28 15:23:22 MST 2003
 > FC        : Interpret  FC  \
 > FC        :            /md2/cly/aips/31DEC03/SUL/PREP/AIPS.f
 > FC        : as         LIST=FALSE PURGE=FALSE
 > 03/SUL/PREP/AIPS.f
 > FC        : as         LIST=FALSE PURGE=FALSE
 > FC        : plus       /solaris/gnu/gcc-2.95.3/bin/g77 -c -fno-automatic -fno-gl
 > obals -Wno-globals -Wimplicit -Wall -ansi -u -O -fexpensive-optimizations -funro
 > ll-loops -fstrength-reduce -frerun-cse-after-loop -fforce-mem -fforce-addr -fcal
 > ler-saves \

     Replace the -O and following with -O2 in FDEFAULT,SH - but why
are you using gcc/g77 anyway?

 > FC        :            /md2/cly/aips/31DEC03/SUL/PREP/AIPS.f
 > FC        : Compile of /md2/cly/aips/31DEC03/SUL/PREP/AIPS.f
 > FC        : ends successfully.
 > LIBR      : Create new /md2/cly/aips/31DEC03/SUL/LIBR/AIPSUB/SUBLIB
 > LIBR      : Library    /md2/cly/aips/31DEC03/SUL/LIBR/AIPSUB/SUBLIB.9655
 > LIBR      : creation failed!

      The error messages are missing here... is this INSTEP4.LOG?

 > LIBR      : Create new /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB
 > LIBR      : Library    /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB.9672
 > LIBR      : creation failed!
 > LIBR      : Create new /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB
 > LIBR      : Library    /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB.9689
 > LIBR      : creation failed!
 > LIBR      : Create new /md2/cly/aips/31DEC03/SUL/LIBR/YSS/SUBLIB
 > LIBR      : Library    /md2/cly/aips/31DEC03/SUL/LIBR/YSS/SUBLIB.9706
 > LIBR      : creation failed!
 > LIBR      : Create new /md2/cly/aips/31DEC03/SUL/LIBR/YSUB/SUBLIB
 > LIBR      : Library    /md2/cly/aips/31DEC03/SUL/LIBR/YSUB/SUBLIB.9724
 > LIBR      : creation failed!
 > LINK      : Date is... Tue Jan 28 15:23:25 MST 2003
 > LINK      : Interpret  LINK \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/PREP/AIPS.o
 > LINK      : as         PURGE=FALSE REPLACE=TRUE SAVE=TRUE STRIP=TRUE
 > LINK      : plus       /solaris/gnu/gcc-2.95.3/bin/g77 \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/PREP/AIPS.o \/md2/cly/aips/31DEC03/SUL/PREP/AIPS.o \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/AIPSUB/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/YSUB/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/YSS/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB \
 > LINK      :            /md2/cly/aips/31DEC03/SUL/LIBR/GNU/libreadline.a \
 > LINK      :            -ltermcap \
 > LINK      :             -s \
 > LINK      :            -o /md2/cly/aips/31DEC03/SUL/PREP/AIPS.EXE
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/YSUB/SUBLIB: No such file or directory
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/YSS/SUBLIB: No such file or directory
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB: No such file or directory
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB: No such file or directory
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/APLSUB/SUBLIB: No such file or directory
 > g77: /md2/cly/aips/31DEC03/SUL/LIBR/APLSOL/SUBLIB: No such file or directory
 > LINK      : Status from /solaris/gnu/gcc-2.95.3/bin/g77 is 1
 > LINK      : Link of    /md2/cly/aips/31DEC03/SUL/PREP/AIPS.o
 > LINK      : dies from wimpy compiler
 > COMLNK    : Link failed!
 > 
 > 

A clue on the INSTEP2 compile failures.  The 3 routines are the only
three in which the compiler is told to compile with no optimisation
(from $SYSUNIX/OPTIMIZE.LIS).  I do not see anything wrong in the FC
command below but maybe there is something.  Try changing FDEFAULT.SH
to OPT0=" " rather than OPT0="".  There may be a null character
getting into the string which we cannot see but g77 is hitting in
Solaris.

Eric
 > 
 > 
 > %%%%%%%%%%%%%%%%%%%%%
 > DECBIT compile error
 > %%%%%%%%%%%%%%%%%%%%%
 > 
 > PP        : Preprocess /md2/cly/aips/31DEC03/APL/SUB/DECBIT.FOR
 > PP        : into       /md2/cly/aips/31DEC03/SUL/PREP/DECBIT.f
 > FC        : Date       Tue Jan 28 13:26:05 MST 2003
 > FC        : Interpret  FC  \
 > FC        :            /md2/cly/aips/31DEC03/SUL/PREP/DECBIT.f
 > FC        : as         LIST=FALSE PURGE=FALSE
 > FC        : plus       /solaris/gnu/gcc-2.95.3/bin/g77 -c -fno-automatic -fno-gl
 > obals -Wno-globals -Wimplicit -Wall -ansi -u  \
 > FC        :            /md2/cly/aips/31DEC03/SUL/PREP/DECBIT.f
 > g77: No input files
 > FC        : Compile of /md2/cly/aips/31DEC03/SUL/PREP/DECBIT.f
 > FC        : ends with fatal error(s)!
 >    1:      SUBROUTINE DECBIT (NMAX, ICHAN, IPL, LOW)
 >     2:C-----------------------------------------------------------------------
 >     3:C! converts decimal coded number to bit coded (e.g. 13 -> 0000101)
 >     4:C# TV-util
 >     5:C-----------------------------------------------------------------------
 >     6:C;  Copyright (C) 1995
 >     7:C;  Associated Universities, Inc. Washington DC, USA.
 >     8:C;
 >     9:C;  This program is free software; you can redistribute it and/or
 >    10:C;  modify it under the terms of the GNU General Public License as
 >    11:C;  published by the Free Software Foundation; either version 2 of
 >    12:C;  the License, or (at your option) any later version.
 >    13:C;
 >    14:C;  This program is distributed in the hope that it will be useful,
 >    15:C;  but WITHOUT ANY WARRANTY; without even the implied warranty of
 >    16:C;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 >    17:C;  GNU General Public License for more details.
 >    18:C;
 >    19:C;  You should have received a copy of the GNU General Public
 >    20:C;  License along with this program; if not, write to the Free
 >    21:C;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
 >    22:C;  MA 02139, USA.
 >    23:C;
 >    24:C;  Correspondence concerning AIPS should be addressed as follows:
 >    25:C;         Internet email: aipsmail at nrao.edu.
 >    26:C;         Postal address: AIPS Project Office
 >    27:C;                         National Radio Astronomy Observatory
 >    28:C;                         520 Edgemont Road
 >    29:C;                         Charlottesville, VA 22903-2475 USA
 >    30:C-----------------------------------------------------------------------
 >    31:C-----------------------------------------------------------------------
 >    32:C   Translate a decimal based channel number into a binary
 > 33:C   channel no. e.g. 1453 -> 2**0 + 2**3 + 2**4 + 2**2
 >    34:C   A maximum of nine channels are addressable
 >    35:C   Inputs:
 >    36:C      NMAX       I       Maximum allowed channel number
 >    37:C      ICHAN      I       Input channel decimal number
 >    38:C   Outputs:
 >    39:C      IPL        I       Binary channel # pattern
 >    40:C      LOW        I       Lowest of specified channels
 >    41:C-----------------------------------------------------------------------
 >    42:      INTEGER   NMAX, ICHAN, IPL, LOW
 >    43:C
 >    44:      INTEGER   BITS(9), KM, K, ZOR, J, I
 >    45:      DATA BITS /1, 2, 4, 8, 16, 32, 64, 128, 256/
 >    46:C-----------------------------------------------------------------------
 >    47:      J  = ABS(ICHAN)
 >    48:      IPL = 0
 >    49:      LOW = NMAX + 1
 >    50:      KM = MIN (9, NMAX)
 >    51:      DO 20 I = 1,9
 >    52:         K = MOD (J, 10)
 >    53:         J = J / 10
 >    54:         IF ((K.LE.KM) .AND. (K.GT.0)) THEN
 >    55:            IPL = ZOR (IPL, BITS(K))
 >    56:            IF (LOW.GT.K) LOW = K
 >    57:            END IF
 >    58:         IF (J.EQ.0) GO TO 30
 >    59: 20      CONTINUE
 >    60:C
 >    61: 30   IF (LOW.GT.NMAX) LOW = 0
 >    62:C
 >    63: 999  RETURN
 >    64:      END
 > COMRPL    : Compile failed!
 > COMRPL    : Deleted    /md2/cly/aips/31DEC03/SUL/PREP/DECBIT.f
 > COMRPL    : Leave      /md2/cly/aips/31DEC03/APL/SUB/DECBIT.FOR
 > COMRPL    : in         /md2/cly/aips/31DEC03/SUL/INSTALL/APLSUB.LIS
 > COMRPL    : unchanged as it FAILED to compile.
 > COMRPL    : Date       Tue Jan 28 13:26:06 MST 2003
 > _______________________________________________
 > Daip mailing list
 > Daip at listmgr.cv.nrao.edu
 > http://listmgr.cv.nrao.edu/mailman/listinfo/daip
 > 



More information about the Daip mailing list