kernel build fail after update
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'
Signature · 3 lines
Nanjing Jilong Yi Qingliang [email protected]
Quoted 8 lines · Yi Qingliang
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.
Quoted 2 lines
I found one patch 'Use hardlinks for
do_populate_sysrootfor 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.
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Yi Qingliang
I found one patch 'Use hardlinks for
do_populate_sysrootfor 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.
Quoted 5 lines · Phil Blundell
Quoted 4 lines · Phil Blundell
Quoted 2 lines · Yi Qingliang
I found one patch 'Use hardlinks for
do_populate_sysrootfor speed' may be related with this error.
Quoted 8 lines
Quoted 2 lines
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
13259459e200a237ca486cbe1123a0b0a4d1eebfthen this is indeed specific to kernel.bbclass.p.
Yes, that is it.
Signature · 3 lines
Nanjing Jilong Yi Qingliang [email protected]
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
Quoted 65 lines · Yi Qingliang
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_sysrootfor 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'