Fixes are available
XL C for AIX Fix Pack 2 (July 2016 PTF) for 13.1.3
XL C/C++ for AIX Fix Pack 2 (July 2016 PTF) for 13.1.3
XL C for AIX, V13.1.3.3 Fix Pack (December 2016)
XL C/C++ for AIX, V13.1.3.3 Fix Pack (December 2016)
XL C for AIX, V13.1.3.4 Fix Pack (April 2017)
XL C/C++ for AIX, V13.1.3.4 Fix Pack (April 2017)
XL C for AIX, V13.1.3.5 Fix Pack (July 2018)
XL C/C++ for AIX, V13.1.3.5 Fix Pack (July 2018)
XL C for AIX, V13.1.3.6 Fix Pack (May 2019)
XL C/C++ for AIX, V13.1.3.6 Fix Pack (May 2019)
APAR status
Closed as program error.
Error description
When compiling large source files using the DWARF debug format, corrupted XCOFF object files are produced that are not accepted by AIX utilities, including the linker and the ar archive tool. Tools such as ar might encounter internal errors due to the corrupted object file, while the linker might output errors such as: ld: 0711-599 SEVERE ERROR: Section header 5 (.dwinfo) in object /tmp/3998512_0.o: Fields in the header are invalid: s_scnptr = 4175648; s_size = 8608238 ld: 0711-599 SEVERE ERROR: Section header 6 (.dwabrev) in object /tmp/3998512_0.o: Fields in the header are invalid: s_scnptr = 13704128; s_size = 2051 ld: 0711-599 SEVERE ERROR: Section header 7 (.dwarnge) in object /tmp/3998512_0.o: Fields in the header are invalid: s_scnptr = 13706192; s_size = 67184 ld: 0711-599 SEVERE ERROR: Section header 8 (.dwpbnms) in object /tmp/3998512_0.o: Fields in the header are invalid: s_scnptr = 13857344; s_size = 922451 ld: 0711-599 SEVERE ERROR: Section header 9 (.dwpbtyp) in object /tmp/3998512_0.o: Fields in the header are invalid: s_scnptr = 14779824; s_size = 178544
Local fix
Use the stabstring debug format instead of DWARF.
Problem summary
PROBLEM DESCRIPTION: When compiling large files with -g and -qdbgfmt=dwarf, the resulting object file is corrupted. The DWARF debug section is overwriting the XCOFF scnum value. USERS AFFECTED: Users of DWARF debug information with large source files.
Problem conclusion
The issue has been corrected.
Temporary fix
Comments
APAR Information
APAR number
IV85633
Reported component name
XL C FOR AIX
Reported component ID
5725C7100
Reported release
D13
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-06-10
Closed date
2016-06-10
Last modified date
2016-06-10
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
5725C7100
Applicable component levels
RD13 PSY
UP
[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"D13"}]
Document Information
Modified date:
07 September 2021