<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic relocation truncated to fit: R_X86_64_PC32 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762814#M18301</link>
    <description>Hi, I'm trying to compile a big code that so far has been running fine.&lt;BR /&gt;&lt;BR /&gt;Now, we have surpassed the 2GB in statically allocated data limit. I knew that would bring us some problems.&lt;BR /&gt;&lt;BR /&gt;I'm compiling with the following debug options (latest iforte 9.0):&lt;BR /&gt;&lt;BR /&gt;-O0 -fpe0 -g -openmp -fpic -i_dynamic -mcmodel=large -auto-scalar -traceback &lt;BR /&gt;&lt;BR /&gt;also with the optimizations (on Xeon EM64T):&lt;BR /&gt;&lt;BR /&gt;-O2 -xP -fPIC -openmp -i_dynamic -mcmodel=large -auto-scalar&lt;BR /&gt;&lt;BR /&gt;Removing the -auto-scalar option makes it compile without problems, but later fails to run with a segmentation fault. Linking errors (with debug on) are the following:&lt;BR /&gt;&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `timestep':&lt;BR /&gt;nextstep.f:653: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `lost_particles':&lt;BR /&gt;nextstep.f:733: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `lista':&lt;BR /&gt;nextstep.f:763: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;nextstep.f:789: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifort3X7vjE.o: In function `sph':&lt;BR /&gt;sph.f:41: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;with optimization flags, the errors differ:&lt;BR /&gt;&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `next_step_':&lt;BR /&gt;nextstep.f:(.text+0x416): relocation truncated to fit: R_X86_64_PC32 against `::___kmpv_zeronext_step(void)'&lt;BR /&gt;nextstep.f:(.text+0xb03): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeronext_step__2'&lt;BR /&gt;nextstep.f:(.text+0xd5c): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeronext_step__5'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `active_particles_':&lt;BR /&gt;nextstep.f:(.text+0x230e): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__8'&lt;BR /&gt;nextstep.f:(.text+0x2496): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__12'&lt;BR /&gt;nextstep.f:(.text+0x2555): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__19'&lt;BR /&gt;nextstep.f:(.text+0x264f): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__14'&lt;BR /&gt;nextstep.f:(.text+0x275a): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__17'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `lista_':&lt;BR /&gt;nextstep.f:(.text+0x4100): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zerolista__29'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `accel_':&lt;BR /&gt;nextstep.f:(.text+0x4b29): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroaccel__34'&lt;BR /&gt;nextstep.f:(.text+0x4cf6): additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;I found out that by including the offending variables (the cause is always statically allocated variables with size given by a parameter, or even scalars) inside a common, it no longer faults at that point. That can also be achieved by adding the automatic option to the declaration or by making them allocatable and allocating them at the beginning of the function.&lt;BR /&gt;&lt;BR /&gt;Any clues? As you can see I've i
ncluded all the options suggested for large arrays in these forums.&lt;BR /&gt;&lt;BR /&gt;With the 9.0 ia64 compiler on an Altix machine compiles and works fine.</description>
    <pubDate>Wed, 15 Mar 2006 03:25:16 GMT</pubDate>
    <dc:creator>mambru37</dc:creator>
    <dc:date>2006-03-15T03:25:16Z</dc:date>
    <item>
      <title>relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762814#M18301</link>
      <description>Hi, I'm trying to compile a big code that so far has been running fine.&lt;BR /&gt;&lt;BR /&gt;Now, we have surpassed the 2GB in statically allocated data limit. I knew that would bring us some problems.&lt;BR /&gt;&lt;BR /&gt;I'm compiling with the following debug options (latest iforte 9.0):&lt;BR /&gt;&lt;BR /&gt;-O0 -fpe0 -g -openmp -fpic -i_dynamic -mcmodel=large -auto-scalar -traceback &lt;BR /&gt;&lt;BR /&gt;also with the optimizations (on Xeon EM64T):&lt;BR /&gt;&lt;BR /&gt;-O2 -xP -fPIC -openmp -i_dynamic -mcmodel=large -auto-scalar&lt;BR /&gt;&lt;BR /&gt;Removing the -auto-scalar option makes it compile without problems, but later fails to run with a segmentation fault. Linking errors (with debug on) are the following:&lt;BR /&gt;&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `timestep':&lt;BR /&gt;nextstep.f:653: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `lost_particles':&lt;BR /&gt;nextstep.f:733: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifortfOKjD2.o: In function `lista':&lt;BR /&gt;nextstep.f:763: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;nextstep.f:789: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;/tmp/ifort3X7vjE.o: In function `sph':&lt;BR /&gt;sph.f:41: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;sph.f:94: additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;with optimization flags, the errors differ:&lt;BR /&gt;&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `next_step_':&lt;BR /&gt;nextstep.f:(.text+0x416): relocation truncated to fit: R_X86_64_PC32 against `::___kmpv_zeronext_step(void)'&lt;BR /&gt;nextstep.f:(.text+0xb03): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeronext_step__2'&lt;BR /&gt;nextstep.f:(.text+0xd5c): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeronext_step__5'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `active_particles_':&lt;BR /&gt;nextstep.f:(.text+0x230e): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__8'&lt;BR /&gt;nextstep.f:(.text+0x2496): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__12'&lt;BR /&gt;nextstep.f:(.text+0x2555): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__19'&lt;BR /&gt;nextstep.f:(.text+0x264f): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__14'&lt;BR /&gt;nextstep.f:(.text+0x275a): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroactive_particles__17'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `lista_':&lt;BR /&gt;nextstep.f:(.text+0x4100): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zerolista__29'&lt;BR /&gt;/tmp/ifort7xOmsU.o: In function `accel_':&lt;BR /&gt;nextstep.f:(.text+0x4b29): relocation truncated to fit: R_X86_64_PC32 against `___kmpv_zeroaccel__34'&lt;BR /&gt;nextstep.f:(.text+0x4cf6): additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;I found out that by including the offending variables (the cause is always statically allocated variables with size given by a parameter, or even scalars) inside a common, it no longer faults at that point. That can also be achieved by adding the automatic option to the declaration or by making them allocatable and allocating them at the beginning of the function.&lt;BR /&gt;&lt;BR /&gt;Any clues? As you can see I've i
