<?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 Compilation error: ipo error 11018, omitting main file in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177718#M147902</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to compile my code from the command line using a Makefile on Windows 10 (64 bit). I'm getting ipo&amp;nbsp;error 11018. When executing nmake, the compiler seems to be omitting the line corresponding to the generation of the .obj for the main file. I guess that is causing the ipo&amp;nbsp;error. I still don't understand why this is happening. I'm attaching the Makefile and the file with the dependency tree.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Note: I had to change add the extension .txt to the attached files so the forum lets me upload them.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;This is what I get after executing nmake&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;nmake /A

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_kind.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_basic.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads get_params.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads par_pass.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_rwtxt.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_interp.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_fnutil.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_solver.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads bargaining.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_extra.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_distributions.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_value_fns.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_rwhdf5.f90
        ifort -o Mod_LW /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads  Lib_Kind.obj Tools_Fnutil.obj Lib_Basic.obj Lib_Rwhdf5.obj Get_Params.obj Lib_Rwtxt.obj Lib_Interp.obj Par_Pass.obj Lib_Solver.obj Tools_Distributions.obj Bargaining.obj Tools_Value_Fns.obj Tools_Extra.obj Ratio_Steady_2.obj /link /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\HDF_Group\HDF5\1.10.1"\lib  hdf5_fortran.lib /STACK:1024000000,256000000
ipo: error #11018: Cannot open Ratio_Steady_2.obj
LINK : fatal error LNK1181: cannot open input file 'Ratio_Steady_2.obj'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\bin\intel64\ifort.EXE"' : return code '0x49d'
Stop.&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Dec 2017 07:47:55 GMT</pubDate>
    <dc:creator>Christian_B_2</dc:creator>
    <dc:date>2017-12-24T07:47:55Z</dc:date>
    <item>
      <title>Compilation error: ipo error 11018, omitting main file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177718#M147902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to compile my code from the command line using a Makefile on Windows 10 (64 bit). I'm getting ipo&amp;nbsp;error 11018. When executing nmake, the compiler seems to be omitting the line corresponding to the generation of the .obj for the main file. I guess that is causing the ipo&amp;nbsp;error. I still don't understand why this is happening. I'm attaching the Makefile and the file with the dependency tree.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Note: I had to change add the extension .txt to the attached files so the forum lets me upload them.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;This is what I get after executing nmake&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;nmake /A

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_kind.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_basic.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads get_params.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads par_pass.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_rwtxt.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_interp.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_fnutil.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_solver.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads bargaining.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_extra.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_distributions.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads tools_value_fns.f90
        ifort /c /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads lib_rwhdf5.f90
        ifort -o Mod_LW /nologo /O3 /heap-arrays1024 /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\shared /I"C:\Program Files\HDF_Group\HDF5\1.10.1"\include\static /Qopenmp /check:none /libs:dll /threads  Lib_Kind.obj Tools_Fnutil.obj Lib_Basic.obj Lib_Rwhdf5.obj Get_Params.obj Lib_Rwtxt.obj Lib_Interp.obj Par_Pass.obj Lib_Solver.obj Tools_Distributions.obj Bargaining.obj Tools_Value_Fns.obj Tools_Extra.obj Ratio_Steady_2.obj /link /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\HDF_Group\HDF5\1.10.1"\lib  hdf5_fortran.lib /STACK:1024000000,256000000
ipo: error #11018: Cannot open Ratio_Steady_2.obj
LINK : fatal error LNK1181: cannot open input file 'Ratio_Steady_2.obj'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\bin\intel64\ifort.EXE"' : return code '0x49d'
Stop.&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 07:47:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177718#M147902</guid>
      <dc:creator>Christian_B_2</dc:creator>
      <dc:date>2017-12-24T07:47:55Z</dc:date>
    </item>
    <item>
      <title>Your build missed/errored or</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177719#M147903</link>
      <description>&lt;P&gt;Your build missed/errored or failed to include Ratio_Steady_2.f90&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 14:29:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177719#M147903</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-12-24T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Thanks, Jim. But I think I'm</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177720#M147904</link>
      <description>Thanks, Jim. But I think I'm compiling Ratio_Steady_2.f90 in the last line of lw.dep,  or am I missing something? I don't know why nmake is ignoring that line.
