Sometimes, you will find a build error on a Yocto recipe that you have not modified. The first place to check for errors is the community itself, but before launching your mail client, head to http://errors.yoctoproject.org.
This is a central database of user-reported errors. Here, you may check whether someone else is experiencing the same problem.
You can submit your own build failure to the database to help the community debug the problem. To do so, you may use the report-error class. Add the following to your conf/local.conf file:
By default, the error information is stored under tmp/log/error-report under the build directory, but you can set a specific location with the ERR_REPORT_DIR variable.
When the error reporting tool is activated, a build error will be captured in a file in the error-report folder. The build output will also print a command to send the error log to the server:
When this command is executed, it will report back with a link to the upstream error.
You can set up a local error server, and use that instead by passing a server argument. The error server code and setting up details can be found at https://github.com/kergoth/bb.
To use it, you need to clone the repository locally by executing the following command:
Then run the bb/bin/bb init command, which prompts you to add a bash command to your ~/.bash_profile file.
You can either do that or execute it in your current shell as follows:
You will first need to set up your environment as usual:
Note
Some of the commands only work with a populated work directory, so you may need to remove the rm_work class if you want to use bb.
Some of the tasks that are made easier by the bb utility are:
- Exploring the contents of a package:
- Searching for a pattern in the recipes:
- Displaying either the global BitBake environment or the environment for a specific package and grepping for a specific variable: