Fixes are available
XL C/C++ for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 22 (September 2015 PTF) for 11.1
XL C for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C for AIX Fix Pack 24 (September 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 24 (September 2016 PTF) for 11.1
XL C for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 22 (September 2015 PTF) for 11.1
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:
Fix information
Fixed component name
XL C FOR AIX
Fixed component ID
5724X1200
Applicable component levels
Document Information
Modified date:
25 April 2014