On master:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a this problem occurs. git bisect says that it started with commit fd1b82e0bd13cfc9f35c60505b97d4cb990afff2. Steps to reproduce: 1. Add INHERIT += "rm_work" to local.conf 2. bitbake core-image-minimal 3. bitbake core-image-minimal The second build will fail with a message similar to: NOTE: Executing RunQueue Tasks ERROR: core-image-minimal-1.0-r0 do_image: Function failed: prelink_image (log file is located at /home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image.207) ERROR: Logfile of failure stored in: /home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image.207 Log data follows: | DEBUG: Executing python function do_image | NOTE: Executing mklibs_optimize_image ... | DEBUG: Executing shell function mklibs_optimize_image | DEBUG: Shell function mklibs_optimize_image finished | NOTE: Executing prelink_setup ... | DEBUG: Executing python function prelink_setup | DEBUG: Python function prelink_setup finished | NOTE: Executing prelink_image ... | DEBUG: Executing shell function prelink_image | du: cannot access '/home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs': No such file or directory | Size before prelinking . | cp: cannot create regular file '/home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/prelink.conf': No such file or directory | WARNING: /home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.prelink_image.207:1 exit 1 from 'cp /home/rewitt/builds/poky-builds/test/tmp/sysroots/x86_64-linux/etc/prelink.conf /home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/prelink.conf' | DEBUG: Python function do_image finished | ERROR: Function failed: prelink_image (log file is located at /home/rewitt/builds/poky-builds/test/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image.207) ERROR: Task (/home/rewitt/src/poky-test/meta/recipes-core/images/core-image-minimal.bb:do_image) failed with exit code '1' NOTE: Tasks Summary: Attempted 2217 tasks of which 2215 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/rewitt/src/poky-test/meta/recipes-core/images/core-image-minimal.bb:do_image Summary: There was 1 ERROR message shown, returning a non-zero exit code.
*** Bug 10770 has been marked as a duplicate of this bug. ***
I can't replicate this. Randy, can you replicate with a clean build directory and a template local.conf?
(In reply to comment #2) > I can't replicate this. Randy, can you replicate with a clean build > directory and a template local.conf? Ross, I just reproduced this with a clean checkout of poky and a new build directory. I also reproduced it in a debian container. I also tried reverting fd1b82e0bd13cfc9f35c60505b97d4cb990afff2, and it does fix it for me.
Merged in oe-core 3206f408e908870629eb47afac6249a3c9497a66.
Verified in 573c646d4cc62dcd0c230381df4940bdf314d495