IBM Support

LI76128: FUNCTION NOT FOUND IN PDF2

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following test case has two func() functions taking in
    different parameters defined in two different files func.c and
    foo.c.
    main.c uses the func() defined from func.c. foo.c's definition
    is not used.
    
    Using pdf1 and pdf2 to create pdf-optimized objects,
    with V9 and V10.1 compiler, compilation stops for compiling
    foo.c with error in the second pass.
    foo.c:
    1586-465 (S) Profiling data matching that from the pdf1 phase
    could not be found for function "func" in file "._pdf".
    Source files and/or compilation options may differ between the
    pdf1 and pdf2 phases.
    
    With V11.1 compiler
    compilation continues with warnings.
    
    main.c:
    1586-475 (W) New definition of function "main" is inconsistent
    with profiling data found in file "._pdf" from the pdf1 phase.
    Source files and/or compilation options may differ between the
    pdf1 and pdf2 phases. PDF Information will gnored for function
    "main".
    func.c:
    foo.c:
    1586-475 (W) New definition of function "func" is inconsistent
    with profiling data found in file "._pdf" from the pdf1 phase.
    Source files and/or compilation options may differ between the
    pdf1 and pdf2 phases. PDF Information will gnored for function
    "func".
    
    ============
    TEST CASE:
    ============
    ===== TESTCASE:
    
    $ cat main.c
    void func(int a);
    int main(int argc, char *argv[])
    {
       func(atoi(argv[1]));
    }
    
    $ cat func.c
    void func(int i)
    {
       if ( i == 0 )
            printf("Arun\n");
       else
            printf("Sar\n");
    }
    
    $ cat foo.c
    int func()
    {
       printf("IBM\n");
    }
    
    rm -f *.o mytest_v9 ._pdf
    $XLC -q64 -qpdf1 -O3 -c main.c func.c foo.c
    $XLC -q64 -qpdf1 -O3 -o mytest_v9 main.o func.o
    ./mytest_v9 0
    ./mytest_v9 1
    ./mytest_v9 2
    $XLC -q64 -qpdf2 -qnoipa -O3 -c main.c func.c foo.c
    

Local fix

  • N/A
    

Problem summary

  • PROBLEM DESCRIPTION: In V9, V10, misleading severe error with
    PDF2
    
    USERS AFFECTED: XL C/C++ V9, V10, V11 users who use Pass1 PDF2
    (-qnoipa -qpdf2)
    

Problem conclusion

  • Problem is fixed. Only warning message against foo.c is now
    emitted.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI76128

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5724X1400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-04-27

  • Closed date

    2011-04-27

  • Last modified date

    2011-04-27

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

    IZ84969

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5724X1400

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
17 October 2021