Skip to content

reld charts n/a in the benchmark: links a trivial probe but fails reld-bench multi-object workloads (blocks #36) #37

Closed

Description

@zackees

Blocks #36 (turn on the reld benchmarker). Found by dispatch-verifying the #36 wiring on branch turn-on-benchmarker before merge.

Finding

With the #36 wiring in place (build reld release + ci/install-driver-shims.sh release, so reld-bench discovers ld.reld), reld still charts n/a — but for a new reason. Dispatched benchmark run 31173335448 (success), reld-bench output:

## Link Benchmark: x86_64-linux
| Scenario | bfd | lld | mold | wild | reld |
| small (16 units)   | 0.0200 | 0.0218 | 0.0229 | 0.0163 | n/a |
| medium (128 units) | 0.0385 | 0.0324 | 0.0375 | 0.0196 | n/a |
| large (512 units)  | 0.1192 | 0.0602 | 0.0822 | 0.0332 | n/a |

No <!-- linker reld not available --> comment is emitted. Per reld-bench.rs, the comment prints iff the shim is missing OR the probe link fails. Its absence means: the ld.reld shim was discovered and reld linked the trivial probe program successfully (clang -fuse-ld=<abs ld.reld> on int main(){return 0;}), but time_link returned Err for every real workload → per-scenario n/a.

So the blocker is:

reld links a trivial 1-object program but fails to link the reld-bench multi-object workloads (16 / 128 / 512 units with symbols + COMDATs), which upstream wild (0.9.0) links fine on the same runner. reld is a fork of wild with the ELF path unchanged by the bridge work — so this is either a fork regression vs wild 0.9.0, or a reld-specific issue on these generated objects. The wiring (#36) is correct and necessary but not sufficient.

Next diagnostic step

reld-bench's time_link swallows the linker's stderr on Err (it just charts n/a). To see the actual reld link error, surface it — e.g. temporarily log the time_link error for the reld column, or run reld directly on a generated workload with --workdir kept, then clang <objs> -fuse-ld=<ld.reld> -o out -v and read reld's diagnostics. Then fix the underlying link failure (or file upstream if it reproduces on wild@5793935).

Done when

reld links the reld-bench workloads on the Linux runner and the benchmark reld column shows real numbers (unblocking #36). The turn-on-benchmarker branch (the #36 wiring) should land together with this fix so reld charts in one visible step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions