From cfc7cf22ac839dbf5f3cf0f17e13c3daa4a7c970 Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 11 Feb 2015 20:40:37 +0100 Subject: [PATCH] gcc50/csu: Skip depends step to avoid possible race I've witnessed buildworld break once on muscles at gcc50/csu, on the depends step. I can reproduce the error manually by doing: > cd gnu/lib/gcc50/csu > wmake clean cleandepend > wmake depend It fails to locate insn-constants.h which should be avaiable due to and include flag. The depends is just checking if all the headers are in place. Skipping the depends step may prevent this breakage. I have successfully built world with this patch so it doesn't do harm. --- gnu/lib/gcc50/csu/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/lib/gcc50/csu/Makefile b/gnu/lib/gcc50/csu/Makefile index afd7a94b05..6251a416bd 100644 --- a/gnu/lib/gcc50/csu/Makefile +++ b/gnu/lib/gcc50/csu/Makefile @@ -25,8 +25,12 @@ libgcc_tm.h: CLEANFILES+= libgcc_tm.h # note: auto-host.h generated by Makefile.csu is not used. The cc_prep -# autohost-h is loaded preferentially instead. +# autohost.h is loaded preferentially instead. beforedepend: libgcc_tm.h +# calling depend may fail to find insn-constants.h, so skip this step +# seen on muscles and reproducible manually +depend: beforedepend + .include "../../csu/Makefile.csu" -- 2.41.0