<?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 Re: aCC: Not enough memory is available to finish the compilation. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406475#M682011</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;Its not a single source file. Package of source code of smaller units. &lt;BR /&gt;&lt;BR /&gt;Downloaded the latest version of aCC from HP site and uograded acc version.(aCC: HP ANSI C++ B3910B A.03.85)&lt;BR /&gt;&lt;BR /&gt;As said maxssize is reduced to 8192 Kbytes.&lt;BR /&gt;&lt;BR /&gt;Yes there templates used in the code. &lt;BR /&gt;&lt;BR /&gt;Written a smaller stub with template which is throwimg a error when compiled. Please find it below.&lt;BR /&gt;==========================================================================&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;namespace Common&lt;BR /&gt;{&lt;BR /&gt;        template&lt;BOOL&gt; struct CompileTimeChecker&lt;BR /&gt;        {&lt;BR /&gt;                public: typedef char DUMB;&lt;BR /&gt;        };&lt;BR /&gt;        template &amp;lt;&amp;gt; struct CompileTimeChecker &amp;lt; false &amp;gt; {}; } #define STATIC_ASSERT(expr) Common::CompileTimeChecker&amp;lt;(expr)&amp;gt;::DUMB COMPILE_TIME_CHECKER_DUMB; int main() {&lt;BR /&gt;        STATIC_ASSERT(1);&lt;BR /&gt;        return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Error Message:&lt;BR /&gt;#  /opt/aCC/bin/aCC t.cpp&lt;BR /&gt;aCC: Not enough memory is available to finish the compilation.&lt;BR /&gt;&lt;BR /&gt;==========================================================================&lt;BR /&gt;&lt;BR /&gt;To reolve this issue as looked into the similar issue resolution introduced a option +hpxstd98. However its leading to another problem.&lt;BR /&gt;&lt;BR /&gt;The options used to compile the code is &lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC -AA -Aa -mt +Z -lrt +u1 +hpxstd98 +DAportable +W690,392,431,887,921,655,555,254 -D_RWSTD_NO_OVERLOAD_WCHAR -march=1.1 -O0&lt;BR /&gt;&lt;BR /&gt;Here is a error number #2135 while compiling the source &lt;BR /&gt;&lt;BR /&gt;Error message: error #2135: class "Common::StructName&lt;FALSE&gt;" &lt;BR /&gt;has no member "DUMB"&lt;BR /&gt;&lt;BR /&gt;Please find the code snippet:&lt;BR /&gt; &lt;BR /&gt;namespace Common&lt;BR /&gt;{&lt;BR /&gt;   template&lt;BOOL&gt; struct StructName&lt;BR /&gt;       {&lt;BR /&gt;        public: typedef char DUMB;&lt;BR /&gt;        };&lt;BR /&gt;     template &amp;lt;&amp;gt; struct StructName &amp;lt; false &amp;gt;  {};&lt;BR /&gt;     }&lt;BR /&gt;#ifndef STATIC_ASSERT&lt;BR /&gt;#define STATIC_ASSERT(expr)  \&lt;BR /&gt;extern Common::StructName &amp;lt;(expr)&amp;gt;::DUMB COMPILE_TIME_CHECKER_DUMB; &lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sowmya&lt;BR /&gt;&lt;/BOOL&gt;&lt;/FALSE&gt;&lt;/BOOL&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Fri, 24 Apr 2009 13:30:11 GMT</pubDate>
    <dc:creator>Sowmyati</dc:creator>
    <dc:date>2009-04-24T13:30:11Z</dc:date>
    <item>
      <title>aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406471#M682007</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing a issue to compile my source code which is of close to 480MB on HPUX PA-RISC B.11.31 machine.&lt;BR /&gt;aCC compiler version - HP ANSI C++ B3910B A.03.70&lt;BR /&gt;&lt;BR /&gt;Error Message:[Unknown position].&lt;BR /&gt;&lt;BR /&gt;Warning 67: "/SOULAPINEW/COMMON/inc/globalstaticallocator.h", line 11 # Invalid pragma name: 'warning' (ignored).&lt;BR /&gt;&lt;BR /&gt;    #pragma warning( disable : 4005 )&lt;BR /&gt;&lt;BR /&gt;            ^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;&lt;BR /&gt;aCC: Not enough memory is available to finish the compilation.&lt;BR /&gt;&lt;BR /&gt;There is enough space available but still facing this problem. &lt;BR /&gt;maxssize and maxdsize set to the max&lt;BR /&gt;&amp;gt;&amp;gt; ulimit -a&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         4194300&lt;BR /&gt;stack(kbytes)        262144&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 2048&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; swapinfo -tam&lt;BR /&gt;acuxpa2# swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev       12288       0   12288    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -     260    -260&lt;BR /&gt;memory     5842    1660    4182   28%&lt;BR /&gt;total     18130    1920   16210   11%       -       0    -&lt;BR /&gt;&lt;BR /&gt;aCC options used while compiling :&lt;BR /&gt;/opt/aCC/bin/aCC -mt +Z -AA -lrt +u1 +DAportable&lt;BR /&gt;&lt;BR /&gt;I have also searched for some of the similar issues discussed in these forums tried out with different options but nothing helped. With respect to this removed -g option while compiling but facing the same problem. Please guide through what need to be done.</description>
      <pubDate>Thu, 23 Apr 2009 09:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406471#M682007</guid>
      <dc:creator>Sowmyati</dc:creator>
      <dc:date>2009-04-23T09:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406472#M682008</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;A single C source file of 480 MB?  I would have expected that to be broken into smaller units.&lt;BR /&gt;&lt;BR /&gt;Version A.03.70 (if I understand correctly) was released around June 2006 and would have applied to 11.23.&lt;BR /&gt;&lt;BR /&gt;I would think upgrading your compiler to a current release (especially given the intense development in the C/C++ Itanium compiler) would be helpful.&lt;BR /&gt;&lt;BR /&gt;With a support contract, you are entitled to a free uplift to B9007AA:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 23 Apr 2009 10:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406472#M682008</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-23T10:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406473#M682009</link>
      <description>Please check if this link help which talk about the error which you are facing&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=4a083a7373f021103a7373f02110275d6e10RCRD#faq-memory" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=4a083a7373f021103a7373f02110275d6e10RCRD#faq-memory&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1195922" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1195922&lt;/A&gt;</description>
      <pubDate>Thu, 23 Apr 2009 13:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406473#M682009</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-04-23T13:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406474#M682010</link>
      <description>&lt;P&gt;&amp;gt;which is of close to 480MB&lt;BR /&gt;&lt;BR /&gt;What does this mean? The compiler only cares about once source at a time (including all headers).&lt;BR /&gt;Are you using lots of templates?&lt;BR /&gt;&lt;BR /&gt;The latest compiler version is A.03.85.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;There is enough space available but still facing this problem.&lt;BR /&gt;&lt;BR /&gt;Why do you think you have enough space available? Did you mean swap?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxssiz and maxdsiz set to the max&lt;BR /&gt;&lt;BR /&gt;Never ever set maxssiz to the max. That takes away all of maxdsiz.&lt;BR /&gt;&lt;BR /&gt;If you want to experiment, you can use ulimit to reduce maxssiz:&lt;BR /&gt;ulimit -s $(( 16* 1024 ))&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please guide through what need to be done.&lt;BR /&gt;&lt;BR /&gt;Can you watch the heap size in top as it is compiling?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: A.03.70 as released around June 2006 and would have applied to 11.23.&lt;BR /&gt;&lt;BR /&gt;That's correct. A.03.70 wouldn't be on 11.31.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(especially given the intense development in the C/C++ Integrity compiler) would be helpful.&lt;BR /&gt;&lt;BR /&gt;This is a PA compiler, which has no connection with IPF. On IPF, it is a user problem if the compiler runs out of memory, the user is suppose to increase maxdsiz_64bit as large as needed.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2011 01:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406474#M682010</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-04T01:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406475#M682011</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;Its not a single source file. Package of source code of smaller units. &lt;BR /&gt;&lt;BR /&gt;Downloaded the latest version of aCC from HP site and uograded acc version.(aCC: HP ANSI C++ B3910B A.03.85)&lt;BR /&gt;&lt;BR /&gt;As said maxssize is reduced to 8192 Kbytes.&lt;BR /&gt;&lt;BR /&gt;Yes there templates used in the code. &lt;BR /&gt;&lt;BR /&gt;Written a smaller stub with template which is throwimg a error when compiled. Please find it below.&lt;BR /&gt;==========================================================================&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;namespace Common&lt;BR /&gt;{&lt;BR /&gt;        template&lt;BOOL&gt; struct CompileTimeChecker&lt;BR /&gt;        {&lt;BR /&gt;                public: typedef char DUMB;&lt;BR /&gt;        };&lt;BR /&gt;        template &amp;lt;&amp;gt; struct CompileTimeChecker &amp;lt; false &amp;gt; {}; } #define STATIC_ASSERT(expr) Common::CompileTimeChecker&amp;lt;(expr)&amp;gt;::DUMB COMPILE_TIME_CHECKER_DUMB; int main() {&lt;BR /&gt;        STATIC_ASSERT(1);&lt;BR /&gt;        return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Error Message:&lt;BR /&gt;#  /opt/aCC/bin/aCC t.cpp&lt;BR /&gt;aCC: Not enough memory is available to finish the compilation.&lt;BR /&gt;&lt;BR /&gt;==========================================================================&lt;BR /&gt;&lt;BR /&gt;To reolve this issue as looked into the similar issue resolution introduced a option +hpxstd98. However its leading to another problem.&lt;BR /&gt;&lt;BR /&gt;The options used to compile the code is &lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC -AA -Aa -mt +Z -lrt +u1 +hpxstd98 +DAportable +W690,392,431,887,921,655,555,254 -D_RWSTD_NO_OVERLOAD_WCHAR -march=1.1 -O0&lt;BR /&gt;&lt;BR /&gt;Here is a error number #2135 while compiling the source &lt;BR /&gt;&lt;BR /&gt;Error message: error #2135: class "Common::StructName&lt;FALSE&gt;" &lt;BR /&gt;has no member "DUMB"&lt;BR /&gt;&lt;BR /&gt;Please find the code snippet:&lt;BR /&gt; &lt;BR /&gt;namespace Common&lt;BR /&gt;{&lt;BR /&gt;   template&lt;BOOL&gt; struct StructName&lt;BR /&gt;       {&lt;BR /&gt;        public: typedef char DUMB;&lt;BR /&gt;        };&lt;BR /&gt;     template &amp;lt;&amp;gt; struct StructName &amp;lt; false &amp;gt;  {};&lt;BR /&gt;     }&lt;BR /&gt;#ifndef STATIC_ASSERT&lt;BR /&gt;#define STATIC_ASSERT(expr)  \&lt;BR /&gt;extern Common::StructName &amp;lt;(expr)&amp;gt;::DUMB COMPILE_TIME_CHECKER_DUMB; &lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sowmya&lt;BR /&gt;&lt;/BOOL&gt;&lt;/FALSE&gt;&lt;/BOOL&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 24 Apr 2009 13:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406475#M682011</guid>
      <dc:creator>Sowmyati</dc:creator>
      <dc:date>2009-04-24T13:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: aCC: Not enough memory is available to finish the compilation.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406476#M682012</link>
      <description>&amp;gt;Yes there templates used in the code.&lt;BR /&gt;&lt;BR /&gt;There is no need to use a template hammer to do STATIC_ASSERT.  It looks like that what's causing the problem.  Using +hpxstd98 makes it work.&lt;BR /&gt;&lt;BR /&gt;Also using an array declaration would also work better.&lt;BR /&gt;#define STATIC_ASSERT(x) \&lt;BR /&gt;extern char COMPILE_TIME_CHECKER_DUMB[!!(x)]&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Here is a error number #2135 while compiling the source&lt;BR /&gt;&lt;BR /&gt;This is the STATIC_ASSERT you want.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-D_RWSTD_NO_OVERLOAD_WCHAR -march=1.1&lt;BR /&gt;&lt;BR /&gt;It is illegal to fiddle with any of the -D_RW defines, remove it.&lt;BR /&gt;&lt;BR /&gt;There is no such option as "-march=1.1", use +DAportable?</description>
      <pubDate>Fri, 24 Apr 2009 15:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-not-enough-memory-is-available-to-finish-the-compilation/m-p/4406476#M682012</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-24T15:36:42Z</dc:date>
    </item>
  </channel>
</rss>

