Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195AbbG3RAh (ORCPT ); Thu, 30 Jul 2015 13:00:37 -0400 Received: from mail1.windriver.com ([147.11.146.13]:54755 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbbG3RAd (ORCPT ); Thu, 30 Jul 2015 13:00:33 -0400 Date: Thu, 30 Jul 2015 13:00:18 -0400 From: Paul Gortmaker To: Greg Kroah-Hartman CC: David Herrmann , Shuah Khan , , , Daniel Mack , Djalal Harouni Subject: Re: [PATCH] kdbus/samples: skip on CROSS_COMPILE Message-ID: <20150730170018.GH18685@windriver.com> References: <1438272805-19029-1-git-send-email-dh.herrmann@gmail.com> <20150730163307.GA20048@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150730163307.GA20048@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2077 Lines: 66 [Re: [PATCH] kdbus/samples: skip on CROSS_COMPILE] On 30/07/2015 (Thu 09:33) Greg Kroah-Hartman wrote: > On Thu, Jul 30, 2015 at 06:13:25PM +0200, David Herrmann wrote: > > Apparently we cannot rely on up-to-date kernel headers to be available > > when cross-compiling, not even for HOSTCC. That's sad, but it's how it > > is. Skip samples on cross-compiles as suggested by Paul, so allmodconfig > > runs smoothly again. > > > > Tested-by: Paul Gortmaker > > Signed-off-by: David Herrmann > > --- > > samples/kdbus/Makefile | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile > > index 137f842..dbd9de8 100644 > > --- a/samples/kdbus/Makefile > > +++ b/samples/kdbus/Makefile > > @@ -1,9 +1,13 @@ > > # kbuild trick to avoid linker error. Can be omitted if a module is built. > > obj- := dummy.o > > > > +ifndef CROSS_COMPILE > > This really feels like the wrong solution. > > > + > > hostprogs-$(CONFIG_SAMPLE_KDBUS) += kdbus-workers > > > > always := $(hostprogs-y) > > > > HOSTCFLAGS_kdbus-workers.o += -I$(objtree)/usr/include > > HOSTLOADLIBES_kdbus-workers := -lrt > > + > > +endif > > Shuah, how should we fix this "properly"? How is this resolved for the > kernel test scripts, it should have the same issue that the samples do. If you guys want to reproduce it, in order to figure out what mips does with its headers that no other arch does, it should be as simple as: wget https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.6.3/x86_64-gcc-4.6.3-nolibc_mips-linux.tar.xz export CROSS_COMPILE=mips-linux- export ARCH=mips cd kernel-source make allmodconfig make -j16 samples/ Paul. -- > > thanks, > > greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/