On Wed, Sep 17, 2014 at 1:40 AM, Jonathan Bennett <jbscienc...@gmail.com> wrote: [snip] > Now, what I think is happening here is that we have a race between a couple > of compilation threads, one of which is the sed utility. What happens is > something that uses sed is trying to compile before sed has finished > compiling. The build env queues up a bunch of programs to compile, and > because sed takes quite a while to compile, it chews through that queue and > hits something that calls sed before sed exists. It would be helpful if we > could discern exactly which package is failing.
The following diff fixes the issue for me: --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -74,7 +74,7 @@ endif # prerequisites for the individual targets $(curdir)/ := .config prereq -$(curdir)//prepare = $(STAGING_DIR)/.prepared $(TOOLCHAIN_DIR)/info.mk +$(curdir)//prepare = $(STAGING_DIR)/.prepared $(TOOLCHAIN_DIR)/info.mk tools/install $(curdir)//compile = $(1)/prepare $(curdir)//install = $(1)/compile If I'm understanding things correctly, this will make the toolchain/prepare step depend on tools/install. It did appear that tools fully built before progressing to the toolchain compilation too, as expected. So I think it's the right idea, if not the right implementation. :-) Hopefully someone knowledgable about the build can chime in and say one way or another. -John _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel