[yocto] Problem: Installation
SatyaNarayana Sampangi
satya.2891 at gmail.com
Mon Feb 20 08:30:50 PST 2017
Dear All,
I am newbie to this yocto project.
I faced the problem as shown below, solutions will be greatly appreciated.
1. I wrote the .bb file as shown below
-------------------------------------------------------+
1 SUMMARY = "Simple Hello World Application"
2
3 DESCRIPTION = "A test application to show that how to create the r
ecipe and compile with bitbake"
4
5 SECTION = "examples"
6
7 PRIORITY = "optional"
8
9 LICENSE = "MIT"
10
11 #LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0ae22730
b33339f74b1128f5b042c9aa"
12 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade69
8e0bcf8506ecda2f7b4f302"
13
14 SRC_URI = "file://hellosatya-1.0.tgz"
15
16 S = "${WORKDIR}"
17
18 do_compile() {
19 ${CC} -c helloprint.c
20 ${CC} -c hello.c
21 ${CC} -o hellosatya hello.o helloprint.o
22 }
23
24 do_install(){
25 install -d ${D}${bindir}
26 install -m 0755 hellosatya ${D}${bindir}
27 }
2. The Directory structure is shown below,
------------------------------------------------------------+
This structure is present under the directory
~/yocto/poky/build/meta-mylayer/recipes-example
tree hellosatya/
hellosatya/
|-- hello.c
|-- helloprint.c
|-- helloprint.h
|-- hellosatya-1.0
| `-- hellosatya-1.0.tgz
`-- hellosatya_1.0.bb
1 directory, 5 files
3. When I run bitbake hellosatya, I am getting the error as shown below,
-------------------------------------------------------------------------------------------------------+
bitbake hellosatya
Loading cache: 100%
|##################################################################| ETA:
00:00:00
Loaded 1292 entries from dependency cache.
Parsing recipes: 100%
|################################################################| Time:
00:00:00
Parsing of 895 .bb files complete (894 cached, 1 parsed). 1291 targets, 61
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.24.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "beaglebone"
DISTRO = "poky"
DISTRO_VERSION = "1.7.3"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp
meta-mylayer = "dizzy:fb8bf6a75e9ac04d5c6213d3e2f097302f83405f"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at
/home/satya/yocto/poky/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/hellosatya/1.0-r0/temp/log.do_compile.10060)
ERROR: Logfile of failure stored in:
/home/satya/yocto/poky/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/hellosatya/1.0-r0/temp/log.do_compile.10060
Log data follows:
| DEBUG: Executing shell function do_compile
| arm-poky-linux-gnueabi-gcc: error: helloprint.c: No such file or directory
| arm-poky-linux-gnueabi-gcc: fatal error: no input files
| compilation terminated.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/satya/yocto/poky/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/hellosatya/1.0-r0/temp/log.do_compile.10060)
ERROR: Task 6
(/home/satya/yocto/poky/build/meta-mylayer/recipes-example/hellosatya/
hellosatya_1.0.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 372 tasks of which 371 didn't need to be
rerun and 1 failed.
No currently running tasks (343 of 379)
Summary: 1 task failed:
/home/satya/yocto/poky/build/meta-mylayer/recipes-example/hellosatya/
hellosatya_1.0.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
4. When I comment do_compile and do_install, the code runs fine.
Any help here, to figure out whats going wrong with my hellosatya_1.0.bb
file
Thanks & Regards,
satya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170220/1521c059/attachment.html>
More information about the yocto
mailing list