[OE-core] From: Juro Bystricky <juro.bystricky at intel.com>
Juro Bystricky
juro.bystricky at intel.com
Wed Sep 14 17:05:45 UTC 2016
(Resending updated patches... hopefully got it right this time)
There is an occasional race observed when building Busybox.
It has been discussed on Busybox mailing list (see:
https://www.mail-archive.com/busybox@busybox.net/msg23244.html )
There were several Busybox attempts to fix this issue:
0dddbc1a59795a77679d8c5ef48a2795cb470563 ("build system: always rewrite NUM_APPLETS.h")
d8e61bbf13d0cf38d477255cfd5dc71c5d51d575 ("build system: different fix for include/applet_tables.h/include/NUM_APPLETS.h")
Although the patches alleviated the problem somewhat, the race can still be observed.
The error is consistently the same:
libbb/appletlib.c:164:13: error: 'NUM_APPLETS' undeclared (first use in this function)
while (i < NUM_APPLETS) {
The reason is the include file where NUM_APPLETS is defined is not yet generated (or is being modified)
at the time libbb/appletlib.c is compiled.
The attached patch fixes the problem by assuring libb is compiled as the last directory.
*** BLURB HERE ***
Juro Bystricky (1):
busybox: Avoid race building libbb
.../busybox-kbuild-race-fix-commit-d8e61bb.patch | 53 ++++++++++++++++++
.../commit-applet_tables-fix-commit-0dddbc1.patch | 61 ++++++++++++++++++++
.../busybox/busybox/makefile-libbb-race.patch | 34 +++++++++++
.../busybox/busybox/parallel-make-fix.patch | 65 ----------------------
meta/recipes-core/busybox/busybox_1.24.1.bb | 4 +-
5 files changed, 151 insertions(+), 66 deletions(-)
create mode 100644 meta/recipes-core/busybox/busybox/busybox-kbuild-race-fix-commit-d8e61bb.patch
create mode 100644 meta/recipes-core/busybox/busybox/commit-applet_tables-fix-commit-0dddbc1.patch
create mode 100644 meta/recipes-core/busybox/busybox/makefile-libbb-race.patch
delete mode 100644 meta/recipes-core/busybox/busybox/parallel-make-fix.patch
--
2.7.4
More information about the Openembedded-core
mailing list