IOAPI installation problem.

Hi!
I conflicted error message, when I install IOAPI which mpich2.
My version of PGF is 7.1 and Fedora 12 x86_64.
Makeinclude.Linux_x86_64pg_pgcc_nomp is described below.

AR = ar
CC = pgcc
FC = pgf90
M4 = m4
CPP = cpp
LINK = $(CC)

MFLAGS = -fast -Mnosecond_underscore # -Mnoupcase

OMPFLAGS = # -mp
OMPLIBS = # -lmp
COPTFLAGS = -O2
FOPTFLAGS = -O2
FPPFLAGS = -DF90=1
FSFLAGS = -Msave
ARCHFLAGS = -DFLDMN=1 -DAUTO_ARRAYS=1 -DF90=1
PARFLAGS =
LIBDIR = $(SRCDIR)/…/lib
BINDIR = $(SRCDIR)/…/bin
ARCHLIB =

PVMLIBS = -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lpvm3
M4DEFFILE = $(PVM_ROOT)/conf/$(PVM_ARCH).m4

and the error message is below.

/tmp/pgf90PZTc7HX0sc75.s: Assembler messages:
/tmp/pgf90PZTc7HX0sc75.s:3167: Warning: size (-71630290400) out of range, ignored
cd /opt/ioapi/Linux2_x86_64pg_pgcc_nomp; pgf90 m3combo.o -L/opt/ioapi/Linux2_x86_64pg_pgcc_nomp -lioapi -lnetcdf -o m3combo
m3combo.o: In function MAIN_': m3combo.f:(.text+0x91d): undefined reference to .BSS1’
m3combo.f:(.text+0x936): undefined reference to .BSS1' m3combo.f:(.text+0x975): undefined reference to .BSS1’
m3combo.f:(.text+0x98e): undefined reference to .BSS1' m3combo.f:(.text+0x9cd): undefined reference to .BSS1’
m3combo.o:m3combo.f:(.text+0x9e6): more undefined references to .BSS1' follow m3combo.o: In function MAIN_’:
m3combo.f:(.text+0xa52): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1' m3combo.f:(.text+0xaa8): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1’
m3combo.f:(.text+0xaf8): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1' m3combo.f:(.text+0xb26): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1’
m3combo.f:(.text+0xb66): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1' m3combo.f:(.text+0xc7a): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1’
m3combo.f:(.text+0xca0): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1' m3combo.f:(.text+0xe94): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1’
m3combo.f:(.text+0xe9a): relocation truncated to fit: R_X86_64_32 against undefined symbol .BSS1' m3combo.f:(.text+0x106c): relocation truncated to fit: R_X86_64_32S against undefined symbol .BSS1’
m3combo.f:(.text+0x137b): additional relocation overflows omitted from the output
make[1]: *** [m3combo] Error 2
make[1]: Leaving directory `/opt/ioapi/m3tools’
make: *** [nocpl] Error 2

Thank you for reading my message.

Yongjoo

Hi Yongjoo,

I have not built IOAPI myself but the errors shown indicate that the total size of your static data exceeds 2GB. The solution would be to reduce the size of your arrays, or add the flag “-mcmodel=medium” to allow for larger static data. The caveat to using -mcmodel=medium is that you would need to link with dynamic, or -fpic compiled static versions of your libraries

Hope this helps,
Mat