[daip] Re: compiler problems

Eric Greisen egreisen at cv3.cv.nrao.edu
Wed Feb 27 13:49:08 EST 2002


AIPS Manager writes:
 > Hi
 > This is Grant Denn @ Sweet Briar College. I'm installing 31DEC02 
 > on a Red Hat Linux 7.2, with gcc-2.95.3. I've pointed the compiler
 > in the install wizard step 10 to /usr/local/bin/gcc, or /usr/local/bin/g77.
 > Nonetheless I am having problems. I'm sending some example log file
 > below. Please reply to gdenn at sbc.edu. Thanks very much. 

If I judge correctly, you have gotten a long ways into the INSTEP4,
but with just a small fragment it is hard to tell what is wrong.  Did
all areas prior to $APGNOT compile and link correctly?  INSTEP4 stops
at the end of an area that does not link fully (or at least it is
supposed to).

What programs did not link in $APGNOT and what subroutines are missing
in them?

 > 
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLLINUX/SUBLIB \ 
 > LINK      :             -s \
 > LINK      :            -o /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.EXE

The few lines before this would show me what library tree your linker
is using and - if that is wrong - why it is failing.

 > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libg2c.a(open.o): In function `f_open':
 > /usr/local/gcc/gcc-2.95.3/i686-pc-linux-gnu/libf2c/libI77/open.c:213: the use of `tempnam' is dangerous, better use `mkstemp'

This is meaningless for the moment.  The new OS wants us to use
updated routines but the old compiler provides old ones.  The new
compiler does not work well (see aips web page).

 > /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.o: In function `nxread_':
 > /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.o(.text+0x2c33): undefined reference to `tabndx_'

     NXREAD is a routine in VLOG and references correctly TABNDX in
the $APLNOT area

 > /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLNOT/SUBLIB(CHNDAT.o): In function `chndat_':
 > CHNDAT.o(.text+0x5dd): undefined reference to `tabfq_'
 > CHNDAT.o(.text+0x6fb): undefined reference to `tabfq_'
 > CHNDAT.o(.text+0x77d): undefined reference to `tabfq_'
 > CHNDAT.o(.text+0x7f3): undefined reference to `tabfq_'

     CHNDAT is in $APLNOT and references correctly TABFQ in the
$APLNOT area.

     Check your INSTEP2 for $APLNOT and these 2 subroutines.  It seems
odd to me that 3 routines beginning with TAB are all missing.

     cd $LIBR/APLNOT
     ar -t SUBLIB | grep TAB

to see if these routines are present in the library.

 > collect2: ld returned 1 exit status
 > LINK      : Status from /usr/local/bin/g77 is 1
 > LINK      : Link of    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.o
 > LINK      : dies from wimpy compiler
 > LINK      : Dies of unnatural causes.
 > COMLNK    : Link failed!
 > COMLNK    : Deleted    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.o
 > COMLNK    : Deleted    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VLOG.f
 > COMLNK    : Date       Wed Feb 27 18:21:02 EST 2002
 > PP        : Preprocess /home/aipsmgr/AIPS/31DEC02/APL/PGM/NOTST/VPFLG.FOR
 > PP        : into       /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.f
 > FC        : Date       Wed Feb 27 18:21:02 EST 2002
 > FC        : Interpret  FC  \
 > FC        :            /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.f
 > FC        : as         LIST=FALSE PURGE=FALSE
 > FC        : plus       /usr/local/bin/g77 -c -fno-automatic -fno-globals -Wno-globals -malign-double -Wimplicit -Wall -O -fexpensive-optimizations -funroll-loops -fstrength-reduce -frerun-cse-after-loop -fforce-mem -fforce-addr -fcaller-saves \
 > FC        :            /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.f
 > FC        : Compile of /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.f
 > FC        : ends successfully.
 > FC        : Ends successfully
 > 
 > 
 > 
 > LINK      : Date is... Wed Feb 27 18:21:03 EST 2002
 > LINK      : Interpret  LINK \
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o
 > LINK      : as         PURGE=TRUE REPLACE=TRUE SAVE=TRUE STRIP=TRUE
 > LINK      : plus       /usr/local/bin/g77 \
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o \
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLNOT/SUBLIB \ 
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLSUB/SUBLIB \ 
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLLINUX/SUBLIB \ 
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLSUB/SUBLIB \ 
 > LINK      :            /home/aipsmgr/AIPS/31DEC02/LINUX/LIBR/APLLINUX/SUBLIB \ 
 > LINK      :             -s \
 > LINK      :            -o /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.EXE
 > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libg2c.a(open.o): In function `f_open':
 > /usr/local/gcc/gcc-2.95.3/i686-pc-linux-gnu/libf2c/libI77/open.c:213: the use of `tempnam' is dangerous, better use `mkstemp'
 > /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o: In function `fgtab_':
 > /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o(.text+0x1c2e): undefined reference to `tabflg_'
 > /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o(.text+0x1c8d): undefined reference to `tabflg_'
 > collect2: ld returned 1 exit status
 > LINK      : Status from /usr/local/bin/g77 is 1
 > LINK      : Link of    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o
 > LINK      : dies from wimpy compiler
 > LINK      : Dies of unnatural causes.
 > COMLNK    : Link failed!
 > COMLNK    : Deleted    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/VPFLG.o
 > COMLNK    : Deleted    /home/aipsmgr/AIPS/31DEC02/LINUX/PREP/V..
 > 
 > 

Eric Greisen



More information about the Daip mailing list