[daip] New Ticket - [!BVR-360142]: Compiling AIPS from source on a Mac

Jonathan TL Zwart do-not-reply at nrao.edu
Thu Jan 19 04:56:54 EST 2012


New Ticket: Compiling AIPS from source on a Mac

Hi,

I'm trying to compile AIPS 31DEC12 on an iMac running OSX Lion 10.7.2. I've installed gcc 4.4 and gfortran 4.4, and do not have access to ifort. My AIPSRC is at the foot of this message.

I need the source rather than the binary version in order to use some custom AMI routines supplied by Dave Green at MRAO.

I had to edit the XAS Makefile to get XAS to compile (i.e. remove the axP compiler flag).

I've run into a linking issue with libgfortranbegin.a (for several different functions), e.g.

PP        : Preprocess /Users/jtlz2/aips/31DEC12/AIPS/SUB/VERSTR.FOR
PP        : into       /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
Unrocognized compiler /opt/local/bin/gfortran-mp-4.4  on  MACINT
FC        : Date       Thu Jan 19 11:13:35 SAST 2012
FC        : Interpret  FC  \
FC        :            /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
FC        : as         LIST=FALSE PURGE=FALSE
FC        : plus       /opt/local/bin/gfortran-mp-4.4  -O2 \
FC        :            /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
Undefined symbols for architecture x86_64:
  "_h2chr_", referenced from:
      _verstr_ in ccUM4BvX.o
  "_chkchr_", referenced from:
      _verstr_ in ccUM4BvX.o
  "_msgwrt_", referenced from:
      _verstr_ in ccUM4BvX.o
  "_MAIN__", referenced from:
      _main in libgfortranbegin.a(fmain.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
FC        : Compile of /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
FC        : ends with fatal error(s)!
FC        : Examine    /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/INSTEP2.LOG
FC        : and        /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
FC        : Dies of unnatural causes
COMRPL    : Compile failed!
COMRPL    : Deleted    /Users/jtlz2/aips/31DEC12/MACINT/PREP/VERSTR.f
COMRPL    : Leave      /Users/jtlz2/aips/31DEC12/AIPS/SUB/VERSTR.FOR
COMRPL    : in         /Users/jtlz2/aips/31DEC12/MACINT/INSTALL/AIPSUB.LIS
COMRPL    : unchanged as it FAILED to compile.
COMRPL    : at least one module FAILED to compile
COMRPL    : Dies of unnatural causes
INSTEP2   : Failure in $AIPSUB/...
INSTEP2   : compilations.
INSTEP2   : Aborts!    Thu Jan 19 11:13:35 SAST 2012

Do you have any ideas on how to proceed?

Many thanks,

Jon Zwart


# AIPSRC created by install.pl on Thu Jan 19 11:13:35 2012
#
LAST_VERSION = 31DEC12
AIPS_ROOT = /Users/jtlz2/aips
GROUP = staff
GROUPWRITE = YES
INSTALL_FROM_CD = NO
INSTALL_FROM_NET = NO
ARCH = MACINT
IS64 = NO
SITE = MARCHMAIN
THISHOST = MARCHMAIN
HOSTS = "MARCHMAIN"
PRINTERS = "KONICA_MINOLTA_bizhub_363_7D_81_B7_:PS~DEF~UWCASTRO"
DATA_AREAS = "/Users/jtlz2/aips/DATA/MARCHMAIN_1:NONE"
TAPE_DRIVES = ""
TPHOSTS = "127.0.0.1"
PRINTMED = A4
FORT = /opt/local/bin/gfortran-mp-4.4
FORTOPT =  
CCOM = /opt/local/bin/gcc-mp-4.4
CCOMOPT = -c -O3 -ip --I/Users/jtlz2/aips/31DEC12/INC -D_FILE_OFFSET_BITS=64
LINK = /opt/local/bin/gfortran-mp-4.4
READLINE = /Users/jtlz2/aips/31DEC12/MACINT/LIBR/GNU/libreadline.a
DOTWOLIB = NO
DOWNLOADED = 2012.01.18:09:51.25
UNPACKED = 

#---- End of AIPSRC file

Ticket Details
===================
Ticket ID: BVR-360142
Department: AIPS Data Processing
Priority: Default
Status: Open
Link:  https://help.nrao.edu/staff/index.php?_m=tickets&_a=viewticket&ticketid=1386




More information about the Daip mailing list