<?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 Aborted (code 1) in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784027#M29161</link>
    <description>Thanks a lot Steve!</description>
    <pubDate>Mon, 25 Jul 2011 15:29:53 GMT</pubDate>
    <dc:creator>sivatt</dc:creator>
    <dc:date>2011-07-25T15:29:53Z</dc:date>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784023#M29157</link>
      <description>Hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm new to Fortran. I kept getting error "Compilation Aborted (code 1)". My code is as follows. Can anyone give me some suggestions on where I did it wrong? Thanks a lot!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Siva&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;program l1l2&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;implicit none&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;integer, parameter :: n = 10, p = 20, q = 4, s = 15, iter = 10&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real, dimension(:,:), allocatable :: estb&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real :: x(n, p), y(n, s), xx(n*p), yy(n*s)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;call rand_gen(xx)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;x = reshape(xx, (/n, p/))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;call rand_gen(yy)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;y = reshape(yy, (/n, s/))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;estb = group_lasso(x, y, q, iter)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;contains&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;function group_lasso(x, y, q, iter) result(b)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;include 'link_fnl_static.h'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;use imsl_libraries&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;use rand_gen_int&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;implicit none&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real, intent(in), dimension(:,:) :: x, y&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;integer, intent(in) :: iter, q&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;integer :: n, p, s, i, j&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real, dimension(:,:), allocatable :: u, v, ystar, bstar, b&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real, allocatable :: cross(:), tmp(:), d(:)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;real :: lambda&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;n = size(x, 1)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;p = size(x, 2)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;s = size(y, 2)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;bstar = 0.0&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;call lsvrr(y, ipath = 11, s = d, u = u, v = v)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ystar = matmul(u(:, 1:q), diag(d(1:q)))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;do i = 1, iter&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  do j = 1, p&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    cross = matmul(x(:, j), ystar - matmul(x(:, (/ 1:(j-1), (j+1):p /)), bstar((/ 1:(j-1), (j+1):p /), :)))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    tmp(:) = max(0.0, 1-lambda/sqrt(sum(bstar(j, :)**2)))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;    bstar(j, :) = tmp*cross&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  end do&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end do&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;b = matmul(bstar, transpose(v(:, 1:q)))&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end function&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end program&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jul 2011 13:56:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784023#M29157</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784024#M29158</link>
      <description>I don't get any error when compiling this source with the current compiler (12.0.4), but you may be using options I am not. Are you building this from Visual Studio? If you see no other errors, open the build log (buildlog.htm in your Debug or Release folder) and see if it says something like "Internal Compiler Error".&lt;BR /&gt;&lt;BR /&gt;Please tell us the exact compiler version you are using and which compiler options/switches you use to compile. If you are using Visual Studio, attach the buildlog.htm to a reply here.&lt;BR /&gt;&lt;BR /&gt;One curious thing I noticed while testing this - the lines:&lt;BR /&gt;&lt;BR /&gt;include 'link_fnl_static.h'&lt;BR /&gt;!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'&lt;BR /&gt;&lt;BR /&gt;have no effect where they are. This surprises me. Move them to after the PROGRAM statement and they will work there. This should have no effect on the error.</description>
      <pubDate>Mon, 25 Jul 2011 14:19:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784024#M29158</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-07-25T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784025#M29159</link>
      <description>Thanks a lot Steve for your quick response. Yes in the log it says:&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt; &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;Compiling with Intel Visual Fortran 11.1.072 [Intel 64]...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ifort /nologo /debug:full /Od /gen-interfaces /warn:interfaces /module:"x64\Debug\" /object:"x64\Debug\" /traceback /check:bounds /libs:static /threads /dbglibs /c /Qvc9 /Qlocation,link,"d:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64" "D:\Fortran\Projects\MEG Inverse\L1L2\Source1.f90"&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;fortcom: Fatal: There has been an internal compiler error (C0000094).&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;compilation aborted for D:\Fortran\Projects\MEG Inverse\L1L2\Source1.f90 (code 1)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;L1L2 - 1 error(s), 0 warning(s)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm using version 11.1.072 with 64-bit compiler. I have moved lines&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #515357; font-family: Arial, sans-serif; font-size: 12px; line-height: 15px;"&gt;include 'link_fnl_static.h'&lt;BR style="font-family: arial, sans-serif; padding: 0px; margin: 0px;" /&gt;!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #515357; font-family: Arial, sans-serif; font-size: 12px; line-height: 15px;"&gt;upto the program statement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #515357; font-family: Arial, sans-serif; font-size: 12px; line-height: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #515357; font-family: Arial, sans-serif; font-size: 12px; line-height: 15px;"&gt;Thanks once again!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:06:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784025#M29159</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T15:06:13Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784026#M29160</link>
      <description>Thanks. I can reproduce the problem in 11.1, but it is fixed in 12.0. Unfortunately, we don't yet have version 12 with IMSL, but we should soon. I will see if I can find a workaround for you.&lt;BR /&gt;&lt;BR /&gt;Also, move the line:&lt;BR /&gt;&lt;BR /&gt;USE RAND_GEN_INT&lt;BR /&gt;&lt;BR /&gt;to the main program (just before IMPLICIT NONE) as you call RAND_GEN from there and not from the subroutine.</description>
      <pubDate>Mon, 25 Jul 2011 15:24:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784026#M29160</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-07-25T15:24:06Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784027#M29161</link>
      <description>Thanks a lot Steve!</description>
      <pubDate>Mon, 25 Jul 2011 15:29:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784027#M29161</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784028#M29162</link>
      <description>Ok, here's a workaround for the compiler bug.&lt;BR /&gt;&lt;BR /&gt;Replace:&lt;BR /&gt;&lt;BR /&gt;use imsl_libraries&lt;BR /&gt;&lt;BR /&gt;with:&lt;BR /&gt;&lt;BR /&gt;use lsvrr_int&lt;BR /&gt;use diag_int&lt;BR /&gt;&lt;BR /&gt;This builds. However, when run it gets errors from IMSL which, I think, are because you have not allocated U or V.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[plain]*** TERMINAL ERROR 3 from L2VRR.  The leading dimension of U must be greater
