[MITgcm-support] Problem building adjoint

Constantinos Evangelinos ce107 at ocean.mit.edu
Tue Jan 26 10:43:29 EST 2010


On Monday 25 January 2010 09:15:03 pm Santha Akella wrote:
> Dear MITgcm Users,
> 
> I am trying to build my adjoint model on NASA-*Pleiades* , everything seems
> to go well, but in the end of building, I get the following error message.
> Please Help! I am attaching my Makefile, SIZE.h and tamc.h files. Thank
>  you, Santha
> -------r_stats.o  ad_taf_output.o -L/nasa/sgi/mpt/1.23try08/lib64 -lmpi
> -L/nasa/netcdf/3.6.0/intel/lib -lnetcdf
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for_waitid':
> for_aio.c:(.text+0x13a8): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for_asynchronous':
> for_aio.c:(.text+0x2cd7): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for__aio_release_lun':
> for_aio.c:(.text+0x3633): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> for_aio.c:(.text+0x36f7): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> for_aio.c:(.text+0x3712): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for__aio_acquire_lun':
> for_aio.c:(.text+0x3c27): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> for_aio.c:(.text+0x3c8f): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> for_aio.c:(.text+0x3dd9): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> for_aio.c:(.text+0x40c0): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for__aio_acquire_lun_fname':
> for_aio.c:(.text+0x4369): relocation truncated to fit: R_X86_64_32S against
> symbol `for__aio_lub_table' defined in COMMON section in
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o)
> /nasa/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_aio.o): In
> function `for__aio_error_handling':
> for_aio.c:(.text+0x4b4b): additional relocation overflows omitted from the
> output
> make: *** [mitgcmuv_ad] Error 1
> -------------------------
> 
> -----------------------------------------------------

This error denotes mixing of small and medium memory model object files. Even 
if Pleides had more memory per node it would still appear. 

The solution is either:
a) Stick to less than 2GB of RAM per process and make sure that you are only 
using small memory model object code (no -mcmodel=medium flags for compiling 
and no libraries created with that flag).
b) If you plan to use more than 2GB of RAM per process compile everything with 
-mcmodel=medium and make sure all libraries have also been compiled with -
mcmodel=medium or -fPIC.
c) Or compile everything with -fPIC and make sure you are not linking any 
static libraries compiled without -fPIC.

Constantinos
-- 
Dr. Constantinos Evangelinos
Department of Earth, Atmospheric and Planetary Sciences
Massachusetts Institute of Technology




More information about the MITgcm-support mailing list