AnsweredAssumed Answered

bitbake -c populate_sdk_ext failed in imx-4.9.88-2.0.0_ga

Question asked by 计龙 杨 on Sep 24, 2018
Latest reply on Dec 9, 2019 by Lars Andersson

I'm building the latest source on for imx6q:

repo init -u -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml

DISTRO=fsl-imx-fb MACHINE=imx6qsabreauto source -b build-fb

And then bitbake core-image-minimal -c populate_sdk_ext, but get failed:

ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
*** 0002:copy_buildsystem(d)
File: '/home/yang/imx-yocto-bsp/sources/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 331, function: copy_buildsystem
    0327:            f.write('TCLIBCAPPEND = ""\n')
    0328:            f.write('DL_DIR = "${TOPDIR}/downloads"\n')
    0330:            f.write('INHERIT += "%s"\n' % 'uninative')
*** 0331:            f.write('UNINATIVE_CHECKSUM[%s] = "%s"\n\n' % (d.getVar('BUILD_ARCH'), uninative_checksum))
    0332:            f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False))
    0334:            # Some classes are not suitable for SDK, remove them from INHERIT                                                    
    0335:            f.write('INHERIT_remove = "%s"\n' % d.getVar('SDK_INHERIT_BLACKLIST', False))                                        
Exception: UnboundLocalError: local variable 'uninative_checksum' referenced before assignment                                             
ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: /home/yang/imx-yocto-bsp/build-fb/tmp/work/imx6qsabreauto-poky-linux-gnueabi/core-image-minimal/1.0-r
ERROR: Task (/home/yang/imx-yocto-bsp/sources/poky/meta/recipes-core/images/ failed with exit co
de '1'