IBM Support

IV52183: GRARNN ERROR WHEN NOT USING -QMAXMEM=-1

Fixes are available

XL C for AIX Fix Pack 8 (March 2014 PTF) for 12.1
XL C/C++ for AIX Fix Pack 8 (March 2014 PTF) for 12.1
XL C/C++ for AIX Fix Pack 11 (February 2015 PTF) for 12.1
XL C for AIX Fix Pack 12 (May 2015 PTF) for 12.1
XL C/C++ for AIX Fix Pack 12 (May 2015 PTF) for 12.1
XL C/C++ for AIX Fix Pack 13 (August 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 14 (December 2015 Update) for 12.1
XL C for AIX Fix Pack 15 (April 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 15 (April 2016 Update) for 12.1
XL C for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C/C++ for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C for AIX Fix Pack 9 (July 2014 PTF) for 12.1
XL C/C++ for AIX Fix Pack 9 (July 2014 PTF) for 12.1
XL C for AIX Fix Pack 10 (October 2014 PTF) for 12.1
XL C/C++ for AIX Fix Pack 10 (October 2014 PTF) for 12.1
XL C for AIX Fix Pack 11 (February 2015 PTF) for 12.1
XL C for AIX Fix Pack 13 (August 2015 Update) for 12.1
XL C for AIX Fix Pack 14 (December 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 21 (January 2019 Update) for 12.1
XL C for AIX Fix Pack 21 (January 2019 Update) for 12.1

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The compiler is encountering an internal compiler error during
    the register allocation step in the xlCcode component of the
    compiler.  When compiling with the -qphsinfo option, the error
    is output after the OPTIMIZ stop.  The error typically looks
    similar to:
    
       Front End - Phase Ends;   2.580/  2.590
       W-TRANS   - Phase Ends;   0.030/  0.030
       OPTIMIZ   - Phase Ends;   3.250/  3.250
    
       1500-004: (U) INTERNAL COMPILER ERROR while compiling main.
       Compilation ended.  Contact your Service Representative and
       provide the following information: GRARNN: gr10110 is used
       before it is defined. For more information visit:
       http://www.ibm.com/support/docview.wss?uid=swg21110810
    
    Compiling with -qmaxmem=-1 may sometimes prevent the issue.
    

Local fix

  • Lower optimization level, or increase the -qmaxmem limit.
    

Problem summary

  • PROBLEM DESCRIPTION:
    A code optimization reorganizes some code without reorganizing
    it's dependents, resulting in an internal error.
    
    USERS AFFECTED:
    Large applications with nested loops.
    

Problem conclusion

  • The optimization was corrected to avoid bad code
    reorganization.  Problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV52183

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-18

  • Closed date

    2014-03-18

  • Last modified date

    2014-03-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    LI77940

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels



Document information

More support for: XL C for AIX
Compiler

Software version: 12.1

Reference #: IV52183

Modified date: 19 March 2014