[PATCH] Build failure with parallel make

Jim Hague jim.hague at acm.org
Mon Apr 8 13:26:45 CEST 2024


Hi all,

While building a Buildroot project, I ran into an occasional Bird build 
failure. In a parallel make environment, nest can try to write 
proto-build.c to objdir/nest before that directory exists. I think this 
patch fixes:

--- nest/Makefile.orig    2024-04-08 11:47:50.917918157 +0100
+++ nest/Makefile    2024-04-08 11:47:59.167838713 +0100
@@ -3,7 +3,7 @@
  $(all-daemon)
  $(cf-local)

-$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST))
+$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST)) 
$(objdir)/.dir-stamp
      $(E)echo GEN $@
      $(Q)echo "$(patsubst %,void %_build(void); ,$(PROTO_BUILD)) void 
protos_build_gen(void) { $(patsubst %,  %_build(); ,$(PROTO_BUILD))}" > $@

-- 
Jim Hague - jim.hague at acm.org          Never trust a computer you can't lift.



More information about the Bird-users mailing list