IBM Support

LI73489: DUPLICATE SYMBOL WARNING WITH -G AND -O3

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using both -g and -O3 together, a subroutine symbol is
    exported twice and the linker gives the following warning
    message:
    
    ld:0711-224 WARNING: Duplicate symbol: .<subroutine_symbol_name>
    
    The nm command on the binary shows the two symbols:
    
    ...
    .sub2                          T   268438256          28
    .sub3                          T   268438288          28
    .<subroutine_symbol_name>      T   268436512
    .<subroutine_symbol_name>      T   268436512        1580
    :t1=-11                        -           0
    :t1=-11                        -           0
    ...
    

Local fix

  • The issue seems to go away if certain WRITE statements or
    subroutines are removed.
    

Problem summary

  • USER AFFECTED:
    The problem is not always triggered.  A condition necessary to
    trigger the problem is to have multiple compilation units being
    sent to the compiler xlfcode at once.  For example, Fortran code
    and programs compiled with IPA.
    
    PROBLEM DESCRIPTION:
    A variable in the compiler xlfcode does not always get
    initialized between compilation units.  The variable could have
    the value set by a previous compilation unit.  This caused a
    symbol to be added twice to the symbol table of an object file
    and resulted in a duplicate symbol warning from the linker.
    

Problem conclusion

  • We initialize the variable.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI73489

  • Reported component name

    XL FORTRAN AE B

  • Reported component ID

    5799HJG00

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-06-20

  • Closed date

    2008-06-20

  • Last modified date

    2008-06-20

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

    IZ11614

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

Fix information

  • Fixed component name

    XL FORTRAN AE B

  • Fixed component ID

    5799HJG00

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSB259","label":"XL Fortran Advanced Edition for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B.1","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
24 February 2022