IBM Support

IJ16735: COMPILING WITH -M LEAVES A TEMPORARY FILE IN THE TMP DIRECTORY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling with -M, the compile leaves around an empty temp
    file in the tmp directory.
    
    ===== COMPILE COMMAND:
    xlclang -E -M test.c
    
    ===== TESTCASE:
    $ cat test.c
    #include <stdio.h>
    
    int main()
    {
        printf("fertisch");
    }
    $
    
    
    ===== ACTUAL OUTPUT:
    $ mkdir tmp
    $ export TMPDIR=./tmp
    $ xlclang -E -M test.c
    test.o: test.c /usr/include/stdio.h \
      /opt/IBM/xlC/16.1.0/include2/aix/standards.h \
      /usr/include/standards.h /usr/include/va_list.h \
      /opt/IBM/xlC/16.1.0/include2/aix/sys/types.h \
      /usr/include/sys/types.h /usr/include/strict_stdtypes.h \
      /opt/IBM/xlC/16.1.0/include2/aix/sys/inttypes.h \
      /usr/include/sys/inttypes.h \
      /opt/IBM/xlC/16.1.0/include2/stdint.h \
      /usr/include/stdint.h /usr/include/end_strict_stdtypes.h \
      /usr/include/sys/m_types.h /usr/include/sys/vm_types.h \
      /usr/include/sys/limits.h \
      /opt/IBM/xlC/16.1.0/include2/float.h
    $ ls
    test.c  tmp
    $ cd tmp
    $ ls
    xlcAStqLaad
    $
    
    ===== EXPECTED OUTPUT:
    Tmp file should not exist after compile
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Clients using the -M option are affected by this issue
    
    PROBLEM DESCRIPTION:
    The compiler driver program creates a temp file when dealing
    with ASM objects, however does not delete it afterwards.
    This leads to the creation of many temp files with 0 size that
    later have to be manually deleted by clients.
    

Problem conclusion

  • The compiler driver program has been fixed to stop generating
    the 0 size temp files
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ16735

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    G10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-06-11

  • Closed date

    2019-06-11

  • Last modified date

    2019-06-11

  • 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 AI

  • Fixed component ID

    5725C7200

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G10","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
21 August 2024