[daip] New Client Reply - [!LNK-744620]: Text installation of AIPS on MAC OSX Lion

Eric Greisen egreisen at nrao.edu
Tue Jan 24 15:45:13 EST 2012


Jonathan TL Zwart wrote:
> New Client Reply: Text installation of AIPS on MAC OSX Lion
> 
> Hi Eric,
> 
> I've made some progress by changing the FORT compiler flags, but still run into trouble. This is for a second run at INSTEP2:
> 
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZWINC.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZWINC2.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZX8XL.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZXDRFP.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZXDRST.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZXHELP.o
> LIBR      : Delete     /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/ZXLX8.o
> LIBR      : Moved      /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/SUBLIB.80503
> LIBR      : to         /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLSUB/SUBLIB
> LIBR      : Ends successfully
> INSTEP2   : Process    $APLOOP/...
> INSTEP2   : subroutines.
> INSTEP2   : File       /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/APLOOP.LIS
> INSTEP2   : already exists (no need to create).
> INSTEP2   : All         $APLOOP/...
> INSTEP2   : compilations marked as done.
> LIBR      : Library    /Users/jtlz2/aips/31DEC12/MACINT/LIBR/APLOOP/SUBLIB
> LIBR      : is up to date.
> LIBR      : Ends successfully
> INSTEP2   : Process    $APLGEN/...
> INSTEP2   : subroutines.
> INSTEP2   : File       /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/APLGEN.LIS
> INSTEP2   : already exists (no need to create).
> INSTEP2   : Resume     $APLGEN/...
> INSTEP2   : compilations at
> INSTEP2   : /Users/jtlz2/aips/31DEC12/APL/DEV/UNIX/ZTKSRV.C
> COMRPL    : Date       Tue Jan 24 21:27:44 SAST 2012
> PP        : Preprocess /Users/jtlz2/aips/31DEC12/APL/DEV/UNIX/ZTKSRV.C
> PP        : into       /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> AIPSCC    : Date       Tue Jan 24 21:27:44 SAST 2012
> AIPSCC    : Interpret  AIPSCC  \
> AIPSCC    :            /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> AIPSCC    : as         LIST=FALSE PURGE=TRUE
> AIPSCC    : plus       /opt/local/bin/gcc-mp-4.4 -c -O3 -fomit-frame-pointer -funroll-loops -I/Users/jtlz2/aips/31DEC12/INC -D_FILE_OFFSET_BITS=64 -DHAVE_LINUX_GLIBC -DHAVE_LINUX_GLIBC \
> AIPSCC    :            /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c: In function 'ztksrv_':
> /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c:129: error: storage size of 'setio' isn't known
> AIPSCC    : Compile of /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> AIPSCC    : ends with fatal error(s)!
> AIPSCC    : Examine    /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/INSTEP2.LOG
> AIPSCC    : and        /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> AIPSCC    : Dies of unnatural causes
> COMRPL    : Compile failed!
> COMRPL    : Deleted    /Users/jtlz2/aips/31DEC12/MACINT/PREP/ZTKSRV.c
> COMRPL    : Leave      /Users/jtlz2/aips/31DEC12/APL/DEV/UNIX/ZTKSRV.C
> COMRPL    : in         /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/APLGEN.LIS
> COMRPL    : unchanged as it FAILED to compile.
> COMRPL    : at least one module FAILED to compile
> COMRPL    : Dies of unnatural causes
> INSTEP2   : Failure in $APLGEN/...
> INSTEP2   : compilations.
> INSTEP2   : Aborts!    Tue Jan 24 21:27:44 SAST 2012
> AipsWiz: Error: INSTEP2 failed, no point in proceeding.
> AipsWiz: Error: Look in /Users/jtlz2/aips/31DEC12/MACINT/INSTALL to see
> AipsWiz: Error: if you can figure out what went wrong.  There are
> AipsWiz: Error: many log and list files there.  You may want to do

I hate moving to compilers that are too distant from what we use...
That is going to force you to ask your system for help on what options 
to use and not use.

Try editing the file ($APLUNIX/ZTKSRV.C) :

Remove the lines that say near the top
#ifndef __linux__
#include <sgtty.h>
#else
#ifdef HAVE_LINUX_GLIBC
#include <termios.h>
#else
#include <bsd/sgtty.h>
#endif
#endif

and put in their place

#if !defined(__linux__) || defined(HAVE_LINUX_GLIBC)
#include <sgtty.h>
#else
#include <bsd/sgtty.h>
#endif

Let me know what happens (if it works I replace the code - what I am 
suggesting is in 2 routines but not the TK one).

Eric Greisen




More information about the Daip mailing list