Bug 9568 - bbexample recipe fails to build unless PARALLEL_MAKE is disabled
Summary: bbexample recipe fails to build unless PARALLEL_MAKE is disabled
Status: RESOLVED NOTABUG
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium minor
Target Milestone: 2.2
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-02 21:22 UTC by Henry Bruce
Modified: 2016-05-09 08:41 UTC (History)
2 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 Henry Bruce 2016-05-02 21:22:25 UTC
bbexample is a simple autotools sample project. It is used in a recipe tutorial on yocto project wiki. See https://wiki.yoctoproject.org/wiki/Building_your_own_recipes_from_first_principles. This tutorial has a recipe with the line PARALLEL_MAKE = "" which allows the project to build. No explanation is given as to why this is necessary. If this entry is removed, build fails with error 
make[1]: *** No rule to make target '.libs/libbbexample.la', needed by 'bbexample'.  Stop.

If 'devtool add' is used to generate recipe it does not add the PARALLEL_MAKE so build fails.

Expected behavior
-----------------
run 'devtool add bbexample https://github.com/DynamicDevices/bbexample.git'
run 'devtool build bbexample' and observe successful build

Observed behavior
-----------------
run 'devtool add bbexample https://github.com/DynamicDevices/bbexample.git'
run 'devtool build bbexample' and observe above failure
Comment 1 Henry Bruce 2016-05-05 17:11:33 UTC
Can someone that understands autotools explain *why* this is happening?
Source is at https://github.com/DynamicDevices/bbexample
Comment 2 Henry Bruce 2016-05-05 17:29:11 UTC
Stupid question on the *why* bit. Posted in a moment of weakness. Please ignore.
Comment 3 Henry Bruce 2016-05-06 21:26:22 UTC
I tracked this down to a missing dependency statement in Makefile.am.

This project was a poor choice for use in the "Building your own recipes from first principles" article in the yoctoproject wiki but is not a bitbake bug.

I have forked bbexample and issued a pull request that fixes the problem, but I'm not sure if project is being maintained. If I don't get a response within a week or so, I'll change wiki to point to my fork.

Please close as "not a bug".
Comment 4 Joshua Lock 2016-05-09 08:41:56 UTC
Thanks for following through on this Henry. Resolving "NOTABUG" as requested.