I already tested the code in VS and I could build it with no issues, so I don't think that's the problem.</description>
      <pubDate>Sun, 24 Dec 2017 16:59:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177720#M147904</guid>
      <dc:creator>Christian_B_2</dc:creator>
      <dc:date>2017-12-24T16:59:59Z</dc:date>
    </item>
    <item>
      <title>Not sure why myself (in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177721#M147905</link>
      <description>&lt;P&gt;Not sure why myself (in looking at your lw include file).&lt;/P&gt;

&lt;P&gt;I suggest you experiment by moving " Ratio_Steady_2.obj" from the right end of the FOBJ to the left end of FOBJ...&lt;BR /&gt;
	... and moving the last line that builds it to an earlier line.&lt;/P&gt;

&lt;P&gt;Then monitor your build output for unexpected output.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 19:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177721#M147905</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-12-25T19:05:00Z</dc:date>
    </item>
    <item>
      <title>I did what you suggested, but</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177722#M147906</link>
      <description>&lt;P&gt;I did what you suggested, but it had no&amp;nbsp;effect. nmake&amp;nbsp;seems that doesn't care about the order I specify when generating each obj file. It compiles each obj in an order that doesn't conflict with the module calling, though.&lt;/P&gt;

&lt;P&gt;As long as this happens, and nmake&amp;nbsp;is not successful&amp;nbsp;in generating Ratio_Steady_2.obj, the order in FOBJ seems to be irrelevant.&lt;/P&gt;

&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 06:22:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177722#M147906</guid>
      <dc:creator>Christian_B_2</dc:creator>
      <dc:date>2017-12-26T06:22:24Z</dc:date>
    </item>
    <item>
      <title>The "clean" option in your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177723#M147907</link>
      <description>&lt;P&gt;The "clean" option in your makefile deletes .o files, not .obj.&lt;/P&gt;

&lt;P&gt;Can you try fixing that, issuing a clean, and then rebuilding with the edits that Jim had suggested?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 12:41:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177723#M147907</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2017-12-26T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Thanks, Lorri. I just fixed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177724#M147908</link>
      <description>&lt;P&gt;Thanks, Lorri. I just fixed that, and applied the edits Jim suggested, but nmake&amp;nbsp;is still ignoring the line that builds Ratio_Steady_2.obj, no matter where I put it, and no matter the order in FOBJ.&lt;/P&gt;

&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 17:07:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177724#M147908</guid>
      <dc:creator>Christian_B_2</dc:creator>
      <dc:date>2017-12-26T17:07:21Z</dc:date>
    </item>
    <item>
      <title>I do not in any way pretend</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177725#M147909</link>
      <description>&lt;P&gt;I do not in any way pretend to be a make/nmake expert, but where you have the following:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;# Suffix-rules:  Begin by throwing away all old suffix- 
# rules, and then create new ones for compiling  
# *.f90-files. 
.SUFFIXES: 
.SUFFIXES: .f90 .mod

.f90.mod:
	$(FC) /c $(FFLAGS) $&amp;lt;&lt;/PRE&gt;

&lt;P&gt;I am not seeing a rule to go from .f90 to .obj. Since the dependencies list doesn't indicate that Ratio_Steady_2.f90 creates a .mod, nmake has no clue what to do with it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 17:17:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177725#M147909</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2017-12-26T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Thanks, Lionel! That made the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177726#M147910</link>
      <description>&lt;P&gt;Thanks, Steve! That made the trick. I had forgotten the rule from .f90 to .obj.&lt;/P&gt;

&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-ipo-error-11018-omitting-main-file/m-p/1177726#M147910</guid>
      <dc:creator>Christian_B_2</dc:creator>
      <dc:date>2017-12-27T07:38:00Z</dc:date>
    </item>
  </channel>
</rss>

