IBM Support

LI76695: INLINE ASM ERROR WITH TR1 MEMORY HEADER FILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following test case fails to compile with the BG compilers:
    
    ===== COMPILE COMMAND:
    xlC test.cpp
    
    ===== TESTCASE:
    $cat test.cpp
    #include <tr1/memory>
    
    int main(int argc, char** argv) {
    
    }
    $
    
    
    ===== ACTUAL OUTPUT:
    $ xlC test.cpp
    "/usr/include/c++/4.1.2/tr1/boost_shared_ptr.h", line 155.9:
    1540-0130 (S) "__volatile" is not declared.
    "/usr/include/c++/4.1.2/tr1/boost_shared_ptr.h", line 175.9:
    1540-0130 (S) "__volatile" is not declared.
    $
    
    ===== EXPECTED OUTPUT:
    Should compile clean
    

Local fix

  • Since the XLC compiler doesn't understand the GCC styntax of
    __volatile, the workaround is to redefine it to something that
    XLC understands.
    
    $cat test.cpp
    #define __volatile volatile // defining __volatile to volatile
    
    with XLC compiler. But you shouldn't have to do this.
    #include <tr1/memory>
    
    int main(int argc, char** argv) {
    
    }$
    

Problem summary

  • USERS AFFECTED:
    Customers using non-standard GCC keyword __volatile are
    affected by this issue.
    
    PROBLEM DESCRIPTION:
    The Linux compiler for C++ did not accept the __volatile
    keyword.
    

Problem conclusion

  • The compiler has been fixed to accept the __volatile keyword.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI76695

  • Reported component name

    XL C/C++ AE BG/

  • Reported component ID

    5799HJE00

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-30

  • Closed date

    2012-08-27

  • Last modified date

    2012-08-27

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

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

Fix information

  • Fixed component name

    XL C/C++ AE BG/

  • Fixed component ID

    5799HJE00

Applicable component levels

  • R900 PSY

       UP

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

Document Information

Modified date:
17 October 2021