Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29359 Discussions

for_diags_intel.c:(.text+0x118f): additional relocation overflows omitted from the output

thaduong
Beginner
7,351 Views
Dear all experts,

I would like to compile a (quite large) program for molecular dynamics simulations with ifort.

The installation of the package l_cprof_p_11.1.059_intel64.tgz on my "Linux 2.6.31-16-generic x86_64" machine (with ubuntu 9.10) is OK (thank to M. Ron Green installation guide).

The compilations of the differents subroutines with the option "ifort -O3 -zero -save -pc64 -cm -w90 -w95 -mcmodel medium -shared-intel -DLinux -c *.f" are OK.

But at the end of the compilation (the linking process, I guess: "ifort -o toto.x all the files.o -lf2c -lm"), I have these error messages:

/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__io_return':
for_diags_intel.c:(.text+0x9cf): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa91): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa9a): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xaeb): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__issue_diagnostic':
for_diags_intel.c:(.text+0xc0f): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xc74): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x1015): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x101e): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10a6): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10af): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x118f): additional relocation overflows omitted from the output

I have not found any clue on the intel forum/documentation web sites about these errors.
Could anyone help me please ?

Thank you in advance,
Tap
0 Kudos
1 Solution
Ron_Green
Moderator
7,351 Views
Quoting - thaduong
Dear all experts,

I would like to compile a (quite large) program for molecular dynamics simulations with ifort.

The installation of the package l_cprof_p_11.1.059_intel64.tgz on my "Linux 2.6.31-16-generic x86_64" machine (with ubuntu 9.10) is OK (thank to M. Ron Green installation guide).

The compilations of the differents subroutines with the option "ifort -O3 -zero -save -pc64 -cm -w90 -w95 -mcmodel medium -shared-intel -DLinux -c *.f" are OK.

But at the end of the compilation (the linking process, I guess: "ifort -o toto.x all the files.o -lf2c -lm"), I have these error messages:

/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__io_return':
for_diags_intel.c:(.text+0x9cf): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa91): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa9a): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xaeb): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__issue_diagnostic':
for_diags_intel.c:(.text+0xc0f): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xc74): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x1015): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x101e): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10a6): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10af): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x118f): additional relocation overflows omitted from the output

I have not found any clue on the intel forum/documentation web sites about these errors.
Could anyone help me please ?

Thank you in advance,
Tap

I believe you need -mcmodel=medium -shared-intel on the final link also.

If this doesn't work, move to mcmodel=large

ron

View solution in original post

0 Kudos
2 Replies
Ron_Green
Moderator
7,352 Views
Quoting - thaduong
Dear all experts,

I would like to compile a (quite large) program for molecular dynamics simulations with ifort.

The installation of the package l_cprof_p_11.1.059_intel64.tgz on my "Linux 2.6.31-16-generic x86_64" machine (with ubuntu 9.10) is OK (thank to M. Ron Green installation guide).

The compilations of the differents subroutines with the option "ifort -O3 -zero -save -pc64 -cm -w90 -w95 -mcmodel medium -shared-intel -DLinux -c *.f" are OK.

But at the end of the compilation (the linking process, I guess: "ifort -o toto.x all the files.o -lf2c -lm"), I have these error messages:

/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__io_return':
for_diags_intel.c:(.text+0x9cf): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa91): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xa9a): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xaeb): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
/opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__issue_diagnostic':
for_diags_intel.c:(.text+0xc0f): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0xc74): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x1015): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x101e): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10a6): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x10af): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.1/059/lib/intel64/libifcore.a(for_diags_intel.o)
for_diags_intel.c:(.text+0x118f): additional relocation overflows omitted from the output

I have not found any clue on the intel forum/documentation web sites about these errors.
Could anyone help me please ?

Thank you in advance,
Tap

I believe you need -mcmodel=medium -shared-intel on the final link also.

If this doesn't work, move to mcmodel=large

ron
0 Kudos
thaduong
Beginner
7,351 Views

I believe you need -mcmodel=medium -shared-intel on the final link also.

If this doesn't work, move to mcmodel=large

ron

Dear Ron,

Thank you very much. It works perfectly now (even with the medium option).

Best regards,

Tap
0 Kudos
Reply