Diagnostic and cause
LinkCompiler resource budget exceeded
- Family
- topaz
- Phase
- compiler
- Code
TPZ0900
Cause and conditions
A compiler worker exceeding the configured memory, time, transport, or source-read budget stops compilation with TPZ0900 and exit status one.
Related rule: Trigger and repairResponse
Read the budget and reason in the message. Reduce the compilation workload or supply a sufficient compiler memory/time budget; the repair checks the same valid source with an explicit 8192-MiB memory budget and 1800000-ms time budget.
Source evidence
- compiler/crates/topaz_diag/src/explain.rs at
151141d7bb44· 197-205 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 27-30 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 49-90 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 544-598 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 602-639 - compiler/crates/topaz_cli/src/compile/self_host.rs at
151141d7bb44· 775-795 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 90-132 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 135-176 - TPZ0900 at
f42fbeb4f27e - TPZ0900 repair at
151141d7bb44
Compiler phase: compiler.
Compiler explanation: Compilation exceeded a declared memory, wall-clock, or source-read budget and stopped with exit status 1.
Message templates are Pending. The explanation above is not an observed CLI message.
The isolated SELF compiler exhausts an enabled compilation resource budget. This is a tool resource failure, not a type error in the source program. The bounded reproduction uses a one-MiB compiler memory budget for a valid one-line program.
Trigger and repair
A compiler worker exceeding the configured memory, time, transport, or source-read budget stops compilation with TPZ0900 and exit status one.
Source evidence
- compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 27-30 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 49-90 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 544-598 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 602-639 - compiler/crates/topaz_cli/src/compile/self_host.rs at
151141d7bb44· 775-795 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 90-132 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 135-176 - TPZ0900 at
f42fbeb4f27e - TPZ0900 repair at
151141d7bb44
Response
LinkRead the budget and reason in the message. Reduce the compilation workload or supply a sufficient compiler memory/time budget; the repair checks the same valid source with an explicit 8192-MiB memory budget and 1800000-ms time budget.
Reproduction and verification
LinkProduct diagnostic test
Linklet value = 1
Expected result
Expected result
The separate diagnostic product test validates this command, runtime diagnostic, or filesystem setup. The shared example runner does not execute that assertion plan.
Run topaz check example..
Expect exit status 1, empty standard output, and TPZ0900.
The isolated SELF compiler exhausts an enabled compilation resource budget. This is a tool resource failure, not a type error in the source program. The bounded reproduction uses a one-MiB compiler memory budget for a valid one-line program.
No user source location is expected for this diagnostic.
Expect exactly one diagnostic.
The diagnostic product test checks these expectations with the same files and command.
Source evidence
- compiler/crates/topaz_diag/src/explain.rs at
151141d7bb44· 197-205 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 27-30 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 49-90 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 544-598 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 602-639 - compiler/crates/topaz_cli/src/compile/self_host.rs at
151141d7bb44· 775-795 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 90-132 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 135-176 - TPZ0900 at
f42fbeb4f27e - TPZ0900 repair at
151141d7bb44
Corrected program
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
This program applies the repair described above. The verification status records whether it has been run.
Source evidence
- compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 27-30 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 49-90 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 544-598 - compiler/crates/topaz_stage1_runtime/src/compiler_worker.rs at
151141d7bb44· 602-639 - compiler/crates/topaz_cli/src/compile/self_host.rs at
151141d7bb44· 775-795 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 90-132 - compiler/crates/topaz_cli/tests/cli/compiler_resources.rs at
151141d7bb44· 135-176 - TPZ0900 at
f42fbeb4f27e - TPZ0900 repair at
151141d7bb44