Problem
cmake … &> /dev/null and make -j$CORES &> /dev/null (rigforge.sh:246-249) swallow all build output, so a failed compile aborts under set -e with zero diagnostics. There's also no ERR trap (pithead has on_err naming the step), and make -j$(nproc) can OOM the heavy XMRig build on low-RAM boxes.
Proposed
- Tee build output to a logfile (and/or don't suppress it); on failure point the user at it.
- Add a
trap … ERR that names the failed step (mirror pithead's on_err).
- Cap build parallelism on low-RAM hosts (reserve headroom).
Acceptance
Problem
cmake … &> /dev/nullandmake -j$CORES &> /dev/null(rigforge.sh:246-249) swallow all build output, so a failed compile aborts underset -ewith zero diagnostics. There's also no ERR trap (pithead hason_errnaming the step), andmake -j$(nproc)can OOM the heavy XMRig build on low-RAM boxes.Proposed
trap … ERRthat names the failed step (mirror pithead'son_err).Acceptance
-jis bounded on low-memory machines.