IBM Support

Compiler fails to generate assembly output with -S and -qarch=auto on POWER7

Troubleshooting


Problem

When compiling on a POWER7 machine with the -S and -qarch=auto options in effect, the compiler fails to generate the assembly output. This problem also occurs when -S is used with -O4 or above on a POWER7, because -qarch=auto is turned on by default with -O4 or above.

Symptom

The following messages will be issued by the compiler:
(S) Unable to create .s file for test.c
(U) An error occurred during code generation.  The code generation return code was 1.

[{"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Compiler","Platform":[{"code":"PF002","label":"AIX"}],"Version":"9.0;10.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}},{"Product":{"code":"SSGH4D","label":"XL Fortran for AIX"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Compiler","Platform":[{"code":"PF002","label":"AIX"}],"Version":"11.1;12.1","Edition":"Not Applicable","Line of Business":{"code":"LOB73","label":"Power TPS"}},{"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Compiler","Platform":[{"code":"PF002","label":"AIX"}],"Version":"9.0;10.1","Edition":"Not Applicable","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
06 December 2018

UID

swg21449851