Fixes are available
June 2011 Update for XL C/C++ for Linux, V10.1
XL C/C++ for Linux Fix Pack 8 (January 2014 Update) for 10.1
August 2010 Update for XL C/C++ for Linux, V10.1
January 2011 Update for XL C/C++ for Linux, V10.1
January 2012 Update for XL C/C++ for Linux, V10.1
July 2012 Update for XL C/C++ for Linux, V10.1
APAR status
Closed as program error.
Error description
When compiling at -O4 or higher, or explicitly using -qipa, the compiler is returning an error code of 0 when attempting to link with a non-existent library. $ cat test.c int main (void) { return 0; } $ xlc -O4 test.c -lnoexist 1586-403 (E) Library file "noexist" not found. $ echo $? 0
Local fix
Use a lower optimization level.
Problem summary
USER AFFECTED: Users who turn on IPA transformations with -qipa, -O4 or -O5 and specify libraries which do not exist. PROBLEM DESCRIPTION: The IPA step is returning 0 when encountering this error.
Problem conclusion
The IPA step now returns a non-zero error code: $ xlc test.c -lnoexist -O4 1586-403 (U) Library file "noexist" not found. $ echo $? 1
Temporary fix
Comments
APAR Information
APAR number
LI75553
Reported component name
XL C/C++ RHEL52
Reported component ID
5724U8310
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-07-28
Closed date
2010-07-28
Last modified date
2010-07-28
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++ RHEL52
Fixed component ID
5724U8310
Applicable component levels
RA10 PSN IZ72111
UP06/09/13
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
17 October 2021