All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't build util-linux
@ 2012-01-05 12:49 Gary Thomas
  2012-01-05 16:35 ` Mark Hatle
  2012-01-05 16:54 ` Scott Garman
  0 siblings, 2 replies; 4+ messages in thread
From: Gary Thomas @ 2012-01-05 12:49 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Using a freshly updated master

OE Build Configuration:
BB_VERSION        = "1.15.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beagleboard"
DISTRO            = "poky"
DISTRO_VERSION    = "1.1+snapshot-20120105"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto        = "master:5aabdbaff7b8be319a86c5e33cc2eb8c2e4aa2ef"

| NOTE: DO PACKAGE QA
| NOTE: Checking Package: util-linux-agetty
| ERROR: Error executing a python function in /tmp/poky-multi/meta/recipes-core/util-linux/util-linux_2.20.1.bb:
| AttributeError: 'module' object has no attribute 'check_output'
|
| ERROR: The stack trace of python calls that resulted in this exception/failure was:
| ERROR:   File "do_package_qa", line 68, in <module>
| ERROR:
| ERROR:   File "do_package_qa", line 57, in do_package_qa
| ERROR:
| ERROR:   File "insane.bbclass", line 19, in package_qa_walk
| ERROR:
| ERROR:   File "insane.bbclass", line 17, in package_qa_check_unsafe_references_in_binaries
| ERROR:
| ERROR: The code that was being executed was:
| ERROR:      0064:        bb.fatal("QA run found fatal errors. Please consider fixing them.")
| ERROR:      0065:    bb.note("DONE with PACKAGE QA")
| ERROR:      0066:
| ERROR:      0067:
| ERROR:  *** 0068:do_package_qa(d)
| ERROR:      0069:
| ERROR: (file: 'do_package_qa', lineno: 68, function: <module>)
| ERROR:      0053:                errorchecks.append(g[testmatrix[e]])
| ERROR:      0054:
| ERROR:      0055:        bb.note("Checking Package: %s" % package)
| ERROR:      0056:        path = "%s/%s" % (pkgdest, package)
| ERROR:  *** 0057:        if not package_qa_walk(path, warnchecks, errorchecks, skip, package, d):
| ERROR:      0058:            walk_sane  = False
| ERROR:      0059:        if not package_qa_check_rdepends(package, pkgdest, skip, d):
| ERROR:      0060:            rdepends_sane = False
| ERROR:      0061:
| ERROR: (file: 'do_package_qa', lineno: 57, function: do_package_qa)
| ERROR: Function 'do_package_qa' failed
NOTE: package util-linux-2.20.1-r1: task do_package: Failed

Ideas?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Can't build util-linux
  2012-01-05 12:49 Can't build util-linux Gary Thomas
@ 2012-01-05 16:35 ` Mark Hatle
  2012-01-05 16:54 ` Scott Garman
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2012-01-05 16:35 UTC (permalink / raw)
  To: yocto

I'm getting the same error.  There is a workaround:

Add the following to your local.conf

WARN_QA = "ldflags useless-rpaths rpaths"

A new QA check went in, and it appears to be missing part of the merge.

