Yocto Bitbake "Nothing PROVIDES" error in CI
Bitbake parsed your layers and found no recipe that provides the requested target or dependency. The name is wrong, or the layer that defines it is not added to bblayers.conf.
What this error means
A bitbake <target> step fails during parsing with "ERROR: Nothing PROVIDES 'X'" and sometimes "was skipped: missing required dependency".
bitbake
ERROR: Nothing PROVIDES 'my-app'
ERROR: Required build target 'my-app' has no buildable providers.Common causes
The layer providing the recipe is not added
A recipe lives in a layer that is not listed in bblayers.conf, so Bitbake never parses it and cannot find a provider.
The target or dependency name is misspelled
A typo in the build target or in a DEPENDS/RDEPENDS value names something no recipe provides.
How to fix it
Add the layer that provides the recipe
- Add the layer with
bitbake-layers add-layer <path>. - Confirm the recipe name with
bitbake-layers show-recipes <name>. - Re-run the build.
Terminal
bitbake-layers add-layer ../meta-myapp
bitbake-layers show-recipes my-appCorrect the target or dependency name
Use the exact PN (package name) from the recipe filename, and fix any typo in DEPENDS.
recipes-myapp/my-app/my-app.bb
DEPENDS = "openssl zlib"How to prevent it
- Add every required layer to
bblayers.confin CI. - Verify recipe names with
bitbake-layers show-recipes. - Match DEPENDS values to real provider names.
Related guides
Yocto Bitbake "do_fetch" failed in CIFix Bitbake "Task ... do_fetch ... failed" in CI - a recipe could not download its source because the URL, ch…
Yocto Bitbake "ParseError" in CIFix Bitbake "ParseError" in CI - a recipe or conf file has invalid syntax, so Bitbake cannot parse the metada…
Yocto Bitbake "No space left on device" in CIFix Yocto "No space left on device" in CI - a full Bitbake build needs tens of gigabytes, and the runner disk…