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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

7,587 Views
csoapy
Contributor III

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'                                                  

Labels (3)
15 Replies

5,768 Views
tylernol
Contributor IV

I am seeing this as well in my attempts to set up devtool to make kernel changes in yocto Rocko  for imx6ul. 

Will there be support for populate_sdk_ext soon, is populate_sdk expect to work ? Waiting on a populate_sdk build to see what happens. 

0 Kudos
Reply

5,768 Views
lars_r_andersso
Contributor I

I've tried several Yocto releases but I'm also unable to build the eSDK.

0 Kudos
Reply

5,768 Views
kieuvietdich
Contributor II

Hi all,

Got same issue, i think nearest populate_sdk_ext was never tested too.

5,768 Views
csoapy
Contributor III

Now I think, maybe, from 4.9 to 4.14, populate_sdk_ext was never tested by NXP bsp team themselves.

0 Kudos
Reply

5,768 Views
yann_cardaillac
Contributor II

I've got the same issue here, I'm going to give a go for sdk. Hope it'll help with my situation.

I looked your logs and have the exact same failure.

Thanks for the advices,

Yann

0 Kudos
Reply

5,768 Views
irina_patru
NXP Employee
NXP Employee

Please check this: https://community.nxp.com/thread/505284

This isn't something we support yet.

Jira ticket: https://jira.sw.nxp.com/browse/YOCIMX-3623

Best regards,

Irina

5,768 Views
csoapy
Contributor III

Hi Irina,

   Both of two url are blocked, even if I've logged in.

pastedImage_1.png

pastedImage_2.png

0 Kudos
Reply

5,767 Views
kfrankel
Contributor I

To fix this, add the lines

require conf/distro/include/yocto-uninative.inc 
INHERIT += "uninative"

to your file 

build/conf/local.conf

And that should fix it. 
0 Kudos
Reply

5,767 Views
markind
Contributor II

Hello, when I try to build sdk ext for sumo 4.14, I got the same error. I then added the above fix above and got a different error:

(note <path> has been added to the logs to change my user specific path)

$ bitbake core-image-minimal -c populate_sdk_ext

ERROR: Unable to start bitbake server
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: '<path>/yocto/sources/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 420, function: copy_buildsystem
0416: sdk_ext_type = d.getVar('SDK_EXT_TYPE')
0417: if sdk_ext_type != 'minimal' or sdk_include_toolchain or derivative:
0418: # Create the filtered task list used to generate the sstate cache shipped with the SDK
0419: tasklistfn = d.getVar('WORKDIR') + '/tasklist.txt'
*** 0420: create_filtered_tasklist(d, baseoutpath, tasklistfn, conf_initpath)
0421: else:
0422: tasklistfn = None
0423:
0424: # Add packagedata if enabled
File: '<path>/yocto/sources/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 179, function: create_filtered_tasklist
0175: # Clean out residue of running bitbake, which check_sstate_task_list()
0176: # will effectively do
0177: clean_esdk_builddir(d, sdkbasepath)
0178: finally:
*** 0179: os.replace(sdkbasepath + '/conf/local.conf.bak', sdkbasepath + '/conf/local.conf')
0180:
0181:python copy_buildsystem () {
0182: import re
0183: import shutil
Exception: FileNotFoundError: [Errno 2] No such file or directory: '<path>/yocto/build/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/sdk-ext/image//opt/fsl-imx-xwayland/4.14-sumo/conf/local.conf.bak' -> '/home/markind/projects/checkmate/yocto/build/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/sdk-ext/image//opt/fsl-imx-xwayland/4.14-sumo/conf/local.conf'

ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: <path>/yocto/build/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk_ext.15511
ERROR: Task (<path>/yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3388 tasks of which 3377 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
<path>/yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext
Summary: There were 3 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

0 Kudos
Reply

5,768 Views
maxpeng
Contributor I

You can try to delete sstate_cache and execute following command again:

$ bitbake core-image-minimal -c populate_sdk_ext

0 Kudos
Reply

5,768 Views
csoapy
Contributor III

I tried kfrankel@maxstr.com‌'s solution with imx-4.14.98-2.0.1_patch on ubuntu 18.04.3. It works but another issue fired as same as markind@microsoft.com‌. Then I delete sstate_cache as maxpeng‌ mentioned, but the same issue also fired.

And then, after trying

bitbake core-image-minimal -c cleansstate

and 

bitbake core-image-minimal -c cleanall

the same issue fired also.

0 Kudos
Reply

5,768 Views
markind
Contributor II

I did not actually need the extensible SDK, so I got by with just the normal SDK:

bitbake core-image-minimal -c populate_sdk

I could not get the extensible SDK to build.

0 Kudos
Reply

5,768 Views
csoapy
Contributor III

I tried populate_sdk on Ubuntu 18.04.03 today, no issue fired.

But populate_sdk_ext still error as before, and full log attached.

0 Kudos
Reply

5,767 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Remove the populate_sdk_ext from the build and it will work.

0 Kudos
Reply

5,767 Views
csoapy
Contributor III

Sorry I couldn't, the populate_sdk_ext is exactly what I wanted to build.