Bug 14340

Summary: improve detection and error reporting when oe-core is missing
Product: [Build System, Metadata & Runtime] BitBake Reporter: Trevor Woerner <twoerner>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: unspecified   
Target Milestone: 3.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Trevor Woerner 2021-04-07 15:54:17 UTC
If, by accident, the user has omitted oe-core from bblayers.conf but other layers are present in bblayers.conf, then the error message will flag the first such layer in bblayers (e.g. mylayer) and report:

ERROR: Layer mylayer is not compatible with the core layer which only supports these series:  (layer is compatible with hardknott)

Maybe this situation can be detected and a better error message emitted?

Apparently (according to JaMa and kergoth) this is an issue with no LAYERSERIES_CORENAMES being defined (?)








NOTE: if no layers are present in bblayers.conf then one get the error message:

ERROR: Traceback (most recent call last):
  File "/z/build-master/corenames/layers/bitbake/lib/bb/cookerdata.py", line 162, in wrapped
    return func(fn, *args)
  File "/z/build-master/corenames/layers/bitbake/lib/bb/cookerdata.py", line 187, in parse_config_file
    return bb.parse.handle(fn, data, include)
  File "/z/build-master/corenames/layers/bitbake/lib/bb/parse/__init__.py", line 107, in handle
    return h['handle'](fn, data, include)
  File "/z/build-master/corenames/layers/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 121, in handle
    abs_fn = resolve_file(fn, data)
  File "/z/build-master/corenames/layers/bitbake/lib/bb/parse/__init__.py", line 125, in resolve_file
    raise IOError(errno.ENOENT, "file %s not found in %s" % (fn, bbpath))
FileNotFoundError: [Errno 2] file conf/bitbake.conf not found in /z/build-master/corenames/build

ERROR: Unable to parse conf/bitbake.conf: [Errno 2] file conf/bitbake.conf not found in /z/build-master/corenames/build
Comment 1 Richard Purdie 2021-09-10 14:28:11 UTC
I've sent two patches out for review which address these two rather poor error messages,