IBM Support

LI78854: LINK ERROR WITH IPA FOR JAVA OBJECTS/LIBRARIES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When explicitly adding -Bdynamic /lib/ld.so.1, the compiler
    issues the following error message:
    
    /opt/ibmcmp/vac/12.1/bin/.orig/xlc_r: 1501-218 (W) file
    /lib/ld.so.1 contains an incorrect file suff
    ix
    /usr/bin/ld: attempted static link of dynamic object
    `/lib/ld.so.1'
    1586-347 (U) An error occurred during linking of the object
    produced by the IPA Link step.  The link return code was 1.
    
    The above error message should not be normally produced.
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Clients who specifically add -Bdynamic /lib/ld.so.1 to their IPA
    link step along with shared objects built with -qmkshrobj may be
    affected by this issue.
    
    PROBLEM DESCRIPTION:
    Since the link command -Bdynamic /lib/ld.so.1 is to bind a
    shared library built with the -qmkshrobj option, the XLC driver
    did not add /lib/ld.so.1.
    On the other hand, some of the object files have references to
    symbol __tls_get_addr which is exported from /lib/ld.so.1.
    
    IPA instead generated -Bstatic and -Bdynamic around
    /lib/ld.so.1; which is incorrect ie similar to the following:
    
    -Bstatic,/usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../lib/c
    rti.o,/usr/lib/gcc/ppc64-redhat-linux/4.4.7/32/crtbeginS.o,/lib/
    ld.so.1,./libfoo.a,/lib/rhel6/libxlopt.a,/opt/ibmcmp/vac/12.1/li
    b/libxl.a,-Bdynamic,
    

Problem conclusion

  • The compiler has been fixed by removing /lib/ld.so.1 from the
    compiler configuation file.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78854

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-10-26

  • Closed date

    2015-10-26

  • Last modified date

    2015-10-26

  • 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++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels

  • RC10 PSY

       UP



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 12.1

Reference #: LI78854

Modified date: 26 October 2015