IBM Support

LI74470: USING QPIC=LARGE CAUSES LINK ERROR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Compiling with qpic=large may cause link error.
    

Local fix

  • Use -O
    

Problem summary

  • USER AFFECTED:
    Inline asm with shared libraries
    
    PROBLEM DESCRIPTION:
    A test case generated link time undefined reference errors when
    compiling with -qpic
    
    > $mpixlc_r -c main.c
    > $mpixlc_r -c bgwtime.c -I/bgsys/drivers/ppcfloor/arch/include
    -qpic=large
    > $mpixlc_r -qmkshrobj -o libbgwtime_xlc.so bgwtime.o
    > $mpixlc_r main.o -qnostaticlink -L. -lbgwtime_xlc -o main
    ./libbgwtime_xlc.so: undefined reference to µCONSTANT_AREA'
    ./libbgwtime_xlc.so: undefined reference to µ$STATIC'
    ./libbgwtime_xlc.so: undefined reference to µ$STATIC_BSS'
    

Problem conclusion

  • Problem is fixed in the compiler. Apply fix as advised.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI74470

  • 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

    2009-04-27

  • Closed date

    2009-09-20

  • Last modified date

    2009-09-20

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

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

    LI75701

Fix information

  • Fixed component name

    XL C/C++ AE BG/

  • Fixed component ID

    5799HJE00

Applicable component levels

  • R900 PSY

       UP



Document information

More support for: XL C/C++
Compiler

Software version: 9.0

Reference #: LI74470

Modified date: 20 September 2009


Translate this page: