Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

problems with -fast -mcmodel=medium -shared-intel

alaryme
Beginner
631 Views
Iused Intel Fortran compiler, Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20090318 to compile Fortran 90 codes which contain large arrays to storage elements of matrices.
I also used PGI Fortran and Gfortran to compile the codes and they didn't have problems.
The command and error messages are as below. Can anybody give suggestions? Thank you very much.

Shu
=============
3 Commands I tried:
(1) ifort -c -fast -fpic -mcmodel=medium -shared-intel
(2)ifort -c -fast -mcmodel=medium -shared-intel
(3) ifort -c -fast -fpic
=============
error messages:
/tmp/ipo_ifort4mjmzI.o: In function `MAIN__':

/tmp/ipo_ifort4mjmzI.f:(.text+0x4ba3): undefined reference to `geo2d_d_'

/opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__message_catalog_close':

for_diags_intel.c:(.text+0x17): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

/opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__io_return':

for_diags_intel.c:(.text+0x82a): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_len' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x831): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_buf' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x9ae): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_len' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x9b5): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_buf' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xb10): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xb53): relocation truncated to fit: R_X86_64_PC32 against `tmp_ptr.0'

for_diags_intel.c:(.text+0xbd8): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xc0a): relocation truncated to fit: R_X86_64_PC32 against `tmp_sev.0'

for_diags_intel.c:(.text+0xc1d): relocation truncated to fit: R_X86_64_PC32 against `tmp_ptr.0'

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


0 Kudos
1 Reply
Ron_Green
Moderator
631 Views
Quoting - alaryme
Iused Intel Fortran compiler, Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20090318 to compile Fortran 90 codes which contain large arrays to storage elements of matrices.
I also used PGI Fortran and Gfortran to compile the codes and they didn't have problems.
The command and error messages are as below. Can anybody give suggestions? Thank you very much.

Shu
=============
3 Commands I tried:
(1) ifort -c -fast -fpic -mcmodel=medium -shared-intel
(2)ifort -c -fast -mcmodel=medium -shared-intel
(3) ifort -c -fast -fpic
=============
error messages:
/tmp/ipo_ifort4mjmzI.o: In function `MAIN__':

/tmp/ipo_ifort4mjmzI.f:(.text+0x4ba3): undefined reference to `geo2d_d_'

/opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__message_catalog_close':

for_diags_intel.c:(.text+0x17): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

/opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o): In function `for__io_return':

for_diags_intel.c:(.text+0x82a): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_len' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x831): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_buf' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x9ae): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_len' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0x9b5): relocation truncated to fit: R_X86_64_PC32 against symbol `for__user_iomsg_buf' defined in .bss section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xb10): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xb53): relocation truncated to fit: R_X86_64_PC32 against `tmp_ptr.0'

for_diags_intel.c:(.text+0xbd8): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /opt/intel/Compiler/11.0/083/lib/intel64/libifcore.a(for_diags_intel.o)

for_diags_intel.c:(.text+0xc0a): relocation truncated to fit: R_X86_64_PC32 against `tmp_sev.0'

for_diags_intel.c:(.text+0xc1d): relocation truncated to fit: R_X86_64_PC32 against `tmp_ptr.0'

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




First, get rid of -fast. This option changes from time to time and is really just used for SPEC benchmarking.

Use -O2 -xHOST instead.

The IPO part of -fast may be the culprit here. Try again with the 2 options above instead of -fast.

ron
0 Kudos
Reply