[daip] about new task making in AIPS {External}

Eric Greisen egreisen at nrao.edu
Fri Jun 14 11:42:40 EDT 2024


Curious that you have trouble.  The gfortran used in the binary distribution is 6.3.0 but not a special Ubuntu version since we are on RedHat.  I suspect that the issue is the difference in OS Ubuntu vs RedHat Linux.  I see two options for you:


  1.
You could send me your code and I could compile it here and make the binary available to you via anonymous ftp.  I have done that for folks before.  The problem with this arises if you need to test and redo the program which is a normal thing to need.
  2.
The alternative is to turn your aips installation into a locally compiled version.  To do that
  cd $AIPS_ROOT
  source LOGIN.SH
  rm $SYSLOCAL/RSYNC.ME
  edit $SYSLOCAL/FDEFAULT.SH and LDOPTS.SH to specify your gfortran compiler not the NRAO mess that is      there now
  cd $TST/$ARCH
  mv LIBR LIBRold

              mv LOAD LOADold

  1.
  mkdir LIBR LOAD
  cd $TST/$ARCH/INSTALL
  rm *.LOG *.LIS
  INSTEP2
  INSTEP4   - to relink all tasks with your libraries
  2.
I know that compiling locally on Ubuntu works fine - I have an ubuntu laptop and tested this.  The ubuntu load modules did not work on RedHat.  install.pl is another way to redo the installation  but you would probably need to do much of the above anyway.

Eric Greisen


________________________________
From: Makoto Miyoshi <makoto.miyoshi at nao.ac.jp>
Sent: Friday, June 14, 2024 12:26 AM
To: Eric Greisen <egreisen at nrao.edu>
Cc: daip <daip at nrao.edu>
Subject: Re: [daip] about new task making in AIPS {External}

Dear Eric Greisen,

Thank you for your reply.

I would be very happy to be informed about the problems.

Thanks,

M. Miyoshi

*********
I use Linux PCs, namely LNX64.

The installed Fortran and CC were examined and found to be as follows:
(The parts of the text that are garbled in places are in Kanji code. Sorry.)

ubuntu at ubuntu-lm:/home/aips19$ ls -ltr /usr/local/compilers/gcc-6/bin/gfortran
lrwxrwxrwx 1 root root 12  7譛�  1  2019 /usr/local/compilers/gcc-6/bin/gfortran -> /usr/bin/f77


ubuntu at ubuntu-lm:/usr/bin$ f77 --version
GNU Fortran (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


ubuntu at ubuntu-lm:/usr/bin$ gfortran --version
GNU Fortran (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


ubuntu at ubuntu-lm:/usr/bin$ f2c --version
f2c (Fortran to C Translator) version 20100827.


ubuntu at ubuntu-lm:/usr/bin$ dpkg -s f2c | grep Version
Version: 20100827-3


ubuntu at ubuntu-lm:/usr/bin$ gcc --version
gcc (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



*************

Note that when I try the procedure for creating a new task, I get the following error message.


ubuntu at ubuntu-lm:/home/aips19$ source LOGIN.SH

ubuntu at ubuntu-lm:/home/aips19$ $CDTST
AIPS_VERSION=/home/aips19/31DEC19

ubuntu at ubuntu-lm:/home/aips19$ cp $APGNOT/CANDY.FOR CTST.FOR

ubuntu at ubuntu-lm:/home/aips19$ ls -ltr CTST.FOR
-rw-r--r-- 1 ubuntu ubuntu 27753  6譛� 14 14:00 CTST.FOR

ubuntu at ubuntu-lm:/home/aips19$ COMLNK CTST.FOR options
COMLNK    : Date       2024蟷エ  6譛� 14譌・ 驥第屆譌・ 14:01:08 JST
PP        : Preprocess /home/aips19/CTST.FOR
PP        : into       /home/aips19/CTST.f
TEST VERSION OF PP
FC        : Date       2024蟷エ  6譛� 14譌・ 驥第屆譌・ 14:01:09 JST
FC        : Interpret  FC  \
FC        :            /home/aips19/CTST.f
FC        : as         LIST=FALSE PURGE=FALSE
FC        : plus       /usr/local/compilers/gcc-6/bin/gfortran -c -fno-automatic -Wunused -Wuninitialized -Wmaybe-uninitialized -finit-local-zero -m64 -fimplicit-none -O2 \
FC        :            /home/aips19/CTST.f
/home/aips19/CTST.f:215:4:

  999  STOP
    1
Warning: Label 999 at (1) defined but not used
FC        : Compile of /home/aips19/CTST.f
FC        : ends successfully.
FC        : Ends successfully
LINK      : Directory  /home/aips19 not defined
LINK      : in         /home/aips19/31DEC19/LNX64/SYSTEM/NAOJ/LIBR.DAT
LINK      : Provide    '.OPT' file!
LINK      : Link of    /home/aips19/CTST.o
LINK      : dies from inadequate /home/aips19/31DEC19/LNX64/SYSTEM/NAOJ/LIBR.DAT.
LINK      : Dies of unnatural causes.
COMLNK    : Link failed!
COMLNK    : Deleted    /home/aips19/CTST.o
COMLNK    : Deleted    /home/aips19/CTST.f
COMLNK    : Date       2024蟷エ  6譛� 14譌・ 驥第屆譌・ 14:01:09 JST
SEARCH    : No valid   options(.FOR,.f,.C,.c,.S,.s,.o)
SEARCH    : found in   /home/aips19/...
COMLNK    : Dies of unnatural causes











________________________________
差出人: Eric Greisen <egreisen at nrao.edu>
送信日時: 2024年6月12日 4:11
宛先: Makoto Miyoshi <makoto.miyoshi at nao.ac.jp>
CC: daip <daip at nrao.edu>
件名: Re: [daip] about new task making in AIPS {External}

The problem is a mismatch between the compilers used to make the binary installation and the compiler that you are trying to use.  I might be able to help more if you told me the architecture (LNX64, MACARM, MACINT ??) and the type and version of your compiler.

Eric Greisen
________________________________
From: Daip <daip-bounces at listmgr.nrao.edu> on behalf of Makoto Miyoshi via Daip <daip at listmgr.nrao.edu>
Sent: Monday, June 10, 2024 9:23 PM
To: daip <daip at nrao.edu>
Subject: [daip] about new task making in AIPS {External}

Dear AIPS experts,

I am sorry to bother you, but one point I would like to ask you about is when creating a new TASK in AIPS.

When I try to compile a new task, I get an error message saying that the library needs to be recompiled.

My AIPS is a binary installation. Is it impossible to create a new task in a binary installation version of AIPS?

Yours sincerely,

Makoto, Miyoshi
NAOJ, Mitaka, Tokyo, Japan





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listmgr.nrao.edu/pipermail/daip/attachments/20240614/ee890a35/attachment-0001.html>


More information about the Daip mailing list