IBM Support

IV56047: INTERMEDIATE OBJECT FILE LOCATION CONFLICT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When compiling source code directly to a final executable (i.e.
    not using the -c option), the compiler generates the
    intermediate object files in the current directory before the
    final link.
    
    This can cause build conflicts when compiling 32-bit and 64-bit
    source files in parallel from the same code base.
    
    Depending on which bit-mode build is first, it's object may be
    overwritten by the other bit-mode build.  For example, a 32-bit
    compile completes first and generates a 32-bit test.o object
    file, then the 64-bit compile in parallel completes, and
    overwrites test.o with a 64-bit mode test.o.  The link for the
    32-bit mode will output an error:
    
    ld: 0711-736 ERROR: Input file test.o:
    XCOFF64 object files are not allowed in 32-bit mode.
    

Local fix

  • - Do not build in parallel
    - Use separate code bases
    

Problem summary

  • PROBLEM DESCRIPTION:
    Intermediate object files were not stored in a temporary
    directory.
    
    USERS AFFECTED:
    Users compiling source code directly to executable, and not
    using the -c option.
    

Problem conclusion

  • The compiler now uses a temporary directory to generate
    intermediate object files, allowing users to run parallel make
    files.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV56047

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-28

  • Closed date

    2014-04-25

  • Last modified date

    2014-04-25

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

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

    IV57444

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5724X1200

Applicable component levels



Document information

More support for: XL C for AIX

Software version: 11.1

Reference #: IV56047

Modified date: 25 April 2014