Compiling error

Hi All,

I am new to this forum. I was trying to compile a program, it gave me the following error,

/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x2): In function __hpf_myprocnum': : relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu /usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x9): In function __hpf_ncpus’:
: relocation truncated to fit: R_X86_64_PC32 __hpf_tcpus
/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x10): In function __hpf_getioproc': : relocation truncated to fit: R_X86_64_PC32 __hpf_ioproc /usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x17): In function __hpf_is_ioproc’:
: relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu
/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x1d): In function __hpf_is_ioproc': : relocation truncated to fit: R_X86_64_PC32 __hpf_ioproc /usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x41): In function __hpf_abort’:
: relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu
/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0xa5): In function __hpf_abortp': : relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu /usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x5c0): In function __hpf_istat’:
: relocation truncated to fit: R_X86_64_PC32 __hpf_quiet
/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x5e6): In function __hpf_istat': : relocation truncated to fit: R_X86_64_PC32 __hpf_quiet /usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x60c): In function __hpf_istat’:
: relocation truncated to fit: R_X86_64_PC32 __hpf_quiet
/usr/nas/x86_64/pgi-cdk6.1-1/linux86-64/6.1/lib/libpgf90.a(initpar.o)(.text+0x632): In function __hpf_istat': : additional relocation overflows omitted from the output make[1]: *** [model] Error 2 make[1]: Leaving directory /home/dataminer/camx4.31/src.v4.31’
make: *** [pg_linux] Error 2

I also tried compliling with pgi-cdk7.1 but it gave me a similar error.

Thanks

Neelesh

Hi,

What is the link command? You are linking with /6.1/lib libraries which is incorect if you intend to link with -fPIC.

If you have an -L/usr/nas/x86_64/pgi-cdk6.2-1/linux86-64/6.2/lib in your link command, remove it.

Hongyon

I am new to this, I used the source command “source /usr/nas/x86_64/pgi-cdk6.1-1/00setup” and then just followed the compilation instructions for my model.

I am not sure if I have the -L/usr/nas/x86_64/pgi-cdk6.2-1/linux86-64/6.2/lib file. Where should I look for it?

Thanks
Neelesh

Hi,

00setup was not part of our CDK distribution. Perhaps somebody, your sys. admin put it there.

Instead of posting just an error, can you put the whole command that gives errors? The whole output? If it is too large, you can send to trs@pgroup.com.

Hongyon

I have used the “make” command earlier and it goes like
make pg_linux DOMAIN=tceq.dfwexp.20lay

I have used this command earlier to complie the same program on my other HPC account and it worked fine (this was almost 6-7 months back). But now I got a new account on HPC and the model is not compiling.

I also tried removing the “00” from the “00setup” but it doesnot work it says cannot find the file.

I will try to put all the output along with the error in the file and mail it.

Thanks
Neelesh