ncluded all the options suggested for large arrays in these forums.&lt;BR /&gt;&lt;BR /&gt;With the 9.0 ia64 compiler on an Altix machine compiles and works fine.</description>
      <pubDate>Wed, 15 Mar 2006 03:25:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762814#M18301</guid>
      <dc:creator>mambru37</dc:creator>
      <dc:date>2006-03-15T03:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762815#M18302</link>
      <description>I see that you also reported this to Intel Premier Support, which is what I would have recommended.</description>
      <pubDate>Wed, 15 Mar 2006 22:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762815#M18302</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-03-15T22:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762816#M18303</link>
      <description>Fixed it, the problem was the -fpic switch.&lt;BR /&gt;&lt;BR /&gt;Cheers!</description>
      <pubDate>Fri, 17 Mar 2006 05:56:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762816#M18303</guid>
      <dc:creator>mambru37</dc:creator>
      <dc:date>2006-03-17T05:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762817#M18304</link>
      <description>Hi,&lt;BR /&gt;I have same problem when I compile my code. I have seen in forum of intel, but I didn't resolve my problem.&lt;BR /&gt;The error it gets is:&lt;BR /&gt;relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;additional relocation overflows omitted from the output.&lt;BR /&gt;I used these options, as suggested by forum intel:&lt;BR /&gt;-fPIC -shared-intel -mcmodel=large.&lt;BR /&gt;Can you help me? Have you a solution for my problem?&lt;BR /&gt;Thank you very much&lt;BR /&gt;gelsa</description>
      <pubDate>Thu, 14 Feb 2008 10:05:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762817#M18304</guid>
      <dc:creator>gelsa</dc:creator>
      <dc:date>2008-02-14T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762818#M18305</link>
      <description>I have the same problem on amd64, ifort 10.1. Even with recommended flags given above I'm getting this error message....Previously compiled (pgf90 5.2.4) was working well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;ifort -o csd.x -fpic subseltcc.o csd.o csdsub.o csdvec.o rle.o diis.o linpakd.o diveps.o linalg.o time_LINUX.o utils.o &lt;BR /&gt;csdsub.o: In function `t1sqr_':&lt;BR /&gt;csdsub.f:(.text+0xccbb): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xcd52): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xcdb1): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xd066): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xd06d): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.o: In function `setreg_':&lt;BR /&gt;csdsub.f:(.text+0xdae7): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.o: In function `selt1_':&lt;BR /&gt;csdsub.f:(.text+0xde48): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xdf02): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xdf81): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.o: In function `prt_':&lt;BR /&gt;csdsub.f:(.text+0xe9d1): relocation truncated to fit: R_X86_64_PC32 against `.bss'&lt;BR /&gt;csdsub.f:(.text+0xea07): additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 11:38:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762818#M18305</guid>
      <dc:creator>miro_ilias</dc:creator>
      <dc:date>2008-09-15T11:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762819#M18306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt; The recommended flags to use when you have &amp;gt;2GB of static data are:&lt;/P&gt;
&lt;P&gt;-mcmodel medium -shared-intel&lt;/P&gt;
&lt;P&gt;(-mcmodel large -shared-intel should also work, the only difference is that it also allows your code size to be &amp;gt;2GB, which is pretty rare).&lt;/P&gt;
&lt;P&gt;You should NOT use -fpic at the same time, as the original poster to this thread pointed out.&lt;/P&gt;
&lt;P&gt;I think the confusion arises because libraries that have not themselves been built with -mcmodel medium, (because they do not contain &amp;gt; 2 GB of static data), must instead be built with -fpic so that they use full addressing and can be linked with objects that were built with -mcmodel medium. Otherwise, you get the dreaded "relocation error" from the linker.&lt;/P&gt;
&lt;P&gt;The Intel compiler runtime library is not built with -mcmodel medium. The shared version of the runtime library is built with -fpic, but the static version is not. This is why you need to use the flag -shared-intel when compiling your code with -mcmodel medium.&lt;/P&gt;
&lt;P&gt;Evidently, users are finding the mention of -fpic in the compiler documentation for -mcmodelto be confusing. We'll try to improve that.&lt;/P&gt;
&lt;P&gt;I don't know if there is any fundamental reason why -fpic and -mcmodel medium could not be made to work together. There didn't seem to be a functional need for that, and it hasn't been done, but perhaps it could be looked into.&lt;/P&gt;
&lt;P&gt;Please let us know whether building with -mcmodel medium -shared-intel but without -fpic solves your relocation problem.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2008 23:27:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762819#M18306</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2008-09-15T23:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762820#M18307</link>
      <description>Hi! Thanks for the suggestion.&lt;BR /&gt;I has the same problem, I had to allocate an array with double precision, 5 columns, 25000*300*5 for a 2D output of a simulation.&lt;BR /&gt;This works great both with medium and large syntax also in Fortran77.&lt;BR /&gt;Thanks again and the best regards&lt;BR /&gt;&lt;BR /&gt;Herger&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Dec 2009 13:26:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762820#M18307</guid>
      <dc:creator>herger</dc:creator>
      <dc:date>2009-12-02T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762821#M18308</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi,&lt;BR /&gt;I recently started a post related with this instruction, about HOW exactly use that instruction because inolder versions of the compiler and a linux-based machine it works well. But now, I am working on two Mac OS machines, each one with different versiones of the compilers and I am not able to use -mcmodel.&lt;BR /&gt;For version 11.1.058 the error message is: "ifort: command line warning #10152: option '-mcmodel medium' not supported" whereas for a version 10.5.8 it is worse, the message is: "catastrophic error: **Internal compiler error: internal abort** Please report&lt;BR /&gt;this error along with the circumstances in which it occurred in a Software Problem Report."&lt;BR /&gt;So could someone please tell me how to make the instruction works now?&lt;BR /&gt;Thanx!&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335520"&gt;Martyn Corden (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt; The recommended flags to use when you have &amp;gt;2GB of static data are:&lt;/P&gt;
&lt;P&gt;-mcmodel medium -shared-intel&lt;/P&gt;
&lt;P&gt;(-mcmodel large -shared-intel should also work, the only difference is that it also allows your code size to be &amp;gt;2GB, which is pretty rare).&lt;/P&gt;
&lt;P&gt;You should NOT use -fpic at the same time, as the original poster to this thread pointed out.&lt;/P&gt;
&lt;P&gt;I think the confusion arises because libraries that have not themselves been built with -mcmodel medium, (because they do not contain &amp;gt; 2 GB of static data), must instead be built with -fpic so that they use full addressing and can be linked with objects that were built with -mcmodel medium. Otherwise, you get the dreaded "relocation error" from the linker.&lt;/P&gt;
&lt;P&gt;The Intel compiler runtime library is not built with -mcmodel medium. The shared version of the runtime library is built with -fpic, but the static version is not. This is why you need to use the flag -shared-intel when compiling your code with -mcmodel medium.&lt;/P&gt;
&lt;P&gt;Evidently, users are finding the mention of -fpic in the compiler documentation for -mcmodelto be confusing. We'll try to improve that.&lt;/P&gt;
&lt;P&gt;I don't know if there is any fundamental reason why -fpic and -mcmodel medium could not be made to work together. There didn't seem to be a functional need for that, and it hasn't been done, but perhaps it could be looked into.&lt;/P&gt;
&lt;P&gt;Please let us know whether building with -mcmodel medium -shared-intel but without -fpic solves your relocation problem.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Dec 2009 16:34:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762821#M18308</guid>
      <dc:creator>princess_sophie</dc:creator>
      <dc:date>2009-12-02T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762822#M18309</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/442456"&gt;princess_sophie&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Hi,&lt;BR /&gt;I recently started a post related with this instruction, about HOW exactly use that instruction because inolder versions of the compiler and a linux-based machine it works well. But now, I am working on two Mac OS machines, each one with different versiones of the compilers and I am not able to use -mcmodel.&lt;BR /&gt;For version 11.1.058 the error message is: "ifort: command line warning #10152: option '-mcmodel medium' not supported" whereas for a version 10.5.8 it is worse, the message is: "catastrophic error: **Internal compiler error: internal abort** Please report&lt;BR /&gt;this error along with the circumstances in which it occurred in a Software Problem Report."&lt;BR /&gt;So could someone please tell me how to make the instruction works now?&lt;BR /&gt;Thanx!&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;This option, mcmodel, is only available for Linux.&lt;BR /&gt;&lt;BR /&gt;On Mac OS - if you are using OS X 10.5.x or 10.6.x you will want the latest 11.1 compiler. The compiler support for Mac OS and Xcodes evolve rapidly. &lt;BR /&gt;&lt;BR /&gt;First, find get the latest 11.1 compiler. Next, locate the documentation: Particularly the Release_NotesF.pdf. It is located in /opt/intel/Compiler/11.1/067/Documentation/en_US&lt;BR /&gt;This lists the compatibility for your compiler.&lt;BR /&gt;&lt;BR /&gt;Next, go into: /opt/intel/Compiler/11.1/067/Documentation/en_US/compiler_f/ and open compiler_documentation_f.html&lt;BR /&gt;&lt;BR /&gt;Under here, open the Intel Fortran Compiler User and Reference Guides. Open 'Compiler Options' for full information on the compiler.&lt;BR /&gt;&lt;BR /&gt;For large memory on Mac: You must use -m64 which is the default for the 64bit compiler. &lt;BR /&gt;&lt;BR /&gt;Make sure you have the 64bit compiler: ifort -V&lt;BR /&gt;&lt;BR /&gt;Intel Fortran Intel 64 Compiler Professional for applications running on &lt;STRONG&gt;Intel 64&lt;/STRONG&gt;, Version 11.1 Build 20090827 Package ID: m_cprof_p_11.1.067&lt;BR /&gt;Copyright (C) 1985-2009 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;Note the "Intel 64" string, it must be there.&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Dec 2009 18:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762822#M18309</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2009-12-02T18:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762823#M18310</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've got the dreaded rellocation error. I'm currently compiling with:&lt;BR /&gt;&lt;BR /&gt;-mcmodel medium -shared-intel -assume byterecl -O3 -fast &lt;BR /&gt;&lt;BR /&gt;I'm using ifort 11.1. I get&lt;BR /&gt;&lt;P&gt;/opt/intel/Compiler/11.1/064/lib/intel64/libifport.a(etime.o): In function `dtime_':&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x10d): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp1'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x1bb): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x1e0): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x205): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x226): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x22d): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x24c): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp1'&lt;/P&gt;&lt;P&gt;/opt/intel/Compiler/11.1/064/lib/intel64/libifport.a(etime.o): In function `dtimer8_':&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x2cc): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp1'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x307): relocation truncated to fit: R_X86_64_PC32 against `tarray_tmp0'&lt;/P&gt;&lt;P&gt;/export/users/nbtester/efi2linux_nightly/branch-11_1/20091202_010000/libdev/libifport/portability/etime.c:(.text+0x36f): additional relocation overflows omitted from the output&lt;BR /&gt;&lt;BR /&gt;I'm able to compile working code with gfortran. Any other ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Payton&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 13:55:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762823#M18310</guid>
      <dc:creator>boatmorrow</dc:creator>
      <dc:date>2012-06-05T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762824#M18311</link>
      <description>The reference to "libifport.a" in the error messages leads me to believe that you're actually linking against the static libraries, not the shared.&lt;BR /&gt;&lt;BR /&gt;One of the effects of the "-fast" switch is to link against the static libraries, so perhaps the -shared-intel is being overwritten.&lt;BR /&gt;&lt;BR /&gt;Can you try putting -shared-intel at the *end* of your command line, at least after the -fast?&lt;BR /&gt;&lt;BR /&gt; --Lorri</description>
      <pubDate>Wed, 06 Jun 2012 17:59:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762824#M18311</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2012-06-06T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: relocation truncated to fit: R_X86_64_PC32</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762825#M18312</link>
      <description>&lt;P&gt;Okay moving -shared-intel to the end did not work. However I removed -fast and the code compiled. According to the manual only the -xHOST flag (set during fast) can be overwitten. The answer was to include all the flags -fast includes without the -static. &lt;BR /&gt;&lt;BR /&gt;Thanks for the help,&lt;BR /&gt;&lt;BR /&gt;Payton&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 20:08:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762825#M18312</guid>
      <dc:creator>boatmorrow</dc:creator>
      <dc:date>2012-06-06T20:08:15Z</dc:date>
    </item>
    <item>
      <title>hi, all</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762826#M18313</link>
      <description>hi, all

