[poky] eSDK build fails on Ubuntu 17.10

Martin Siegumfeldt mns at gomspace.com
Wed Jan 24 06:14:16 PST 2018


Hi,

I encounter the below issue when generating the Poky eSDK for qemux86 (and also other architectures):

martin at martin-Precision-5510:~/work/tmp/build$ time bitbake core-image-minimal -c populate_sdk_ext
WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |##########################################################################################################################################################################################################################################| Time: 0:00:52
Parsing of 819 .bb files complete (0 cached, 819 parsed). 1276 targets, 44 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i586-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.1"
TUNE_FEATURES        = "m32 i586"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "rocko:a03c452917842b15451ad7098c1216eaec09cd2b"

Initialising tasks: 100% |#######################################################################################################################################################################################################################################| Time: 0:00:14
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
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/martin/work/tmp/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 422, function: copy_buildsystem
     0418:    sdk_ext_type = d.getVar('SDK_EXT_TYPE')
     0419:    if sdk_ext_type != 'minimal' or sdk_include_toolchain or derivative:
     0420:        # Create the filtered task list used to generate the sstate cache shipped with the SDK
     0421:        tasklistfn = d.getVar('WORKDIR') + '/tasklist.txt'
 *** 0422:        create_filtered_tasklist(d, baseoutpath, tasklistfn, conf_initpath)
     0423:    else:
     0424:        tasklistfn = None
     0425:
     0426:    # Add packagedata if enabled
File: '/home/martin/work/tmp/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 169, function: create_filtered_tasklist
     0165:        try:
     0166:            cmdprefix = '. %s .; ' % conf_initpath
     0167:            logfile = d.getVar('WORKDIR') + '/tasklist_bb_log.txt'
     0168:            try:
 *** 0169:                oe.copy_buildsystem.check_sstate_task_list(d, get_sdk_install_targets(d), tasklistfile, cmdprefix=cmdprefix, cwd=temp_sdkbasepath, logfile=logfile)
     0170:            except bb.process.ExecutionError as e:
     0171:                msg = 'Failed to generate filtered task list for extensible SDK:\n%s' %  e.stdout.rstrip()
     0172:                if 'attempted to execute unexpectedly and should have been setscened' in e.stdout:
     0173:                    msg += '\n----------\n\nNOTE: "attempted to execute unexpectedly and should have been setscened" errors indicate this may be caused by missing sstate artifacts that were likely produced in earlier builds, but have been subsequently deleted for some reason.\n'
File: '/home/martin/work/tmp/poky/meta/lib/oe/copy_buildsystem.py', lineno: 257, function: check_sstate_task_list
     0253:        logparam = '-l %s' % logfile
     0254:    else:
     0255:        logparam = ''
     0256:    cmd = "%sBB_SETSCENE_ENFORCE=1 PSEUDO_DISABLED=1 oe-check-sstate %s -s -o %s %s" % (cmdprefix, targets, filteroutfile, logparam)
 *** 0257:    env = dict(d.getVar('BB_ORIGENV', False))
     0258:    env.pop('BUILDDIR', '')
     0259:    env.pop('BBPATH', '')
     0260:    pathitems = env['PATH'].split(':')
     0261:    env['PATH'] = ':'.join([item for item in pathitems if not item.endswith('/bitbake/bin')])
File: '/home/martin/work/tmp/poky/bitbake/lib/bb/data_smart.py', lineno: 995, function: __getitem__
     0991:
     0992:    def __getitem__(self, item):
     0993:        value = self.getVar(item, False)
     0994:        if value is None:
 *** 0995:            raise KeyError(item)
     0996:        else:
     0997:            return value
     0998:
     0999:    def __setitem__(self, var, value):
Exception: KeyError: 'ga_auto'

ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: /home/martin/work/tmp/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk_ext.6764
ERROR: Task (/home/martin/work/tmp/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3040 tasks of which 332 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/martin/work/tmp/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I am aware that Ubuntu 17.10 is not yet supported, but perhaps there is an easy workaround? Image- and ordinary SDK builds without issues - attached is the log file.

Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180124/32bdd4e5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_populate_sdk_ext.6764
Type: application/octet-stream
Size: 32110 bytes
Desc: log.do_populate_sdk_ext.6764
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180124/32bdd4e5/attachment-0001.obj>


More information about the poky mailing list