[yocto] Fwd: error while compiling hello_2.7.bb
praveen vattipalli
praveen.vatt at gmail.com
Mon Dec 19 04:42:34 PST 2016
Hi All,
I have hello_2.7.bb file which contains as below
vim hello_2.7.bb
DESCRIPTION = "GNU Helloworld application"
SECTION = "test"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD;md5=
3775480a712fc46a69647678acb234cb"
SRC_DIR ?= "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/
hello/hello_2.7"
SRC_URI = "file://${SRC_DIR}"
S = "${SRC_DIR}"
do_compile (){
make prog
}
do_install(){
install -d ${D}${bindir}
install -m 0755 ${S}/hello ${D}${bindir}
}
in hello_2.7 folder i have two files hello.c and Makefile
vim hello.c
#include<stdio.h>
int main()
{
printf("hello YOCTO POKY\n");
return 0;
}
Vim Makefile
prog:
gcc -o hello hello.c
Now when i am building "bitbake hello", I am getting below error in
poky-krogoth-15.0.2.
The same hello_2.7.bb is compiling fine without any error in
"poky-dora-10.0.0".
The strange thing i observe in poky-krogoth-15.0.2. is that hello.c and
Makefile are getting erased in hello_2.7 dir.
Am i missing some thing in poky-krogoth-15.0.2? Please help.
Error msg:
ERROR: hello-2.7-r0 do_compile: Function failed: do_compile (log file is
located at /home/rajesh/poky-krogoth-15.0.2/build/tmp/work/cortexa8hf-
neon-poky-linux-gnueabi/hello/2.7-r0/temp/log.do_compile.13763)
ERROR: Logfile of failure stored in: /home/rajesh/poky-krogoth-15.
0.2/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/hello/
2.7-r0/temp/log.do_compile.13763
Log data follows:
| DEBUG: Executing shell function do_compile
| make: *** No rule to make target 'prog'. Stop.
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/rajesh/poky-krogoth-15.0.2/build/tmp/work/cortexa8hf-
neon-poky-linux-gnueabi/hello/2.7-r0/temp/log.do_compile.13763)
ERROR: Task 6 (/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/
hello_2.7.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 351 tasks of which 345 didn't need to be
rerun and 1 failed.
No currently running tasks (351 of 358)
Summary: 1 task failed:
/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/hello_2.7.bb,
do_compile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161219/fc181708/attachment.html>
More information about the yocto
mailing list