* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:10 ` Vince Weaver
@ 2014-04-15 19:28 ` Vince Weaver
2014-04-15 19:30 ` Vince Weaver
2014-04-15 19:47 ` Christoph Lameter
2 siblings, 0 replies; 15+ messages in thread
From: Vince Weaver @ 2014-04-15 19:28 UTC (permalink / raw)
To: Vince Weaver
Cc: Russell King - ARM Linux, Christoph Lameter, Michal Marek,
linux-kernel, Jason Cooper, Grant Likely, Rob Herring
On Tue, 15 Apr 2014, Vince Weaver wrote:
> On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
>
> > Right, so the thing to do is to run a build with the commit applied,
> > without any -j arguments and V=1, logging the output (so that predictable
> > output can be generated).
> >
> > Then run the same thing with the commit reverted, again logging it. Then
> > diff the two and see what's different.
>
> OK, I captured the output. No diffs, as of course reverting things
> means one kernel was called 3.15-rc1 and one 3.15-rc1+ which meant more or
> less every line changed.
>
> It seems that on stock 3.15-rc1 (which fails to build) after running
> depmod it kicks into
>
> restore_upstream_debianization
>
> which goes down a path which causes the file permission failures
>
> Wheras 3.15-rc1 with the problem commit reverted this doesn't happen.
>
> This is a really weird bug, I've tried reverting individual hunks of the
> problem commit manually and it is not clear at all to me what is
> triggering this.
OK, in debian/image.mk we have this:
ifeq ($(strip $(HAVE_INST_PATH)),)
test ! -f System.map || cp System.map \
$(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
test ! -f System.map || chmod 644 \
$(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
cp $(kimagesrc) $(kimagedest)
else
$(restore_upstream_debianization)
$(MAKE) $(EXTRAV_ARG) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE) \
INSTALL_PATH=$(INT_IMAGE_DESTDIR) $(CROSS_ARG) $(KPKG_KBUILD_INSTALL_TARGET)
endif
So in the good case it goes down the if, in the bad case down the else.
I'm assuming that the ($(strip $(HAVE_INST_PATH)),) is being confused by
the INSTALL_DTBS_PATH introduced by the changeset.
So I guess that makes this a debian bug?
Vince
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:10 ` Vince Weaver
2014-04-15 19:28 ` Vince Weaver
@ 2014-04-15 19:30 ` Vince Weaver
2014-04-15 19:31 ` Russell King - ARM Linux
2014-04-15 19:37 ` Vince Weaver
2014-04-15 19:47 ` Christoph Lameter
2 siblings, 2 replies; 15+ messages in thread
From: Vince Weaver @ 2014-04-15 19:30 UTC (permalink / raw)
To: Vince Weaver
Cc: Russell King - ARM Linux, Christoph Lameter, Michal Marek,
linux-kernel, Jason Cooper, Grant Likely, Rob Herring
On Tue, 15 Apr 2014, Vince Weaver wrote:
> On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
>
> > Right, so the thing to do is to run a build with the commit applied,
> > without any -j arguments and V=1, logging the output (so that predictable
> > output can be generated).
> >
> > Then run the same thing with the commit reverted, again logging it. Then
> > diff the two and see what's different.
>
> OK, I captured the output. No diffs, as of course reverting things
> means one kernel was called 3.15-rc1 and one 3.15-rc1+ which meant more or
> less every line changed.
>
> It seems that on stock 3.15-rc1 (which fails to build) after running
> depmod it kicks into
>
> restore_upstream_debianization
>
> which goes down a path which causes the file permission failures
>
> Wheras 3.15-rc1 with the problem commit reverted this doesn't happen.
>
> This is a really weird bug, I've tried reverting individual hunks of the
> problem commit manually and it is not clear at all to me what is
> triggering this.
OK, in debian/image.mk we have this:
ifeq ($(strip $(HAVE_INST_PATH)),)
test ! -f System.map || cp System.map \
$(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
test ! -f System.map || chmod 644 \
$(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
cp $(kimagesrc) $(kimagedest)
else
$(restore_upstream_debianization)
$(MAKE) $(EXTRAV_ARG) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE) \
INSTALL_PATH=$(INT_IMAGE_DESTDIR) $(CROSS_ARG) $(KPKG_KBUILD_INSTALL_TARGET)
endif
So in the good case it goes down the if, in the bad case down the else.
I'm assuming that the ($(strip $(HAVE_INST_PATH)),) is being confused by
the INSTALL_DTBS_PATH introduced by the changeset.
So I guess that makes this a debian bug?
Vince
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:30 ` Vince Weaver
@ 2014-04-15 19:31 ` Russell King - ARM Linux
2014-04-15 19:39 ` Vince Weaver
2014-04-15 19:37 ` Vince Weaver
1 sibling, 1 reply; 15+ messages in thread
From: Russell King - ARM Linux @ 2014-04-15 19:31 UTC (permalink / raw)
To: Vince Weaver
Cc: Christoph Lameter, Michal Marek, linux-kernel, Jason Cooper,
Grant Likely, Rob Herring
On Tue, Apr 15, 2014 at 03:30:15PM -0400, Vince Weaver wrote:
> ifeq ($(strip $(HAVE_INST_PATH)),)
> test ! -f System.map || cp System.map \
> $(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
> test ! -f System.map || chmod 644 \
> $(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
> cp $(kimagesrc) $(kimagedest)
> else
> $(restore_upstream_debianization)
> $(MAKE) $(EXTRAV_ARG) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
> INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE) \
> INSTALL_PATH=$(INT_IMAGE_DESTDIR) $(CROSS_ARG) $(KPKG_KBUILD_INSTALL_TARGET)
> endif
>
>
> So in the good case it goes down the if, in the bad case down the else.
>
>
> I'm assuming that the ($(strip $(HAVE_INST_PATH)),) is being confused by
> the INSTALL_DTBS_PATH introduced by the changeset.
>
> So I guess that makes this a debian bug?
Hmm, any ideas what HAVE_INST_PATH is set to? It would be good to have
the complete picture on this bug. :)
Thanks.
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:31 ` Russell King - ARM Linux
@ 2014-04-15 19:39 ` Vince Weaver
2014-04-15 19:43 ` Russell King - ARM Linux
0 siblings, 1 reply; 15+ messages in thread
From: Vince Weaver @ 2014-04-15 19:39 UTC (permalink / raw)
To: Russell King - ARM Linux
Cc: Vince Weaver, Christoph Lameter, Michal Marek, linux-kernel,
Jason Cooper, Grant Likely, Rob Herring
On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
>
> Hmm, any ideas what HAVE_INST_PATH is set to? It would be good to have
> the complete picture on this bug. :)
In debian/ruleset/misc/version_vars.mk
HAVE_INST_PATH =$(call doit,grep -E '\(INSTALL_PATH\)' Makefile 2>/dev/null )
Vince
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:39 ` Vince Weaver
@ 2014-04-15 19:43 ` Russell King - ARM Linux
2014-04-15 19:56 ` Christoph Lameter
0 siblings, 1 reply; 15+ messages in thread
From: Russell King - ARM Linux @ 2014-04-15 19:43 UTC (permalink / raw)
To: Vince Weaver
Cc: Christoph Lameter, Michal Marek, linux-kernel, Jason Cooper,
Grant Likely, Rob Herring
On Tue, Apr 15, 2014 at 03:39:47PM -0400, Vince Weaver wrote:
> On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
> >
> > Hmm, any ideas what HAVE_INST_PATH is set to? It would be good to have
> > the complete picture on this bug. :)
>
> In debian/ruleset/misc/version_vars.mk
>
> HAVE_INST_PATH =$(call doit,grep -E '\(INSTALL_PATH\)' Makefile 2>/dev/null )
Ah, so that would match on:
export INSTALL_DTBS_PATH ?= $(INSTALL_PATH)/dtbs/$(KERNELRELEASE)
^^^^^^^^^^^^^^
So it's matching on use of INSTALL_PATH not whether INSTALL_PATH has been
defined. Interesting concept. :p
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:43 ` Russell King - ARM Linux
@ 2014-04-15 19:56 ` Christoph Lameter
0 siblings, 0 replies; 15+ messages in thread
From: Christoph Lameter @ 2014-04-15 19:56 UTC (permalink / raw)
To: srivastava
Cc: Russell King - ARM Linux, Vince Weaver, Michal Marek,
linux-kernel, Jason Cooper, Grant Likely, Rob Herring
Manoj: what is the right fix here?
On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
> On Tue, Apr 15, 2014 at 03:39:47PM -0400, Vince Weaver wrote:
> > On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
> > >
> > > Hmm, any ideas what HAVE_INST_PATH is set to? It would be good to have
> > > the complete picture on this bug. :)
> >
> > In debian/ruleset/misc/version_vars.mk
> >
> > HAVE_INST_PATH =$(call doit,grep -E '\(INSTALL_PATH\)' Makefile 2>/dev/null )
>
> Ah, so that would match on:
>
> export INSTALL_DTBS_PATH ?= $(INSTALL_PATH)/dtbs/$(KERNELRELEASE)
> ^^^^^^^^^^^^^^
>
> So it's matching on use of INSTALL_PATH not whether INSTALL_PATH has been
> defined. Interesting concept. :p
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:30 ` Vince Weaver
2014-04-15 19:31 ` Russell King - ARM Linux
@ 2014-04-15 19:37 ` Vince Weaver
1 sibling, 0 replies; 15+ messages in thread
From: Vince Weaver @ 2014-04-15 19:37 UTC (permalink / raw)
To: Vince Weaver
Cc: Russell King - ARM Linux, Christoph Lameter, Michal Marek,
linux-kernel, Jason Cooper, Grant Likely, Rob Herring, srivasta
On Tue, 15 Apr 2014, Vince Weaver wrote:
> On Tue, 15 Apr 2014, Vince Weaver wrote:
>
> > On Tue, 15 Apr 2014, Russell King - ARM Linux wrote:
> >
> > > Right, so the thing to do is to run a build with the commit applied,
> > > without any -j arguments and V=1, logging the output (so that predictable
> > > output can be generated).
> > >
> > > Then run the same thing with the commit reverted, again logging it. Then
> > > diff the two and see what's different.
> >
> > OK, I captured the output. No diffs, as of course reverting things
> > means one kernel was called 3.15-rc1 and one 3.15-rc1+ which meant more or
> > less every line changed.
> >
> > It seems that on stock 3.15-rc1 (which fails to build) after running
> > depmod it kicks into
> >
> > restore_upstream_debianization
> >
> > which goes down a path which causes the file permission failures
> >
> > Wheras 3.15-rc1 with the problem commit reverted this doesn't happen.
> >
> > This is a really weird bug, I've tried reverting individual hunks of the
> > problem commit manually and it is not clear at all to me what is
> > triggering this.
>
> OK, in debian/image.mk we have this:
>
> ifeq ($(strip $(HAVE_INST_PATH)),)
> test ! -f System.map || cp System.map \
> $(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
> test ! -f System.map || chmod 644 \
> $(TMPTOP)/$(IMAGEDIR)/System.map-$(KERNELRELEASE);
> cp $(kimagesrc) $(kimagedest)
> else
> $(restore_upstream_debianization)
> $(MAKE) $(EXTRAV_ARG) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
> INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE) \
> INSTALL_PATH=$(INT_IMAGE_DESTDIR) $(CROSS_ARG) $(KPKG_KBUILD_INSTALL_TARGET)
> endif
>
>
> So in the good case it goes down the if, in the bad case down the else.
>
>
> I'm assuming that the ($(strip $(HAVE_INST_PATH)),) is being confused by
> the INSTALL_DTBS_PATH introduced by the changeset.
>
> So I guess that makes this a debian bug?
And it looks like this was reported to the list earlier and I somehow
missed it :(
https://lkml.org/lkml/2014/4/3/333
Vince
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [bisected] broken make-kpkg kernel build in 3.15-rc1
2014-04-15 19:10 ` Vince Weaver
2014-04-15 19:28 ` Vince Weaver
2014-04-15 19:30 ` Vince Weaver
@ 2014-04-15 19:47 ` Christoph Lameter
2 siblings, 0 replies; 15+ messages in thread
From: Christoph Lameter @ 2014-04-15 19:47 UTC (permalink / raw)
To: Vince Weaver
Cc: Russell King - ARM Linux, Michal Marek, linux-kernel,
Jason Cooper, Grant Likely, Rob Herring
On Tue, 15 Apr 2014, Vince Weaver wrote:
> > Then run the same thing with the commit reverted, again logging it. Then
> > diff the two and see what's different.
>
> OK, I captured the output. No diffs, as of course reverting things
> means one kernel was called 3.15-rc1 and one 3.15-rc1+ which meant more or
> less every line changed.
Well just add another fake patch and they both will have the same name...
The diff would be very helpful.
^ permalink raw reply [flat|nested] 15+ messages in thread