All of lore.kernel.org
 help / color / mirror / Atom feed
* Error while building my own package
@ 2015-02-28 13:08 Priya Agarwal
  2015-02-28 14:06 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Priya Agarwal @ 2015-02-28 13:08 UTC (permalink / raw)
  To: yocto-build, yocto


[-- Attachment #1.1: Type: text/plain, Size: 751 bytes --]

Hi,

I want to add a very simple autotools based package to the kernel image
(for freescale's t4240qds board) I built with yocto for testing purposes.

Background: I wrote a simple c++ code, autoconf and automake'd it and
compressed it as tar.bz2 file. Wrote a simple recipe for it. I have
attached both the files.

Problem: When I do bitbake <mypackage>, I get 2 errors. Basically
do_populate_lic and do_configure fail. Main errors is as follows. I have
attached the logfile as well.

ERROR: Error executing a python function in
/media/NewVolume/yocto/meta-mylayer/recipes-examples/area/area_1.0.bb:
ValueError: need more than 1 value to unpack


I have less experience with yocto, so please pardon me for silly errors.

Regards

[-- Attachment #1.2: Type: text/html, Size: 1180 bytes --]

[-- Attachment #2: area-1.0.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 71493 bytes --]

[-- Attachment #3: area_1.0.bb --]
[-- Type: application/octet-stream, Size: 435 bytes --]

SUMMARY = "Code to find the area of a circle"
SECTION = "examples"
LICENSE = "GPLv3+"

SRC_URI = "file:///media/NewVolume/area-1.0.tar.bz2"

LIC_FILES_CHKSUM = "file://COPYING;d32239bcb673463ab874e80d47fae504"

SRC_URI[md5sum] = "df1ce2c5a455b2a53a124fea3a85c1f0" 
SRC_URI[sha256sum] = "4fd0a53473c0fc0a083727daa8ae89b83ccaf4c6662803eec79fca71b06f2cff" 

PN = "area"
PV = "1.0"

S = "${WORKDIR}/${PN}-${PV}"

inherit autotools gettext

[-- Attachment #4: log.do_configure.16592 --]
[-- Type: application/octet-stream, Size: 7507 bytes --]

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing shell function do_configure
automake (GNU automake) 1.12.6
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
AUTOV is 1.12
NOTE: Executing ACLOCAL="aclocal --system-acdir=/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/area-1.0/aclocal-copy/ --automake-acdir=/media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12" autoreconf --verbose --install --force --exclude=autopoint
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --system-acdir=/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/area-1.0/aclocal-copy/ --automake-acdir=/media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12 --force 
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/x86_64-linux/usr/bin/autoconf --force
autoreconf: configure.in: not using Autoheader
autoreconf: running: automake --foreign --add-missing --copy --force-missing
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: running: gnu-configize
autoreconf: Leaving directory `.'
NOTE: Running /media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/area-1.0/configure  --build=x86_64-linux 		  --host=powerpc-fsl_networking-linux 		  --target=powerpc-fsl_networking-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/lib/area 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds  --enable-nls 
configure: WARNING: unrecognized options: --disable-silent-rules, --with-libtool-sysroot, --enable-nls
configure: loading site script /media/NewVolume/yocto/meta/site/endian-big
configure: loading site script /media/NewVolume/yocto/meta/site/powerpc-common
configure: loading site script /media/NewVolume/yocto/meta/site/common-linux
configure: loading site script /media/NewVolume/yocto/meta/site/common-glibc
configure: loading site script /media/NewVolume/yocto/meta/site/powerpc32-linux
configure: loading site script /media/NewVolume/yocto/meta/site/powerpc-linux
configure: loading site script /media/NewVolume/yocto/meta/site/common
configure: loading site script /media/NewVolume/yocto/meta-oe/meta-oe/site/endian-big
configure: loading site script /media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds/usr/share/powerpc-fsl_networking-linux_config_site.d/ncurses_config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-fsl_networking-linux-strip... powerpc-fsl_networking-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether powerpc-fsl_networking-linux-g++  -m32 -mhard-float   -mcpu=e6500 --sysroot=/media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of powerpc-fsl_networking-linux-g++  -m32 -mhard-float   -mcpu=e6500 --sysroot=/media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds... none
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-silent-rules, --with-libtool-sysroot, --enable-nls
DEBUG: Shell function do_configure finished
DEBUG: Executing python function do_qa_configure
NOTE: Checking autotools environment for common misconfiguration
ERROR: Error executing a python function in /media/NewVolume/yocto/meta-mylayer/recipes-examples/area/area_1.0.bb:
ValueError: need more than 1 value to unpack

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "do_qa_configure", line 55, in <module>
ERROR: 
ERROR:   File "do_qa_configure", line 50, in do_qa_configure
ERROR: 
ERROR:   File "insane.bbclass", line 22, in package_qa_check_license
ERROR: 
ERROR:   File "/media/NewVolume/yocto/bitbake/lib/bb/__init__.py", line 121, in newFunc
ERROR:     return func(*args, **kwargs)
ERROR: 
ERROR:   File "/media/NewVolume/yocto/bitbake/lib/bb/fetch2/__init__.py", line 358, in decodeurl
ERROR:     s1, s2 = s.split('=')
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0051:        bb.fatal("Licensing Error: LIC_FILES_CHKSUM does not match, please fix")
ERROR:      0052:
ERROR:      0053:
ERROR:      0054:
ERROR:  *** 0055:do_qa_configure(d)
ERROR:      0056:
ERROR: [From file: 'do_qa_configure', lineno: 55, function: <module>]
ERROR:      0046:    ###########################################################################
ERROR:      0047:    # Check license variables
ERROR:      0048:    ###########################################################################
ERROR:      0049:
ERROR:  *** 0050:    if not package_qa_check_license(workdir, d):
ERROR:      0051:        bb.fatal("Licensing Error: LIC_FILES_CHKSUM does not match, please fix")
ERROR:      0052:
ERROR:      0053:
ERROR:      0054:
ERROR: [From file: 'do_qa_configure', lineno: 50, function: do_qa_configure]
ERROR:      0018:
ERROR:      0019:    srcdir = d.getVar('S', True)
ERROR:      0020:
ERROR:      0021:    for url in lic_files.split():
ERROR:  *** 0022:        (type, host, path, user, pswd, parm) = bb.decodeurl(url)
ERROR:      0023:        srclicfile = os.path.join(srcdir, path)
ERROR:      0024:        if not os.path.isfile(srclicfile):
ERROR:      0025:            raise bb.build.FuncFailed( pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile)
ERROR:      0026:
ERROR: [From file: 'insane.bbclass', lineno: 22, function: package_qa_check_license]
DEBUG: Python function do_qa_configure finished
ERROR: Function failed: do_qa_configure

[-- Attachment #5: log.do_populate_lic.16593 --]
[-- Type: application/octet-stream, Size: 2478 bytes --]

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_populate_lic
ERROR: Error executing a python function in /media/NewVolume/yocto/meta-mylayer/recipes-examples/area/area_1.0.bb:
ValueError: need more than 1 value to unpack

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "do_populate_lic", line 13, in <module>
ERROR: 
ERROR:   File "do_populate_lic", line 6, in do_populate_lic
ERROR: 
ERROR:   File "license.bbclass", line 92, in find_license_files
ERROR: 
ERROR:   File "/media/NewVolume/yocto/bitbake/lib/bb/__init__.py", line 121, in newFunc
ERROR:     return func(*args, **kwargs)
ERROR: 
ERROR:   File "/media/NewVolume/yocto/bitbake/lib/bb/fetch2/__init__.py", line 358, in decodeurl
ERROR:     s1, s2 = s.split('=')
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
ERROR:      0010:    copy_license_files(lic_files_paths, destdir)
ERROR:      0011:
ERROR:      0012:
ERROR:  *** 0013:do_populate_lic(d)
ERROR:      0014:
ERROR: [From file: 'do_populate_lic', lineno: 13, function: <module>]
ERROR:      0002:def do_populate_lic(d):
ERROR:      0003:    """
ERROR:      0004:    Populate LICENSE_DIRECTORY with licenses.
ERROR:      0005:    """
ERROR:  *** 0006:    lic_files_paths = find_license_files(d)
ERROR:      0007:
ERROR:      0008:    # The base directory we wrangle licenses to
ERROR:      0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
ERROR:      0010:    copy_license_files(lic_files_paths, destdir)
ERROR: [From file: 'do_populate_lic', lineno: 6, function: do_populate_lic]
ERROR:      0088:        bb.note(pn + ": Recipe file does not have license file information.")
ERROR:      0089:        return lic_files_paths
ERROR:      0090:
ERROR:      0091:    for url in lic_files.split():
ERROR:  *** 0092:        (type, host, path, user, pswd, parm) = bb.decodeurl(url)
ERROR:      0093:        # We want the license filename and path
ERROR:      0094:        srclicfile = os.path.join(srcdir, path)
ERROR:      0095:        lic_files_paths.append((os.path.basename(path), srclicfile))
ERROR:      0096:
ERROR: [From file: 'license.bbclass', lineno: 92, function: find_license_files]
DEBUG: Python function do_populate_lic finished
ERROR: Function failed: do_populate_lic

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Error while building my own package
@ 2015-02-28 14:42 Priya Agarwal
  2015-02-28 14:51 ` Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Priya Agarwal @ 2015-02-28 14:42 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org


[-- Attachment #1.1: Type: text/plain, Size: 1070 bytes --]

Hi,

I want to add a very simple autotools based package to the kernel image
(for freescale's t4240qds board) I built with yocto for testing purposes.

Background: I wrote a simple c++ code, autoconf and automake'd it and
compressed it as tar.bz2 file. Wrote a simple recipe for it. I have
attached both the files.

Problem: When I do bitbake <mypackage>, I get this error.

WARNING: /media/NewVolume/yocto/meta/files/common-licenses/GPL-3.0 could
not be copied for some reason. It may not exist. WARN for now.
ERROR: objcopy failed with exit code 1 (cmd was
'powerpc-fsl_networking-linux-objcopy' --only-keep-debug
'/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/package/usr/bin/area'
'/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/package/usr/bin/.debug/area')
ERROR: Function failed: split_and_strip_files

I have attached the log file as well. How to get rid of this.
I have less experience with this, so pardon me for silly errors.

Regards

[-- Attachment #1.2: Type: text/html, Size: 1490 bytes --]

[-- Attachment #2: log.do_package.19354 --]
[-- Type: application/octet-stream, Size: 1158 bytes --]

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_package
DEBUG: Executing python function package_get_auto_pr
DEBUG: Python function package_get_auto_pr finished
DEBUG: Executing python function perform_packagecopy
DEBUG: Python function perform_packagecopy finished
DEBUG: Executing python function split_and_strip_files
75386ff5dd5ec0eee7d26afd0f4cdbcb6fcd2a72
powerpc-fsl_networking-linux-objcopy: Unable to recognise the format of the input file `/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/package/usr/bin/area'
ERROR: objcopy failed with exit code 1 (cmd was 'powerpc-fsl_networking-linux-objcopy' --only-keep-debug '/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/package/usr/bin/area' '/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/area/1.0-r0/package/usr/bin/.debug/area')
DEBUG: Python function split_and_strip_files finished
DEBUG: Python function do_package finished
ERROR: Function failed: split_and_strip_files

[-- Attachment #3: area_1.0.bb --]
[-- Type: application/octet-stream, Size: 439 bytes --]

SUMMARY = "Code to find the area of a circle"
SECTION = "examples"
LICENSE = "GPLv3+"

SRC_URI = "file:///media/NewVolume/area-1.0.tar.bz2"

LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

SRC_URI[md5sum] = "df1ce2c5a455b2a53a124fea3a85c1f0" 
SRC_URI[sha256sum] = "4fd0a53473c0fc0a083727daa8ae89b83ccaf4c6662803eec79fca71b06f2cff" 

PN = "area"
PV = "1.0"

S = "${WORKDIR}/${PN}-${PV}"

inherit autotools gettext

[-- Attachment #4: area-1.0.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 71493 bytes --]

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

end of thread, other threads:[~2015-02-28 14:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28 13:08 Error while building my own package Priya Agarwal
2015-02-28 14:06 ` Gary Thomas
2015-02-28 14:33   ` Priya Agarwal
  -- strict thread matches above, loose matches on Subject: below --
2015-02-28 14:42 Priya Agarwal
2015-02-28 14:51 ` Otavio Salvador

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.