Yocto Project Discussions
 help / color / mirror / Atom feed
* ERRORS while building customized yocto image for Raspberrypi #yocto
@ 2020-07-24 12:59 paruchuribhavyasree
  2020-07-24 13:14 ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 4+ messages in thread
From: paruchuribhavyasree @ 2020-07-24 12:59 UTC (permalink / raw)
  To: yocto

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

Hi,

I'am trying to build Yocto image for a customized code, where the source code is in my local files, so here is my recipe :

----------------------------------------------------------------------------------------------------------------------------------
DESCRIPTION = "GSM-ASTERISK-SPI"
HOMEPAGE = ""
SECTION = "GSM build for Asterisk"
PR = "r1"
LICENSE = "GNUC"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://license;md5=d41d8cd98f00b204e9800998ecf8427e"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

DEPENDS = "asterisk"
SRCREV = "0.1"
SRC_URI = "file://gsm-${PV}.tar.gz"
SRC_URI = "file://license"

S = "${WORKDIR}"

inherit autotools

#PARALLEL_MAKE = ""
----------------------------------------------------------------------------------------------------------------------------------

Here I am facing few errors in do_compile as mentioned below.

-----------------------------------------------------------------------------------------------------------------------------------
WARNING: Layer example should set LAYERSERIES_COMPAT_example in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer example should set LAYERSERIES_COMPAT_example in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 2422 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################| Time: 0:00:00
Parsing of 1631 .bb files complete (1630 cached, 1 parsed). 2422 targets, 116 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "raspberrypi3"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.1"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "dunfell:febbe2944c0c4a04b85fa98fdc261186115954d8"
meta-rpi             = "master:39cf54c3cb429f2c6e0a000e79f6f06b39e2fa8b"
meta-oe              = "master:81ee0b68fa32bcd60e1226f612ec63b1e672f263"
meta-example         = "master:8148d045406cbb2b66a6848ea93371808d206323"
meta-telephony       = "master:9e50dbdd1ee672494758d29482444cf40a36d1ba"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
Sstate summary: Wanted 33 Found 28 Missed 5 Current 634 (84% match, 99% complete)
NOTE: Executing Tasks
ERROR: gsm-1.0-r1 do_compile: oe_runmake failed
ERROR: gsm-1.0-r1 do_compile: Execution of '/home/bhavya/dialtronics/yocto/workspace/yocto_rpi/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gsm/1.0-r1/temp/run.do_compile.9167' failed with exit code 1:
make: *** No targets specified and no makefile found.  Stop.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/bhavya/dialtronics/yocto/workspace/yocto_rpi/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gsm/1.0-r1/temp/log.do_compile.9167
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8
| make: *** No targets specified and no makefile found.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/bhavya/dialtronics/yocto/workspace/yocto_rpi/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gsm/1.0-r1/temp/run.do_compile.9167' failed with exit code 1:
| make: *** No targets specified and no makefile found.  Stop.
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/bhavya/dialtronics/yocto/poky-dunfell/meta-telephony/recipes-gsm/gsm/gsm_1.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2064 tasks of which 2063 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/bhavya/dialtronics/yocto/poky-dunfell/meta-telephony/recipes-gsm/gsm/gsm_1.0.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
-------------------------------------------------------------------------------------------------------------------------------

Should I involve anything when I am choosing the source code from local file? need help in solving this error

Thank you in Advance
bhavya

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

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

* Re: [yocto] ERRORS while building customized yocto image for Raspberrypi #yocto
  2020-07-24 12:59 ERRORS while building customized yocto image for Raspberrypi #yocto paruchuribhavyasree
@ 2020-07-24 13:14 ` Quentin Schulz
  2020-07-25  4:12   ` paruchuribhavyasree
  0 siblings, 1 reply; 4+ messages in thread
From: Quentin Schulz @ 2020-07-24 13:14 UTC (permalink / raw)
  To: paruchuribhavyasree; +Cc: yocto

Hi Bhavya,

On Fri, Jul 24, 2020 at 05:59:09AM -0700, paruchuribhavyasree@gmail.com wrote:
> Hi,
> 
> I'am trying to build Yocto image for a customized code, where the source code is in my local files, so here is my recipe :
> 
> ----------------------------------------------------------------------------------------------------------------------------------
> DESCRIPTION = "GSM-ASTERISK-SPI"
> HOMEPAGE = ""
> SECTION = "GSM build for Asterisk"
> PR = "r1"
> LICENSE = "GNUC"
> LICENSE = "GPLv3"
> LIC_FILES_CHKSUM = "file://license;md5=d41d8cd98f00b204e9800998ecf8427e"
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
> 
> DEPENDS = "asterisk"
> SRCREV = "0.1"
> SRC_URI = "file://gsm-${PV}.tar.gz"
> SRC_URI = "file://license"
> 

SRC_URI = "file://gsm-${PV}.tar.gz \
	   file://license"

or

SRC_URI = "file://gsm-${PV}.tar.gz"
SRC_URI += "file://license"

Quentin

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

* Re: ERRORS while building customized yocto image for Raspberrypi #yocto
  2020-07-24 13:14 ` [yocto] " Quentin Schulz
@ 2020-07-25  4:12   ` paruchuribhavyasree
  2020-07-27  8:23     ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 4+ messages in thread
From: paruchuribhavyasree @ 2020-07-25  4:12 UTC (permalink / raw)
  To: yocto

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

Hi Quentin

I tried changing it but facing same kind of error during Build.

Thankyou
Bhavya

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

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

* Re: [yocto] ERRORS while building customized yocto image for Raspberrypi #yocto
  2020-07-25  4:12   ` paruchuribhavyasree
@ 2020-07-27  8:23     ` Quentin Schulz
  0 siblings, 0 replies; 4+ messages in thread
From: Quentin Schulz @ 2020-07-27  8:23 UTC (permalink / raw)
  To: paruchuribhavyasree; +Cc: yocto

Hi Bhavya,

On Fri, Jul 24, 2020 at 09:12:09PM -0700, paruchuribhavyasree@gmail.com wrote:
> Hi Quentin
> 
> I tried changing it but facing same kind of error during Build.
> 

Your S = "${WORKDIR}" is probably wrong then.

Is there only a directory "at the root" of the tarball? I mean if you
untar it, do you get one directory where all your source code is? In
that case, if the subdirectory is named "gsm-${PV}" (replace PV with the
correct and full number), you don't need to define S because the default
should be just enough IIRC.

Otherwise, S = "${WORKDIR}/<whatever_name_of_the_dir_in_gsm-${PV}.tar.gz_is>"

Finally, since your license is not in the tarball (but it should really
be actually), you need to prefix your LIC_FILES_CHKSUM with "../"
otherwise the license won't be found.

Moreover, you can't reassign twice the same variable and expect them to
be merged. That's what you did for SRC_URI but I missed that you also
did it for LICENSE, if it's dual licensed: LICENSE = "GNUC | GPLv3" or
LICENSE = "GNUC & GPLv3", the meaning is obviously not the same but you
only can know what to put there.

N.B.: You still need the SRC_URI as I gave you in an earlier mail.

Quentin

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

end of thread, other threads:[~2020-07-27  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-24 12:59 ERRORS while building customized yocto image for Raspberrypi #yocto paruchuribhavyasree
2020-07-24 13:14 ` [yocto] " Quentin Schulz
2020-07-25  4:12   ` paruchuribhavyasree
2020-07-27  8:23     ` [yocto] " Quentin Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox