On Wed, Nov 8, 2017 at 5:13 PM, Jerry Lian <jerry.l...@gmail.com> wrote: > So according to what you said: the build will fail no matter what. > But that is not my observation: my build succeed eventually (but you just > need to rerun many times)!!!
ah. sorry, i missed that part. So then it's probably a bug in the recipe, missing dependency or something along these lines. It would be legit to report this bug then. > > On Wed, Nov 8, 2017 at 10:53 AM, Nicolas Dechesne > <nicolas.deche...@linaro.org> wrote: >> >> On Wed, Nov 8, 2017 at 4:49 PM, Jerry Lian <jerry.l...@gmail.com> wrote: >> > I am not sure whether it is a bug or an error: >> > * Quite often, bitbake will fail before finishing, with message like: >> > ... >> > task failed with exit code 1... >> > * But if you rerun bitbake, it will continue to build. >> > * So sometimes I have to rerun many times for finish one build ---- >> > annoying! >> > (by the way, my CPU can run 16 threads) >> > >> > Any idea to clear this annoying bug? >> >> it's not a bug. bitbake is using parallel tasks a lot. At any time it >> is running N tasks. When one task fails, it will wait for N-1 ongoing >> tasks to finish, and then stops. >> >> If you restart again, it will likely try N new tasks again, and the >> same task that failed, will fail again, it will wait for N-1 tasks to >> complete. >> >> if you do that several times, you will end up in a situation where >> the only task that can run is the 'failing' one, so it will try 1 task >> and fail immediately. >> >> > thanks. >> > >> > -- >> > _______________________________________________ >> > yocto mailing list >> > yocto@yoctoproject.org >> > https://lists.yoctoproject.org/listinfo/yocto >> > > > -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto