All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel build fail after update
@ 2013-11-18 23:21 Yi Qingliang
  2013-11-19  9:24 ` Phil Blundell
  2013-11-20  4:32 ` ChenQi
  0 siblings, 2 replies; 5+ messages in thread
From: Yi Qingliang @ 2013-11-18 23:21 UTC (permalink / raw)
  To: openembedded-core

after update poky, I got error when compile my own kernel, it looks like there 
is no directory '/mnt/src/kl360-build/tmp/work/kl360-jilong-linux-
gnueabi/linux-jilong/3.9.4-gitAUTOINC+5dbff4f559/image'.

in my bb file, I only inherit kernel.

I found one patch 'Use hardlinks for do_populate_sysroot for speed' may be 
related with this error.





ERROR: Error executing a python function in /mnt/src/optimus/poky/../meta-
jilong/recipes-kernel/linux/linux-jilong.bb:

The stack trace of python calls that resulted in this exception/failure was:
File: 'sysroot_stage_all', lineno: 6, function: <module>
     0002:def sysroot_stage_all(d):
     0003:    oe.path.copyhardlinktree(d.expand("/mnt/src/kl360-
build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/image/usr/src/kernel"), d.expand("/mnt/src/kl360-
build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/sysroot-destdir//usr/src/kernel"))
     0004:
     0005:
 *** 0006:sysroot_stage_all(d)
     0007:
File: 'sysroot_stage_all', lineno: 3, function: sysroot_stage_all
     0001:
     0002:def sysroot_stage_all(d):
 *** 0003:    oe.path.copyhardlinktree(d.expand("/mnt/src/kl360-
build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/image/usr/src/kernel"), d.expand("/mnt/src/kl360-
build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/sysroot-destdir//usr/src/kernel"))
     0004:
     0005:
     0006:sysroot_stage_all(d)
     0007:
File: '/mnt/src/optimus/poky/meta/lib/oe/path.py', lineno: 93, function: 
copyhardlinktree
     0089:    bb.utils.mkdirhier(dst)
     0090:    if os.path.isdir(src) and not len(os.listdir(src)):
     0091:        return
     0092:
 *** 0093:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0094:        # Need to copy directories only with tar first since cp will 
error if two
     0095:        # writers try and create a directory at the same time
     0096:        cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -p --
files-from - --no-recursion | tar -xf - -C %s' % (src, src, dst)
     0097:        check_output(cmd, shell=True, stderr=subprocess.STDOUT)
Exception: OSError: [Errno 2] No such file or directory: '/mnt/src/kl360-
build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/image/usr/src/kernel'

ERROR: Function failed: sysroot_stage_all
ERROR: Logfile of failure stored in: /mnt/src/kl360-build/tmp/work/kl360-
jilong-linux-gnueabi/linux-jilong/3.9.4-
gitAUTOINC+5dbff4f559/temp/log.do_populate_sysroot.5146
ERROR: Task 3 (/mnt/src/optimus/poky/../meta-jilong/recipes-
kernel/linux/linux-jilong.bb, do_populate_sysroot) failed with exit code '1'


-- 
Nanjing Jilong
Yi Qingliang
niqingliang2003@gmail.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kernel build fail after update
  2013-11-18 23:21 kernel build fail after update Yi Qingliang
@ 2013-11-19  9:24 ` Phil Blundell
  2013-11-19 11:35   ` Phil Blundell
  2013-11-20  4:32 ` ChenQi
  1 sibling, 1 reply; 5+ messages in thread
From: Phil Blundell @ 2013-11-19  9:24 UTC (permalink / raw)
  To: Yi Qingliang; +Cc: openembedded-core

On Tue, 2013-11-19 at 07:21 +0800, Yi Qingliang wrote:
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'sysroot_stage_all', lineno: 6, function: <module>
>      0002:def sysroot_stage_all(d):
>      0003:    oe.path.copyhardlinktree(d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/image/usr/src/kernel"), d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/sysroot-destdir//usr/src/kernel"))

I've been seeing this too (sporadically) and Martin also reported that
it afflicts one of his jenkinses.  What seems to be happening is that,
for unknown reasons, bitbake is omitting to run do_install() on the
kernel before calling do_populate_sysroot(), despite the fact that there
clearly is a declared dependency between these two tasks.

>I found one patch 'Use hardlinks for do_populate_sysroot for speed' 
>may be related with this error.

The failure only seems to occur with the kernel, whereas I think that
patch applies to all recipes.  But that's not to say it isn't related,
of course.  What makes you think that this is the problem?

p.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kernel build fail after update
  2013-11-19  9:24 ` Phil Blundell
@ 2013-11-19 11:35   ` Phil Blundell
  2013-11-20  0:35     ` Yi Qingliang
  0 siblings, 1 reply; 5+ messages in thread
From: Phil Blundell @ 2013-11-19 11:35 UTC (permalink / raw)
  To: Yi Qingliang; +Cc: openembedded-core

On Tue, 2013-11-19 at 09:24 +0000, Phil Blundell wrote:
> On Tue, 2013-11-19 at 07:21 +0800, Yi Qingliang wrote:
> >I found one patch 'Use hardlinks for do_populate_sysroot for speed' 
> >may be related with this error.
> 
> The failure only seems to occur with the kernel, whereas I think that
> patch applies to all recipes. 

I realise now that this isn't true; assuming you meant
13259459e200a237ca486cbe1123a0b0a4d1eebf then this is indeed specific to
kernel.bbclass.

p.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kernel build fail after update
  2013-11-19 11:35   ` Phil Blundell
@ 2013-11-20  0:35     ` Yi Qingliang
  0 siblings, 0 replies; 5+ messages in thread
From: Yi Qingliang @ 2013-11-20  0:35 UTC (permalink / raw)
  To: Phil Blundell; +Cc: openembedded-core

On Tuesday, November 19, 2013 11:35:14 AM Phil Blundell wrote:
> On Tue, 2013-11-19 at 09:24 +0000, Phil Blundell wrote:
> > On Tue, 2013-11-19 at 07:21 +0800, Yi Qingliang wrote:
> > >I found one patch 'Use hardlinks for do_populate_sysroot for speed'
> > >may be related with this error.
> > 
> > The failure only seems to occur with the kernel, whereas I think that
> > patch applies to all recipes.
> 
> I realise now that this isn't true; assuming you meant
> 13259459e200a237ca486cbe1123a0b0a4d1eebf then this is indeed specific to
> kernel.bbclass.
> 
> p.

Yes, that is it. 

-- 
Nanjing Jilong
Yi Qingliang
niqingliang2003@gmail.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kernel build fail after update
  2013-11-18 23:21 kernel build fail after update Yi Qingliang
  2013-11-19  9:24 ` Phil Blundell
@ 2013-11-20  4:32 ` ChenQi
  1 sibling, 0 replies; 5+ messages in thread
From: ChenQi @ 2013-11-20  4:32 UTC (permalink / raw)
  To: openembedded-core

I met the same error when I inherited 'rm_work' in local.conf and 
performed a world build.

This is reproducible with the latest code.

1. add in local.conf
     INHERIT += "rm_work"
2. bitbake world

//Chen Qi


On 11/19/2013 07:21 AM, Yi Qingliang wrote:
> after update poky, I got error when compile my own kernel, it looks like there
> is no directory '/mnt/src/kl360-build/tmp/work/kl360-jilong-linux-
> gnueabi/linux-jilong/3.9.4-gitAUTOINC+5dbff4f559/image'.
>
> in my bb file, I only inherit kernel.
>
> I found one patch 'Use hardlinks for do_populate_sysroot for speed' may be
> related with this error.
>
>
>
>
>
> ERROR: Error executing a python function in /mnt/src/optimus/poky/../meta-
> jilong/recipes-kernel/linux/linux-jilong.bb:
>
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'sysroot_stage_all', lineno: 6, function: <module>
>       0002:def sysroot_stage_all(d):
>       0003:    oe.path.copyhardlinktree(d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/image/usr/src/kernel"), d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/sysroot-destdir//usr/src/kernel"))
>       0004:
>       0005:
>   *** 0006:sysroot_stage_all(d)
>       0007:
> File: 'sysroot_stage_all', lineno: 3, function: sysroot_stage_all
>       0001:
>       0002:def sysroot_stage_all(d):
>   *** 0003:    oe.path.copyhardlinktree(d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/image/usr/src/kernel"), d.expand("/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/sysroot-destdir//usr/src/kernel"))
>       0004:
>       0005:
>       0006:sysroot_stage_all(d)
>       0007:
> File: '/mnt/src/optimus/poky/meta/lib/oe/path.py', lineno: 93, function:
> copyhardlinktree
>       0089:    bb.utils.mkdirhier(dst)
>       0090:    if os.path.isdir(src) and not len(os.listdir(src)):
>       0091:        return
>       0092:
>   *** 0093:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
>       0094:        # Need to copy directories only with tar first since cp will
> error if two
>       0095:        # writers try and create a directory at the same time
>       0096:        cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -p --
> files-from - --no-recursion | tar -xf - -C %s' % (src, src, dst)
>       0097:        check_output(cmd, shell=True, stderr=subprocess.STDOUT)
> Exception: OSError: [Errno 2] No such file or directory: '/mnt/src/kl360-
> build/tmp/work/kl360-jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/image/usr/src/kernel'
>
> ERROR: Function failed: sysroot_stage_all
> ERROR: Logfile of failure stored in: /mnt/src/kl360-build/tmp/work/kl360-
> jilong-linux-gnueabi/linux-jilong/3.9.4-
> gitAUTOINC+5dbff4f559/temp/log.do_populate_sysroot.5146
> ERROR: Task 3 (/mnt/src/optimus/poky/../meta-jilong/recipes-
> kernel/linux/linux-jilong.bb, do_populate_sysroot) failed with exit code '1'
>
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-20  4:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-18 23:21 kernel build fail after update Yi Qingliang
2013-11-19  9:24 ` Phil Blundell
2013-11-19 11:35   ` Phil Blundell
2013-11-20  0:35     ` Yi Qingliang
2013-11-20  4:32 ` ChenQi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.