(WARN_QA is normally defined as:
WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries 
unsafe-references-in-scripts")

On 1/5/12 6:49 AM, Gary Thomas wrote:
> Using a freshly updated master
>
> OE Build Configuration:
> BB_VERSION        = "1.15.0"
> TARGET_ARCH       = "arm"
> TARGET_OS         = "linux-gnueabi"
> MACHINE           = "beagleboard"
> DISTRO            = "poky"
> DISTRO_VERSION    = "1.1+snapshot-20120105"
> TUNE_FEATURES     = "armv7a vfp neon cortexa8"
> TARGET_FPU        = "vfp-neon"
> meta
> meta-yocto        = "master:5aabdbaff7b8be319a86c5e33cc2eb8c2e4aa2ef"
>
> | NOTE: DO PACKAGE QA
> | NOTE: Checking Package: util-linux-agetty
> | ERROR: Error executing a python function in /tmp/poky-multi/meta/recipes-core/util-linux/util-linux_2.20.1.bb:
> | AttributeError: 'module' object has no attribute 'check_output'
> |
> | ERROR: The stack trace of python calls that resulted in this exception/failure was:
> | ERROR:   File "do_package_qa", line 68, in<module>
> | ERROR:
> | ERROR:   File "do_package_qa", line 57, in do_package_qa
> | ERROR:
> | ERROR:   File "insane.bbclass", line 19, in package_qa_walk
> | ERROR:
> | ERROR:   File "insane.bbclass", line 17, in package_qa_check_unsafe_references_in_binaries
> | ERROR:
> | ERROR: The code that was being executed was:
> | ERROR:      0064:        bb.fatal("QA run found fatal errors. Please consider fixing them.")
> | ERROR:      0065:    bb.note("DONE with PACKAGE QA")
> | ERROR:      0066:
> | ERROR:      0067:
> | ERROR:  *** 0068:do_package_qa(d)
> | ERROR:      0069:
> | ERROR: (file: 'do_package_qa', lineno: 68, function:<module>)
> | ERROR:      0053:                errorchecks.append(g[testmatrix[e]])
> | ERROR:      0054:
> | ERROR:      0055:        bb.note("Checking Package: %s" % package)
> | ERROR:      0056:        path = "%s/%s" % (pkgdest, package)
> | ERROR:  *** 0057:        if not package_qa_walk(path, warnchecks, errorchecks, skip, package, d):
> | ERROR:      0058:            walk_sane  = False
> | ERROR:      0059:        if not package_qa_check_rdepends(package, pkgdest, skip, d):
> | ERROR:      0060:            rdepends_sane = False
> | ERROR:      0061:
> | ERROR: (file: 'do_package_qa', lineno: 57, function: do_package_qa)
> | ERROR: Function 'do_package_qa' failed
> NOTE: package util-linux-2.20.1-r1: task do_package: Failed
>
> Ideas?
>



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

* Re: Can't build util-linux
  2012-01-05 12:49 Can't build util-linux Gary Thomas
  2012-01-05 16:35 ` Mark Hatle
@ 2012-01-05 16:54 ` Scott Garman
  2012-01-05 17:52   ` Chris Larson
  1 sibling, 1 reply; 4+ messages in thread
From: Scott Garman @ 2012-01-05 16:54 UTC (permalink / raw)
  To: yocto

On 01/05/2012 04:49 AM, Gary Thomas wrote:
> Using a freshly updated master
>
> OE Build Configuration:
> BB_VERSION = "1.15.0"
> TARGET_ARCH = "arm"
> TARGET_OS = "linux-gnueabi"
> MACHINE = "beagleboard"
> DISTRO = "poky"
> DISTRO_VERSION = "1.1+snapshot-20120105"
> TUNE_FEATURES = "armv7a vfp neon cortexa8"
> TARGET_FPU = "vfp-neon"
> meta
> meta-yocto = "master:5aabdbaff7b8be319a86c5e33cc2eb8c2e4aa2ef"
>
> | NOTE: DO PACKAGE QA
> | NOTE: Checking Package: util-linux-agetty
> | ERROR: Error executing a python function in
> /tmp/poky-multi/meta/recipes-core/util-linux/util-linux_2.20.1.bb:
> | AttributeError: 'module' object has no attribute 'check_output'

Bah, sorry about this. Apparently the check_output method of the 
subprocess module is new in Python v2.7 (I'm 99% certain you must be 
using an older Python than that). I'm in the process of refactoring this 
to work with a more compatible API. In the meantime, please use Mark's 
suggested fix.

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center


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

* Re: Can't build util-linux
  2012-01-05 16:54 ` Scott Garman
@ 2012-01-05 17:52   ` Chris Larson
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Larson @ 2012-01-05 17:52 UTC (permalink / raw)
  To: Scott Garman; +Cc: yocto

On Thu, Jan 5, 2012 at 9:54 AM, Scott Garman <scott.a.garman@intel.com> wrote:
> On 01/05/2012 04:49 AM, Gary Thomas wrote:
>>
>> Using a freshly updated master
>>
>> OE Build Configuration:
>> BB_VERSION = "1.15.0"
>> TARGET_ARCH = "arm"
>> TARGET_OS = "linux-gnueabi"
>> MACHINE = "beagleboard"
>> DISTRO = "poky"
>> DISTRO_VERSION = "1.1+snapshot-20120105"
>> TUNE_FEATURES = "armv7a vfp neon cortexa8"
>> TARGET_FPU = "vfp-neon"
>> meta
>> meta-yocto = "master:5aabdbaff7b8be319a86c5e33cc2eb8c2e4aa2ef"
>>
>> | NOTE: DO PACKAGE QA
>> | NOTE: Checking Package: util-linux-agetty
>> | ERROR: Error executing a python function in
>> /tmp/poky-multi/meta/recipes-core/util-linux/util-linux_2.20.1.bb:
>> | AttributeError: 'module' object has no attribute 'check_output'
>
>
> Bah, sorry about this. Apparently the check_output method of the subprocess
> module is new in Python v2.7 (I'm 99% certain you must be using an older
> Python than that). I'm in the process of refactoring this to work with a
> more compatible API. In the meantime, please use Mark's suggested fix.

Afaik, bitbake master still only requires 2.6. You can use bb.process
(which wraps subprocess.Popen) for now.
-- 
Christopher Larson


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

end of thread, other threads:[~2012-01-05 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 12:49 Can't build util-linux Gary Thomas
2012-01-05 16:35 ` Mark Hatle
2012-01-05 16:54 ` Scott Garman
2012-01-05 17:52   ` Chris Larson

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.