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

Eric Greisen egreisen at nrao.edu
Fri Jun 21 12:06:47 EDT 2024


Your FUDGI.OPT file does not include another area needed ($APGNOT) You should do
LIBS $APGNOT DEBUG > FUDGI.OPT

CLPLT comes from $YPGNOT and so needs
LIBS $YPGNOT DEBUG > CLPLT.OPT

Eric Greisen
________________________________
From: Makoto Miyoshi <makoto.miyoshi at nao.ac.jp>
Sent: Friday, June 21, 2024 7:18 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 for your message about my situation.

 After a binary installation of 31DEC24, new task production was possible.

However, of the three skeletons tried as tests, FUDGY (FUDGI as my task name) failed with an error message about linking.

I also copied the CLPLT and tried to create a new task, but the same error message about linking occurred.
Is this because another library is needed? Or is it because the linking environment is different?

The error message is as follows.

Kind regards.

Miyoshi

P.S.  I found an incorrect statement in the HELP about new task:
       cp $APLPGM/FUDGE.FOR "new".FOR
=>  cp $APGNOT/FUDGE.FOR "new".FOR

---
ubuntu at ubuntu-lm:/home/aips24$ COMLNK FUDGI.FOR FUDGI.OPT
COMLNK    : Date       2024年  6月 21日 金曜日 20:30:24 JST
AIPP      : Preprocess /home/aips24/FUDGI.FOR
AIPP      : into       /home/aips24/FUDGI.f
AIFC        : Date       2024年  6月 21日 金曜日 20:30:24 JST
AIFC        : Interpret  AIFC  \
AIFC        :            /home/aips24/FUDGI.f
AIFC        : as         LIST=FALSE PURGE=FALSE
AIFC        : plus       /usr/bin/gfortran -c -fno-automatic -Wunused -Wuninitialized -Wmaybe-uninitialized -finit-local-zero -m64 -fimplicit-none -O2 \
AIFC        :            /home/aips24/FUDGI.f
/home/aips24/FUDGI.f:242:4:

  999  STOP
    1
Warning: Label 999 at (1) defined but not used
/home/aips24/FUDGI.f:1915:4:

  999  RETURN
    1
Warning: Label 999 at (1) defined but not used
/home/aips24/FUDGI.f:1654:4:

  999  RETURN
    1
Warning: Label 999 at (1) defined but not used
AIFC        : Compile of /home/aips24/FUDGI.f   ( copied from FUDGY)
AIFC        : ends successfully.
AIFC        : Ends successfully
AILINK      : Date is... 2024年  6月 21日 金曜日 20:30:24 JST
AILINK      : Interpret  LINK FUDGI.OPT \
AILINK      :            /home/aips24/FUDGI.o
AILINK      : as         PURGE=TRUE REPLACE=TRUE SAVE=TRUE STRIP=FALSE
AILINK      : plus       /usr/bin/gfortran \
AILINK      :            /home/aips24/FUDGI.o \
AILINK      :            /home/aips24/31DEC24/LNX64/LIBR/APLSUB/SUBLIB \
AILINK      :            -lbsd \
AILINK      :            -o /home/aips24/FUDGI.EXE

*****
SORRY,  the error message includes JAPANESE !!
EX. 1
FUDGI.f:(.text+0x13bc): `uvget_' に対する定義されていない参照です
                                                  ---Undefined reference to `uvget_'.-----
EX. 2
/home/aips24/FUDGI.o: 関数 `fughis_' 内:
                                                – function`fughis_ inside
******

/home/aips24/FUDGI.o: 関数 `fughis_' 内:
FUDGI.f:(.text+0x152): `coptab_' に対する定義されていない参照です
/home/aips24/FUDGI.o: 関数 `senduv_' 内:
FUDGI.f:(.text+0x9d3): `uvget_' に対する定義されていない参照です
FUDGI.f:(.text+0xd99): `uvget_' に対する定義されていない参照です
FUDGI.f:(.text+0x13bc): `uvget_' に対する定義されていない参照です
/home/aips24/FUDGI.o: 関数 `fudgin_' 内:
FUDGI.f:(.text+0x14ef): `selini_' に対する定義されていない参照です
FUDGI.f:(.text+0x1f90): `fqmatc_' に対する定義されていない参照です
FUDGI.f:(.text+0x2016): `uvget_' に対する定義されていない参照です
FUDGI.f:(.text+0x2211): `uvget_' に対する定義されていない参照です
collect2: error: ld returned 1 exit status
AILINK      : Status from /usr/bin/gfortran is 1
AILINK      : Link of    /home/aips24/FUDGI.o
AILINK      : dies from wimpy compiler
AILINK      : Dies of unnatural causes.
COMLNK    : Link failed!
COMLNK    : Deleted    /home/aips24/FUDGI.o
COMLNK    : Deleted    /home/aips24/FUDGI.f
COMLNK    : Dies of unnatural causes


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

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/20240621/22f6c8f1/attachment-0001.html>


More information about the Daip mailing list