Bug 10719 - Newly created recipe from the yocto-layer script fails to build
Summary: Newly created recipe from the yocto-layer script fails to build
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M1
Assignee: Alejandro Hernandez
QA Contact: David Lopez Barriba
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-11-23 23:21 UTC by Alejandro Hernandez
Modified: 2017-01-24 01:46 UTC (History)
4 users (show)

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


Attachments
IMG (102.37 KB, image/png)
2017-01-24 01:44 UTC, David Lopez Barriba
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Hernandez 2016-11-23 23:21:46 UTC
When creating a new layer or recipe using the yocto-layer script or such, the example recipe fails to build showing the following error:

$ yocto-layer create layer-test
Please enter the layer priority you'd like to use for the layer: [default: 6] 
Would you like to have an example recipe created? (y/n) [default: n] y
Please enter the name you'd like to use for your example recipe: [default: example] 
Would you like to have an example bbappend file created? (y/n) [default: n] 

New layer created in meta-layer-test.

Don't forget to add it to your BBLAYERS (for details see meta-layer-test/README).



$ bitbake example
Initialising tasks: 100% |##########################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: example-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/aehernan/yocto/poky/builds/puj/tmp/work/i586-poky-linux/example/0.1-r0/packages-split/example/usr/bin/helloworld' [ldflags]
ERROR: example-0.1-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: example-0.1-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/aehernan/yocto/poky/builds/puj/tmp/work/i586-poky-linux/example/0.1-r0/temp/log.do_package_qa.30399
ERROR: Task (/home/aehernan/yocto/poky/builds/puj/meta-layer-test/recipes-example/example/example_0.1.bb:do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 392 tasks of which 385 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/aehernan/yocto/poky/builds/puj/meta-layer-test/recipes-example/example/example_0.1.bb:do_package_qa
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
Comment 1 Alejandro Hernandez 2016-11-23 23:24:53 UTC
Patch sent for review.
Comment 3 David Lopez Barriba 2017-01-24 01:44:03 UTC
Created attachment 3602 [details]
IMG
Comment 4 David Lopez Barriba 2017-01-24 01:46:01 UTC
Verified on 573c646d4cc62dcd0c230381df4940bdf314d495 
Works OK