Failing out-of-tree build since r26139

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 19 12:15:02 UTC 2009


On Saturday 18 April 2009 19:15, Bjørn Forsman wrote:
> Hi all,
> 
> I have found that BusyBox SVN r26139 (and up to the latest r26151) breaks
> out-of-tree builds. r26138 works. Below is the log of my breaking r26139
> build:
> 
> busybox $ make O=../../build/busybox/ install
>   Using
> /media/raid/bjornfor/documents/dev/os/linux/minibuildroot/src/busybox as
> source for busybox
>   GEN
> /media/raid/bjornfor/documents/dev/os/linux/minibuildroot/build/busybox/Makefile
>   SPLIT   include/autoconf.h -> include/config/*
>   GEN     include/bbconfigopts.h
>   HOSTCC  applets/usage
> /media/raid/bjornfor/documents/dev/os/linux/minibuildroot/src/busybox/applets/usage.c:
> In function ‘main’:
> /media/raid/bjornfor/documents/dev/os/linux/minibuildroot/src/busybox/applets/usage.c:32:
> warning: ignoring return value of ‘write’, declared with attribute
> warn_unused_result
>   GEN     include/usage_compressed.h
> /bin/sh: applets/usage_compressed: No such file or directory
> make[2]: *** [include/usage_compressed.h] Error 127
> make[1]: *** [applets] Error 2
> make: *** [install] Error 2
> 
> I am no build system expert so I was hoping someone else could look into
> this :-)

Does it work if you replace applets/Kbuild with attached file?
--
vda


applets/Kbuild
-------------- next part --------------
# Makefile for busybox
#
# Copyright (C) 1999-2005 by Erik Andersen <andersen at codepoet.org>
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.

obj-y :=
obj-y += applets.o

hostprogs-y:=
hostprogs-y += usage applet_tables

always:= $(hostprogs-y)

# Generated files need additional love

# This trick decreases amount of rebuilds
# if tree is merely renamed/copied
ifeq ($(src),$(obj))
srctree_slash =
else
srctree_slash = $(srctree)/
endif


HOSTCFLAGS_usage.o = -I$(srctree_slash)include

applets/applets.o: include/usage_compressed.h include/applet_tables.h

applets/usage:         .config $(srctree_slash)applets/usage_compressed
applets/applet_tables: .config

quiet_cmd_gen_usage_compressed = GEN     include/usage_compressed.h
      cmd_gen_usage_compressed = $(srctree_slash)applets/usage_compressed include/usage_compressed.h applets

include/usage_compressed.h: applets/usage $(srctree_slash)applets/usage_compressed
	$(call cmd,gen_usage_compressed)

quiet_cmd_gen_applet_tables = GEN     include/applet_tables.h
      cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h

include/applet_tables.h: applets/applet_tables
	$(call cmd,gen_applet_tables)


More information about the busybox mailing list