Bug 10719

Summary: Newly created recipe from the yocto-layer script fails to build
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Alejandro Hernandez <alejandro.hernandez>
Component: meta-yoctoAssignee: Alejandro Hernandez <alejandro.hernandez>
Status: VERIFIED FIXED QA Contact: David Lopez Barriba <davidx.lopez.barriba>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, leonardo.sandoval.gonzalez, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
IMG none

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