[daip] New Ticket - [!YFR-996950]: AIPS compilation error when increasing channel limit

Jan Wagner do-not-reply at nrao.edu
Wed Jun 1 08:34:33 EDT 2011


New Ticket: AIPS compilation error when increasing channel limit

AIPS: 31DEC11 refreshed from CVS 5 days ago
System: Intel, x86_64 / LNX64
Compilers: ifort 9.1 64-bit, gcc 4.4 64-bit

Problem in FITLD1: when I try to import of a 4-pol (LL,RR,LR,RL) x 4 IF x 8192 spectral channel FITS (DiFX), fitld aborts and complains 131072 channels exceed the 65536 hard-coded limit.

Thus I have attempted to recompile AIPS with ./INC/PUVD.INC default "PARAMETER (MAXCIF=(65536))" updated to a higher value. First tried (65536*16*4) and finally (2*65536). 

INSTEP2 compile always works fine! But INSTEP4 always fails with ifort linker "relocation truncated to fit" warnings and no binary output in the end.

After the first unsuccessful compiles with various increased MAXCIF settings I tried to allow global section >2GB, static section >2GB by adding Intel Fortran "-mcmodel=large -i-dynamic " flags (note: -i-dynamic is the old 9.1 way of saying 10.x ifort's -shared-intel).

However this still results in "relocation truncated to fit".

In all cases these are Fortran programs linked to Fortran libraries, all compiled and linked with ifort. I could try "-fpic" for the shared objects, but INSTEP2&INSTEP4 dont seem to distinguish between shared and program .o files and apply same compile/link flags to all.

Any ideas how to fix? Why is AIPS trying to put so much data into static vars anyway? Why no dynamic alloc for large/huge arrays?

:/cluster/ajps/cvs/31DEC11/LNX64/SYSTEM/MPIFR-VLBI-CLUSTER> ifort -V
Intel(R) Fortran Compiler for Intel(R) EM64T-based applications, Version 9.1    Build 20060519 Package ID: l_fc_c_9.1.033

Typical INSTEP4 result:

PP        : Preprocess /cluster/ajps/cvs/31DEC11/APL/PGM/OOP/FLATN.FOR
PP        : into       /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.f
FC        : Date       Wed Jun  1 13:38:49 CEST 2011
FC        : Interpret  FC  \
FC        :            /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.f
FC        : as         LIST=FALSE PURGE=FALSE
FC        : plus       /opt/intel/fce/9.1.033/bin/ifort -c -axWPT -w90 -w95 -cm -ip -save -align all -mcmodel=large -i-dynamic -O3 \
FC        :            /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.f
FC        : Compile of /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.f
FC        : ends successfully.
LINK      : Date is... Wed Jun  1 13:38:51 CEST 2011
LINK      : Interpret  LINK \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.o
LINK      : as         PURGE=TRUE REPLACE=TRUE SAVE=TRUE STRIP=FALSE
LINK      : plus       /opt/intel/fce/9.1.033/bin/ifort \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.o \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/LIBR/APLOOP/SUBLIB \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/LIBR/YSUB/SUBLIB \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/LIBR/YSS/SUBLIB \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/LIBR/APLNOT/SUBLIB \
LINK      :            /cluster/ajps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB \
LINK      :            -mcmodel=large -i-dynamic -lsvml -Vaxlib -L/usr/local/lib -Xlinker -rpath -Xlinker /cluster/ajps/cvs/31DEC11/LNX64/LIBR/INTELCMP -O3 -static-libgcc -save -align all -axWPT \
LINK      :            -o /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.EXE
/cluster/ajps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDACLS.o): In function `zdacls_':
ZDACLS.c:(.text+0x1f): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_fcbfd' defined in COMMON section in /cluster/ajp
s/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDACLS.c:(.text+0x3d): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_fcberr' defined in COMMON section in /cluster/aj
ps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDACLS.c:(.text+0x73): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_fcbfd' defined in COMMON section in /cluster/ajp
s/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDACLS.c:(.text+0x7a): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_mfcb' defined in COMMON section in /cluster/ajps
/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDACLS.c:(.text+0x9e): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_fcberr' defined in COMMON section in /cluster/aj
ps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDACLS.c:(.text+0xa5): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_mfcb' defined in COMMON section in /cluster/ajps
/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
/cluster/ajps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o): In function `zdchic_':
ZDCHIC.c:(.text+0x2): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_nbpab' defined in COMMON section in /cluster/ajps
/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDCHIC.c:(.text+0xc): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_nbpwd' defined in COMMON section in /cluster/ajps
/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDCHIC.c:(.text+0x19): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_nbpb' defined in COMMON section in /cluster/ajps
/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDCHIC.c:(.text+0x23): relocation truncated to fit: R_X86_64_PC32 against symbol `Z_nbitwd' defined in COMMON section in /cluster/aj
ps/cvs/31DEC11/LNX64/LIBR/APLSUB/SUBLIB(ZDCHIC.o)
ZDCHIC.c:(.text+0x38): additional relocation overflows omitted from the output
LINK      : Status from /opt/intel/fce/9.1.033/bin/ifort is 1
LINK      : Link of    /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.o
LINK      : dies from wimpy compiler
COMLNK    : Link failed!
COMLNK    : Deleted    /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.o
COMLNK    : Deleted    /cluster/ajps/cvs/31DEC11/LNX64/PREP/FLATN.f



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




More information about the Daip mailing list