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 Sep 25, 2018 by 计龙 杨

I'm building the latest source on codeaurora.org for imx6q:

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml

DISTRO=fsl-imx-fb MACHINE=imx6qsabreauto source fsl-setup-release.sh -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>
    0001:
*** 0002:copy_buildsystem(d)
    0003:
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')
    0329:
    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))
    0333:                                                                                                                                 
    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
0/temp/log.do_populate_sdk_ext.2680
ERROR: Task (/home/yang/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext) failed with exit co
de '1'                                                  

 

 

Outcomes