| Summary: | Beta - bitbake error message doesn't tell me what's wrong with my layer | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Dave Stewart <david.c.stewart> |
| Component: | bitbake | Assignee: | Paul Eggleton <bluelightning> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium+ | CC: | alexandrux.palalau, bluelightning, corneliux.stoicescu, jessica.zhang, poky.bs.watcher, poky.watcher |
| Version: | 1.3 | ||
| Target Milestone: | 1.3 M5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Dave Stewart
2012-09-24 21:22:22 UTC
In another bug report, Paul says the parse error might be due to the tabs-> spaces change. Do you think you could make the error message more explicit that this is the problem? Can you paste exactly what this bblayers.conf contains. In this case I think bitbake is right about the error, I think there was a typo in bblayers.conf. Perhaps a missing " character at the end? If I put the correct thing in bblayers.conf, I see: WARNING: Variable populate_packages contains tabs, please remove these (/media/data1/build1/poky/meta-dlna/meta-guacamayo/recipes-devtools/orc/orc_0.4.14.bb) | ETA: --:--:-- NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /media/data1/build1/poky/meta-dlna/meta-guacamayo/recipes-devtools/orc/orc_0.4.14.bb ERROR: Unable to parse /media/data1/build1/poky/meta-dlna/meta-guacamayo/recipes-devtools/orc/orc_0.4.14.bb ERROR: Command execution failed: Exited with 1 which is a bit clearer about the fact it is a tabs vs. spaces issue. Yeah, could be. I was trying to follow the README on the layer.
[davest@davest-f17 yp-beta-build]$ more conf/bblayers.conf
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "5"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/home/davest/poky-1.3-beta/yp-beta/meta \
/home/davest/poky-1.3-beta/yp-beta/meta-yocto \
/home/davest/poky-1.3-beta/meta-dlna/meta-guacamayo \
/home/davest/poky-1.3-beta/meta-dlna/meta-kvm \
"
If that's a verbatim paste, I think the problem is the extra blank line before the closing quote. Ah ... again, just following the README for the layer too closely! Yes, removing the extra newline causes a much better error message about tabs. :-) Thanks for the tip Right, it is broken in the README in meta-dlna as you say - we should definitely fix that. Saul has fixed the README in meta-dlna to remove the extra blank line; I think we can call this one fixed. Verified on master branch commit ID: 074016d1692d88ed5a4e245c242c2ffd901a490d |