LI77250: MULTIPLE DEFINITION OF OMP CRITICAL LINK ERROR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Consider the following testcase:
    
    $cat first.cc
    int q;
    int main(int argc, char** argv)
    {
      _Pragma("omp critical(someval)")
        q = 0;
      _Pragma("omp critical(someval)")
        q = 1;
      return 0;
    }
    
    $cat second.cc
    extern int q;
    void f()
    {
      _Pragma("omp critical(someval)")
        q = 10;
    }
    
    Compile:
    bgxlC_r -qsmp=omp -c  first.cc second.cc
    
    Link:
    bgxlC_r -qsmp=omp -o program first.o second.o
    
    Compiler incorrectly issues error messages at link time:
    
    second.o:(.bss+0x0): multiple definition of
    `__ompCritical::someval'
    first.o:(.bss+0x0): first defined here
    second.o:(.bss+0x0): multiple definition of
    `__ompCritical::someval'
    first.o:(.bss+0x0): first defined here
    

Local fix

  • Not available
    

Problem summary

  • Some OpenMP objects were marked isnotcommon even when necessary
    (due to C++ default)
    

Problem conclusion

  • Override the default storage class for openmp locking
    primitives on C++ compiler
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77250

  • Reported component name

    XL C/C++ FOR BG

  • Reported component ID

    5799AG100

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-04

  • Closed date

    2013-05-29

  • Last modified date

    2013-10-25

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

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

    IV44272 LI77615

Fix information

  • Fixed component name

    XL C/C++ FOR BG

  • Fixed component ID

    5799AG100

Applicable component levels

  • RC10 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

XL C/C++ for Blue Gene/Q
Compiler

Software version:

12.1

Reference #:

LI77250

Modified date:

2013-10-25

Translate my page

Machine Translation

Content navigation