Informix Error -4202: The compilation was not successful. Errors found: n. The file filename was not written successfully either.
Cause and resolution
The compilation was not successful. Errors found: n. The file filename was not written successfully either.
The compiler failed to produce the output file because of errors and it also failed to produce the error file. Probably not enough disk space was available.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4202 fires when the compiler fails to produce both the output file (due to source errors) and the error file itself — per the official guidance, this usually means insufficient disk space was available.
- Insufficient disk space, preventing both the output file and the error file from being written, per the official guidance — the most likely named cause.
Solutions / Resolution
- Free up disk space, then fix the reported source errors and recompile.
Examples
Checking available disk space
df -h .
Diagnostic Checks
- Check available disk space before assuming the source errors are the only issue, since the error file itself also failed to write.
Related Errors / Related Topics
- -4203 — "The compilation was successful, with n warnings. The file filename was not written successfully." A related write-failure error, about a successful compile with warnings whose error file still failed to write, rather than a failed compile.
Both the output file and the error file failed to write, likely from insufficient disk space — free up space, fix the source errors, and recompile.