[OpenWrt-Devel] Missing dependency on host sed?
Jonathan Bennett
jbscience87 at gmail.com
Wed Sep 17 01:40:51 EDT 2014
I'll throw a couple thoughts out, and then defer to someone that
understands the openwrt build env better than I do.
First, you do have sed installed on your host system, right? I don't think
this is the issue, but best to check the easy things first. Also, a make
distclean sometimes clears up these problems.
Try compiling without a -j flag. I suspect that this is a parallel build
issue. If you can recreate it without -j, then the rest of this message is
a moot point.
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.
That said, I have put a "sleep 500" in my sed makefile, which basically
means that every other package that is allowed to do so will build and
install first, and I have been unable to reproduce.
If it's not cleared up shortly, go ahead and open a ticket on
dev.openwrt.org
~Jonathan Bennett
On Tue, Sep 16, 2014 at 8:43 PM, John Szakmeister <john at szakmeister.net>
wrote:
> On Tue, Sep 16, 2014 at 9:32 PM, Jonathan Bennett <jbscience87 at gmail.com>
> wrote:
> > In your tree, in the file tools/sed/Makefile, change
> HOST_BUILD_PARALLEL:=1
> > to HOST_BUILD_PARALLEL:=0 and see if that fixes the error.
>
> Unfortunately, it didn't help. I think the issue is that
> linux-headers needs the SED utility, but it's not being built ahead of
> toolchain/prepare rather than sed failing to build with multiple jobs.
> It seems like a dependency is getting filtered out somehow... perhaps
> as part of the tools_enabled line in tools/Makefile (towards the
> bottom)? :-(
>
> -John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140917/23f9a2b0/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list