From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWjTZ-0004BT-Cu for qemu-devel@nongnu.org; Mon, 29 Apr 2013 04:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UWjTU-0004oE-73 for qemu-devel@nongnu.org; Mon, 29 Apr 2013 04:30:21 -0400 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:33525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWjJN-00017u-Ji for qemu-devel@nongnu.org; Mon, 29 Apr 2013 04:19:49 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm19so2517036bkc.16 for ; Mon, 29 Apr 2013 01:19:48 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <517E2D17.4020401@redhat.com> Date: Mon, 29 Apr 2013 10:19:35 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1367172276-23293-1-git-send-email-riegamaths@gmail.com> In-Reply-To: <1367172276-23293-1-git-send-email-riegamaths@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Makefile: Fix build breakage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dunrong Huang Cc: Blue Swirl , Peter Crosthwaite , qemu-devel Il 28/04/2013 20:04, Dunrong Huang ha scritto: > The following error occurs when building dtc module: > > CHK version_gen.h > CC libfdt/fdt.o > cc1: error: dtc: No such file or directory [-Werror] > cc1: all warnings being treated as errors > make[1]: *** [libfdt/fdt.o] Error 1 > make: *** [subdir-dtc] Error 2 > > In rules.mak, "-I$( building submodule dct. Due to the using of "-Wmissing-include-dirs, > a warning would be rarsed. To avoid it, use dtc as the first prerequisite > so that "$(^D)" was expanded to "." > > Cc: Peter Crosthwaite > Cc: Blue Swirl > Signed-off-by: Dunrong Huang > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 8aca92f..64b0b1b 100644 > --- a/Makefile > +++ b/Makefile > @@ -148,7 +148,7 @@ $(SRC_PATH)/pixman/configure: > DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_srcdir=$(SRC_PATH)/dtc/libfdt > DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS) -I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt > > -subdir-dtc:dtc/libfdt dtc/tests > +subdir-dtc:dtc dtc/libfdt dtc/tests > $(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,) > > dtc/%: > Does it work if the "-I$(