***          than zero.  LDU = 0 is given.
    Here is a traceback of subprogram calls in reverse order:
    Routine name                    Error type  Error code
    ------------                    ----------  ----------
    L2VRR                                5           3    (Called internally)
    LSVRR                                0           0
    USER                                 0           0

*** TERMINAL ERROR 4 from L2VRR.  The leading dimension of V must be greater
***          than zero.  LDV = 0 is given.
    Here is a traceback of subprogram calls in reverse order:
    Routine name                    Error type  Error code
    ------------                    ----------  ----------
    L2VRR                                5           4    (Called internally)
    LSVRR                                0           0
    USER                                 0           0[/plain]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:34:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784028#M29162</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-07-25T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784029#M29163</link>
      <description>Thanks a lot Steve. Now there raises another problem. "rc.exe not found". I searched previous posts and I made sure the rc.exe file is in folderC:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;And in tools-options-intel visual fortran-compilers-executables I have:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;$(IFortInstallDir)bin\Intel64&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(CommonProgramFiles)\Intel\Shared Files\Ia32\Bin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(VSInstallDir)Common7\ide&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(VCInstallDir)bin\amd64&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(VCInstallDir)bin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(VSInstallDir)Common7\Tools&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(VSInstallDir)Common7\Tools\bin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(FrameworkDir)$(FrameworkVersion)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(WindowsSdkDir)bin&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$(PATH)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any more suggestions?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:57:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784029#M29163</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784030#M29164</link>
      <description>The folder you found rc.exe in is for 64-bit builds only. rc.exe should also be in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin</description>
      <pubDate>Mon, 25 Jul 2011 16:11:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784030#M29164</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-07-25T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784031#M29165</link>
      <description>Yes. I have rc.exe in that folder too.</description>
      <pubDate>Mon, 25 Jul 2011 16:16:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784031#M29165</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T16:16:14Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784032#M29166</link>
      <description>Add that path to the list for executable files. I have seen some customers report similar problems but I don't know what causes it.</description>
      <pubDate>Mon, 25 Jul 2011 17:16:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784032#M29166</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-07-25T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Compilation Aborted (code 1)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784033#M29167</link>
      <description>Thanks a lot Steve. The problem is solved!&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Siva&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jul 2011 17:39:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-Aborted-code-1/m-p/784033#M29167</guid>
      <dc:creator>sivatt</dc:creator>
      <dc:date>2011-07-25T17:39:10Z</dc:date>
    </item>
  </channel>
</rss>