My Fortran90 code is used to read and write NetCDF data, so I need to add extra netcdf-style  link libs like '-I /disk1/soft/netcdf-3.6.0-x64/include -L /disk1/soft/netcdf-3.6.0-x64/lib -lnetcdf'
And the arrays is as large as 3602*1683*55,
real(kind=4),dimension(3602,1683,55)::vit,viv,ss,tt,pdensity

-bash-3.2$ ifort dens_compute.F90 -I /disk1/soft/netcdf-3.6.0-x64/include -L /disk1/soft/netcdf-3.6.0-x64/lib -lnetcdf
dens_compute.F90(85): (col. 3) remark: LOOP WAS VECTORIZED.
dens_compute.F90(136): (col. 13) remark: LOOP WAS VECTORIZED.
/tmp/ifortIOUw1V.o: In function `MAIN__':
dens_compute.F90:(.text+0x373): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x3be): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x408): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x45e): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x48c): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x4b2): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x50d): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x53b): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x561): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0x8b1): relocation truncated to fit: R_X86_64_32S against `.bss'
dens_compute.F90:(.text+0xbc6): additional relocation overflows omitted from the output
-------
Then I add the suggested flags
-bash-3.2$ ifort -mcmodel medium -shared-intel dens_compute.F90 -I /disk1/soft/netcdf-3.6.0-x64/include -L /disk1/soft/netcdf-3.6.0-x64/lib -ln
dens_compute.F90(85): (col. 3) remark: LOOP WAS VECTORIZED.
dens_compute.F90(136): (col. 13) remark: LOOP WAS VECTORIZED.
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_inquire_dimension_':
netcdf.f90:(.text+0x3af): relocation truncated to fit: R_X86_64_32 against `.bss'
netcdf.f90:(.text+0x3d2): relocation truncated to fit: R_X86_64_32 against `.bss'
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_put_att_one_onebyteint_':
netcdf.f90:(.text+0x6a9): relocation truncated to fit: R_X86_64_PC32 against `.bss'
netcdf.f90:(.text+0x6be): relocation truncated to fit: R_X86_64_32 against `.bss'
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_get_att_one_onebyteint_':
netcdf.f90:(.text+0x81c): relocation truncated to fit: R_X86_64_32 against `.bss'
netcdf.f90:(.text+0x82a): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_put_att_one_twobyteint_':
netcdf.f90:(.text+0x95c): relocation truncated to fit: R_X86_64_PC32 against `.bss'
netcdf.f90:(.text+0x971): relocation truncated to fit: R_X86_64_32 against `.bss'
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_get_att_one_twobyteint_':
netcdf.f90:(.text+0xad4): relocation truncated to fit: R_X86_64_32 against `.bss'
netcdf.f90:(.text+0xae2): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/disk1/soft/netcdf-3.6.0-x64/lib/libnetcdf.a(netcdf.o): In function `netcdf_mp_nf90_put_att_one_fourbyteint_':
netcdf.f90:(.text+0xbd6): additional relocation overflows omitted from the output



My system and ifort is,
Linux ln02 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
/disk1/soft/intel/Compiler/11.0/069/bin/intel64/ifort
netcdf library version 3.6.0-p1

Anyone could help me with it? Many thanks.

Best wishes,
Fuchang</description>
      <pubDate>Thu, 25 Oct 2012 16:00:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762826#M18313</guid>
      <dc:creator>wang__fuchang</dc:creator>
      <dc:date>2012-10-25T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Fuchang,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762827#M18314</link>
      <description>Fuchang,

Please see Dr. Corden's comments in this thread, since they contain the solution to your difficulties. In other words, if your NetCDF library was not compiled with the proper flags to enable large arrays as discussed in this thread, you cannot successfully build your large array application.</description>
      <pubDate>Fri, 26 Oct 2012 14:46:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/relocation-truncated-to-fit-R-X86-64-PC32/m-p/762827#M18314</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-10-26T14:46:16Z</dc:date>
    </item>
  </channel>
</rss>

