IBM Support

IZ59844: Not enough memory error at -O4 and -O5

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling a large application at -O4 or -O5, the compiler
    generated the following error:
    
    System error (12): There is not enough memory available now.
    1586-346 (U) An error occurred during code generation.  The code
    generation return code was 217.
    

Local fix

  • Use -O3
    

Problem summary

  • USER AFFECTED:
    Users using high level of optimization on a compilation unit
    with very
    large number of functions to compile. The number of functions
    could be
    due to large source file or use of complicated templates
    generating
    many templete instantiations.
    
    PROBLEM DESCRIPTION:
    The compiler is facing a huge input task and runs out of memory
    trying to keep the entire intermediate representation of the
    program.
    

Problem conclusion

  • The initial sizes of tables for the intermediate representation
    of
    the program were more appropriately sized. The tables can grow
    but
    with better proportions of different tables, all the tables
    nowc grow
    with better increments leaving enough memory to complete
    compilation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ59844

  • Reported component name

    XLC C++ AIX

  • Reported component ID

    5724S7100

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-09-02

  • Closed date

    2009-12-21

  • Last modified date

    2010-01-05

Fix information

  • Fixed component name

    XL C AIX

  • Fixed component ID

    5724S7000

Applicable component levels

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0"}]

Document Information

Modified date:
04 October 2021