8 Replies Latest reply on Jan 9, 2015 4:50 PM by CMata_Intel

    Task 8 do_rootfs error

    wangfengshe

      I have successfully built the kernel in May.This time i want to menuconfig the wlan.I fellow the steps:

      #bitbake linux-yocto-clanton -c menuconfig

      #bitbake linux-yocto-clanton -c compile -f

      Above those steps,there is no error.Then i run #bitbake image-full-galileo,it shows the error like the following:

      Collected errors:

      |  * satisfy_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-sdk:

      |  *    pkgconfig *     ldd *

      |  * opkg_install_cmd: Cannot install package packagegroup-core-sdk.

      | ERROR: Function failed: do_rootfs (see /home/wy/Galileo_SD/meta-clanton_v1.0.0 /yocto_build/tmp/work/clanton-poky-linux-uclibc/image-full-galileo/1.0-r0/temp/log.do_rootfs.12380 for further information)

      ERROR: Task 8 (/home/wy/Galileo_SD/meta-clanton_v1.0.0/meta-clanton-distro/recipes-core/images/image-full-galileo.bb, do_rootfs) failed with exit code '1'

      NOTE: Tasks Summary: Attempted 3363 tasks of which 3360 didn't need to be rerun and 1 failed.

      No currently running tasks (3362 of 3365)

       

       

      Summary: 1 task failed:

        /home/wy/Galileo_SD/meta-clanton_v1.0.0/meta-clanton-distro/recipes-core/image         s/image-full-galileo.bb, do_rootfs

      Summary: There were 2 WARNING messages shown.

      Summary: There was 1 ERROR message shown, returning a non-zero exit code.

       

      I don't know what's wrong. Any one can help me?

        • 1. Re: Task 8 do_rootfs error
          Intel_Peter

          Hello wangfengshe,

           

          A user had a similar issue and he managed to solve it commenting a line in the image.bb file, why don't you check meta-clanton_v1.0.1/poky/meta/recipes-core/images/core-image-minimal-initramfs.bb, do_rootfs failed and see if it helps you?

           

          Peter.

          • 2. Re: Task 8 do_rootfs error
            wangfengshe

            Hi,Peter,

              I have payed attention to that post and did it before,but it is not helpful.I think my problem is not same to him.A user had a similiar issueError:Task 8 image-full-galileo.bb, do_rootfs,but it have not a correct answer.Could you give me the other idea? Thank you very much.

            • 3. Re: Task 8 do_rootfs error
              wangfengshe

              Hi,Peter,

              My problem is

              * satisfy_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-sdk:

              |  *    pkgconfig *     ldd *

              |  * opkg_install_cmd: Cannot install package packagegroup-core-sdk.

              but his problem is

              | sed: can't find label for jump to `huy/galileo/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux/core-image-minimal-initramfs/1.0-r0/rootfs/var/lib/opkg/status'

              • 4. Re: Task 8 do_rootfs error
                Intel_Peter

                Hello wangfengshe,

                 

                Could you attach the log.do_rootfs file? I can see from your original port that it is stored in /home/wy/Galileo_SD/meta-clanton_v1.0.0 /yocto_build/tmp/work/clanton-poky-linux-uclibc/image-full-galileo/1.0-r0/temp/log.do_rootfs

                 

                Peter.

                • 5. Re: Task 8 do_rootfs error
                  linux-yocto-clanton

                  Hi everyone,

                   

                  I got an error when I rebuilt kernel.

                  I just try this command "bitbake linux-yocto-clanton -c menuconfig".

                  But I got an error like following:

                   

                  [cstor@cstor yocto_build]$ bitbake linux-yocto-clanton -c menuconfig
                  Loading cache: 100% |#########################################################################################################################################################################################################################################| ETA:  00:00:00
                  Loaded 1619 entries from dependency cache.

                  Build Configuration:
                  BB_VERSION        = "1.18.0"
                  BUILD_SYS         = "x86_64-linux"
                  NATIVELSBSTRING   = "CentOS-6.3"
                  TARGET_SYS        = "i586-poky-linux-uclibc"
                  MACHINE           = "clanton"
                  DISTRO            = "clanton-tiny"
                  DISTRO_VERSION    = "1.4.2"
                  TUNE_FEATURES     = "m32 i586"
                  TARGET_FPU        = ""
                  meta             
                  meta-yocto       
                  meta-yocto-bsp    = "clanton:3b503a5edbc588e192bacfff7f14b027c67cac86"
                  meta-intel        = "clanton:048def7bae8e3e1a11c91f5071f99bdcf8e6dd16"
                  meta-oe           = "clanton:13ae5105ee30410136beeae66ec41ee4a8a2e2b0"
                  meta-clanton-distro
                  meta-clanton-bsp  = "<unknown>:<unknown>"

                  NOTE: Resolving any missing task queue dependencies
                  NOTE: Preparing runqueue
                  NOTE: Executing SetScene Tasks
                  NOTE: Executing RunQueue Tasks
                  ERROR: Error executing a python function in /TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb:
                  OSError: [Errno 13] Permission denied

                  ERROR: The stack trace of python calls that resulted in this exception/failure was:
                  ERROR:   File "do_menuconfig", line 22, in <module>
                  ERROR:
                  ERROR:   File "do_menuconfig", line 8, in do_menuconfig
                  ERROR:
                  ERROR:   File "terminal.bbclass", line 55, in oe_terminal
                  ERROR:
                  ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 173, in spawn_preferred
                  ERROR:     spawn(terminal.name, sh_cmd, title, env, d)
                  ERROR:
                  ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 188, in spawn
                  ERROR:     pipe = terminal(sh_cmd, title, env, d)
                  ERROR:
                  ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 50, in __init__
                  ERROR:     Terminal.__init__(self, sh_cmd, title, env, d)
                  ERROR:
                  ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 33, in __init__
                  ERROR:     Popen.__init__(self, fmt_sh_cmd, env=env)
                  ERROR:
                  ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/bitbake/lib/bb/process.py", line 65, in __init__
                  ERROR:     subprocess.Popen.__init__(self, *args, **options)
                  ERROR:
                  ERROR:   File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
                  ERROR:     errread, errwrite)
                  ERROR:
                  ERROR:   File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
                  ERROR:     raise child_exception
                  ERROR:
                  ERROR: The code that was being executed was:
                  ERROR:      0018:            bb.note("Configuration changed, recompile will be forced")
                  ERROR:      0019:            bb.build.write_taint('do_compile', d)
                  ERROR:      0020:
                  ERROR:      0021:
                  ERROR:  *** 0022:do_menuconfig(d)
                  ERROR:      0023:
                  ERROR: [From file: 'do_menuconfig', lineno: 22, function: <module>]
                  ERROR:      0004:        mtime = os.path.getmtime(".config")
                  ERROR:      0005:    except OSError:
                  ERROR:      0006:        mtime = 0
                  ERROR:      0007:
                  ERROR:  *** 0008:    oe_terminal("/bin/bash -c \"make menuconfig; if [ $? -ne 0 ]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; fi\"", 'linux-yocto-clanton Configuration', d)
                  ERROR:      0009:
                  ERROR:      0010:    # FIXME this check can be removed when the minimum bitbake version has been bumped
                  ERROR:      0011:    if hasattr(bb.build, 'write_taint'):
                  ERROR:      0012:        try:
                  ERROR: [From file: 'do_menuconfig', lineno: 8, function: do_menuconfig]
                  ERROR:      0051:        except oe.terminal.ExecutionError as exc:
                  ERROR:      0052:            bb.fatal('Unable to spawn terminal %s: %s' % (terminal, exc))
                  ERROR:      0053:
                  ERROR:      0054:    try:
                  ERROR:  *** 0055:        oe.terminal.spawn_preferred(command, title, None, d)
                  ERROR:      0056:    except oe.terminal.NoSupportedTerminals:
                  ERROR:      0057:        bb.fatal('No valid terminal found, unable to open devshell')
                  ERROR:      0058:    except oe.terminal.ExecutionError as exc:
                  ERROR:      0059:        bb.fatal('Unable to spawn terminal %s: %s' % (terminal, exc))
                  ERROR: [From file: 'terminal.bbclass', lineno: 55, function: oe_terminal]
                  ERROR: Function failed: do_menuconfig
                  ERROR: Logfile of failure stored in: /TanChonggang/quark/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_menuconfig.4939
                  ERROR: Task 7 (/TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_menuconfig) failed with exit code '1'
                  NOTE: Tasks Summary: Attempted 219 tasks of which 218 didn't need to be rerun and 1 failed.

                  Summary: 1 task failed:
                    /TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_menuconfig
                  Summary: There were 58 ERROR messages shown, returning a non-zero exit code.
                  [cstor@cstor yocto_build]$

                   

                  If anyone can help me?

                   

                  Thanks

                  • 6. Re: Task 8 do_rootfs error
                    wangfengshe

                    Hi Peter

                    This is my log.do_rootfs file.1.jpg

                    QQ截图20141227224512.pngQQ截图20141227224529.png

                    • 7. Re: Task 8 do_rootfs error
                      Intel_Peter

                      Hello wangfengshe,

                       

                      Taking a look at the last picture you attached I can see your missing a couple dependencies, pkgconfig and ldd, why don't you try adding them too?

                       

                      Peter.

                      • 8. Re: Task 8 do_rootfs error
                        CMata_Intel

                        Hi wangfengshe

                         

                        Do you still having problems with this? Does the last suggestion worked for you?

                         

                        Regards;

                        CMata