All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem: Installation
@ 2017-02-20 16:30 SatyaNarayana Sampangi
  2017-02-20 16:33 ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: SatyaNarayana Sampangi @ 2017-02-20 16:30 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 4032 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4970 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem: Installation
  2017-02-20 16:30 Problem: Installation SatyaNarayana Sampangi
@ 2017-02-20 16:33 ` Burton, Ross
  2017-02-20 17:44   ` SatyaNarayana Sampangi
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-02-20 16:33 UTC (permalink / raw)
  To: SatyaNarayana Sampangi; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

On 20 February 2017 at 16:30, SatyaNarayana Sampangi <satya.2891@gmail.com>
wrote:

>  14 SRC_URI = "file://hellosatya-1.0.tgz"
>  15
>  16 S = "${WORKDIR}"
>

What files are in the tgz, and where do they expand to?  The error says no
such file or directory, so presumably it didn't unpack helloprint.c into
the work directory.

Ross

[-- Attachment #2: Type: text/html, Size: 730 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem: Installation
  2017-02-20 16:33 ` Burton, Ross
@ 2017-02-20 17:44   ` SatyaNarayana Sampangi
  2017-02-20 18:09     ` SatyaNarayana Sampangi
  0 siblings, 1 reply; 5+ messages in thread
From: SatyaNarayana Sampangi @ 2017-02-20 17:44 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

Hi Ross,

Thanks for your reply, by the way the tgz contains,

hello.c  helloprint.c  helloprint.h, and moreover I could see in the ${S},
which is suppose to be
~/yocto/poky/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/hellosatya/1.0-r0/hellosatya-1.0

tree hellosatya-1.0/
hellosatya-1.0/
|-- hello.c
|-- helloprint.c
`-- helloprint.h

0 directories, 3 files

So, this clearly states that it is unpacked into the WOKDIR.

Any other variables need to be taken care?

Thanks,
satya



On Mon, Feb 20, 2017 at 10:03 PM, Burton, Ross <ross.burton@intel.com>
wrote:

>
> On 20 February 2017 at 16:30, SatyaNarayana Sampangi <satya.2891@gmail.com
> > wrote:
>
>>  14 SRC_URI = "file://hellosatya-1.0.tgz"
>>  15
>>  16 S = "${WORKDIR}"
>>
>
> What files are in the tgz, and where do they expand to?  The error says no
> such file or directory, so presumably it didn't unpack helloprint.c into
> the work directory.
>
> Ross
>

[-- Attachment #2: Type: text/html, Size: 1954 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem: Installation
  2017-02-20 17:44   ` SatyaNarayana Sampangi
@ 2017-02-20 18:09     ` SatyaNarayana Sampangi
  2017-02-20 20:35       ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: SatyaNarayana Sampangi @ 2017-02-20 18:09 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

Problem Solved, I did not mention the path properly in the S variable,

I changed, S = "${WORKDIR}/${PN}-${PV}", which works fine.

Thanks to Ross, for triggering.

Regards,
satya

On Mon, Feb 20, 2017 at 11:14 PM, SatyaNarayana Sampangi <
satya.2891@gmail.com> wrote:

> Hi Ross,
>
> Thanks for your reply, by the way the tgz contains,
>
> hello.c  helloprint.c  helloprint.h, and moreover I could see in the ${S},
> which is suppose to be
> ~/yocto/poky/build/tmp/work/cortexa8hf-vfp-neon-poky-
> linux-gnueabi/hellosatya/1.0-r0/hellosatya-1.0
>
> tree hellosatya-1.0/
> hellosatya-1.0/
> |-- hello.c
> |-- helloprint.c
> `-- helloprint.h
>
> 0 directories, 3 files
>
> So, this clearly states that it is unpacked into the WOKDIR.
>
> Any other variables need to be taken care?
>
> Thanks,
> satya
>
>
>
> On Mon, Feb 20, 2017 at 10:03 PM, Burton, Ross <ross.burton@intel.com>
> wrote:
>
>>
>> On 20 February 2017 at 16:30, SatyaNarayana Sampangi <
>> satya.2891@gmail.com> wrote:
>>
>>>  14 SRC_URI = "file://hellosatya-1.0.tgz"
>>>  15
>>>  16 S = "${WORKDIR}"
>>>
>>
>> What files are in the tgz, and where do they expand to?  The error says
>> no such file or directory, so presumably it didn't unpack helloprint.c into
>> the work directory.
>>
>> Ross
>>
>
>

[-- Attachment #2: Type: text/html, Size: 2708 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem: Installation
  2017-02-20 18:09     ` SatyaNarayana Sampangi
@ 2017-02-20 20:35       ` Burton, Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2017-02-20 20:35 UTC (permalink / raw)
  To: SatyaNarayana Sampangi; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

On 20 February 2017 at 18:09, SatyaNarayana Sampangi <satya.2891@gmail.com>
wrote:

> Problem Solved, I did not mention the path properly in the S variable,
>
> I changed, S = "${WORKDIR}/${PN}-${PV}", which works fine.
>
> Thanks to Ross, for triggering.
>

That's the default value, so you can just delete your assignment.

Ross

[-- Attachment #2: Type: text/html, Size: 762 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-20 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20 16:30 Problem: Installation SatyaNarayana Sampangi
2017-02-20 16:33 ` Burton, Ross
2017-02-20 17:44   ` SatyaNarayana Sampangi
2017-02-20 18:09     ` SatyaNarayana Sampangi
2017-02-20 20:35       ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.