[daip] [aips at astro.uni.torun.pl: swan/LINUX 20090727.042001 update errors for 31DEC09]
Eric Greisen
egreisen at nrao.edu
Mon Jul 27 10:53:43 EDT 2009
Andrzej Marecki wrote:
> Dear Eric,
>
> There is a problem with compilation/consolidation of the new ATLOD on one of
> our Linux engines. The messages is:
>
> /aips/31DEC09/LINUX/PREP/ATLOD.o: In function `udate_':
> ATLOD.f:(.text+0x199e): undefined reference to `gmtime_'
>
> (See also the full report below.)
>
> Do you think there is merely something (a library?) missing in the system
> and so, that component should be installed?
>
> FYI, here are the details about the operating system and the compiler.
>
> aips at swan ~ $ uname -a
> Linux swan 2.6.29-gentoo-r5 #1 SMP Fri Jun 5 09:55:35 CEST 2009 i686 AMD
> Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
>
> aips at swan ~ $ gfortran -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with:
> /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr
> --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
> --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
> --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
> --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
> --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
> --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4
> --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
> --enable-nls --without-included-gettext --with-system-zlib
> --disable-checking --disable-werror --enable-secureplt --disable-multilib
> --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686
> --enable-languages=c,c++,treelang,fortran --enable-shared
> --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
> Thread model: posix
> gcc version 4.1.2 (Gentoo 4.1.2 p1.3)
>
> --
> Andrzej
>
> P.S. Apart from that general problem with consolidation of the ATLOD binary,
> there are numerous warnings issued by the compiler.
Yes - the code is very non-standard. It is a submitted program to avoid
much copying and local compilation all over.
gmtime is a standard C library routine used by AIPS' Z routine ZGTIME.C
called by FITTP and FITAB. All of our machines link edit ATLOD with no
complaint - although I am unable to confirm its correctness. Are you
developing your own AIPS programs locally? If not, then you should be
loading the binary installation. On Intel chips the Intel-compiler load
modules run as much as 40% faster than gnu compiled ones.
I think that it is a bad idea to call gmtime directly from Fortran and
will replace the functionality in ATLOD.
Eric Greisen
More information about the Daip
mailing list