[yocto] Lighttpd recipe is falling ERROR: Error executing a python function

Gary Thomas gary at mlbassoc.com
Wed Sep 19 05:14:50 PDT 2012


On 2012-09-19 06:08, Tarek El-Sherbiny wrote:
> I would like to build lighttpd for my imx6 project.
>
> Her is the error I'm getting after I type bitbake lighttpd
>
> NOTE: Resolving any missing task queue dependencies
> NOTE: Preparing runqueue
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> NOTE: Running task 644 of 885 (ID: 9, /home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb <http://lighttpd_1.4.30.bb>, do_package)
> NOTE: Running task 882 of 885 (ID: 3, /home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb <http://lighttpd_1.4.30.bb>, do_populate_sysroot)
> NOTE: package lighttpd-1.4.30-r12: task do_package: Started
> NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Started
> NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Succeeded
> ERROR: Error executing a python function in /home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb <http://lighttpd_1.4.30.bb>:
> AttributeError: 'NoneType' object has no attribute 'split'
>
> ERROR: The stack trace of python calls that resulted in this exception/failure was:
> ERROR:   File "populate_packages", line 323, in <module>
> ERROR:
> ERROR:   File "populate_packages", line 115, in populate_packages
> ERROR:
> ERROR:   File "populate_packages", line 72, in systemd_check_services
> ERROR:
> ERROR: The code that was being executed was:
> ERROR:      0319:bb.note("%s contains dangling symlink to %s" % (pkg, l))
> ERROR:      0320:d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
> ERROR:      0321:
> ERROR:      0322:
> ERROR:  *** 0323:populate_packages(d)
> ERROR:      0324:
> ERROR: (file: 'populate_packages', lineno: 323, function: <module>)
> ERROR:      0111:for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():
> ERROR:      0112:if d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1) and d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1).strip():
> ERROR:      0113:systemd_generate_package_scripts(pkg_systemd)
> ERROR:      0114:systemd_add_rdepends(pkg_systemd)
> ERROR:  *** 0115:systemd_check_services()
> ERROR:      0116:        lighttpd_libdir = d.expand('/usr/lib')
> ERROR:      0117:        do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
> ERROR:      0118:def update_rcd_package(pkg):
> ERROR:      0119:bb.debug(1, 'adding update-rc.d calls to postinst/postrm for %s' % pkg)
> ERROR: (file: 'populate_packages', lineno: 115, function: populate_packages)
> ERROR: Function failed: populate_packages
> ERROR: Logfile of failure stored in: /home/telsherbiny/work/fsl/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/lighttpd-1.4.30-r12/temp/log.do_package.32369
> NOTE: package lighttpd-1.4.30-r12: task do_package: Failed
> ERROR: Task 9 (/home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb <http://lighttpd_1.4.30.bb>, do_package) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 882 tasks of which 880 didn't need to be rerun and 1 failed.
>
> Summary: 1 task failed:
>    /home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb <http://lighttpd_1.4.30.bb>, do_package
> Summary: There were 27 ERROR messages shown, returning a non-zero exit code.
>
>
> Can anyone help to solve this problem?

It would be necessary to see your recipe: lighttpd_1.4.30.bb
(and any associated files)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list