Bug 14340 - improve detection and error reporting when oe-core is missing
Summary: improve detection and error reporting when oe-core is missing
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 3.4 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-04-07 15:54 UTC by Trevor Woerner
Modified: 2021-09-11 21:43 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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,