Skip to contentSkip to conversation

Can't build util-linux

DISCUSSION Gary Thomas 4 participants 4 messages Jan 5, 2012

lore
Share & tools
lore
#0 lore raw

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?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

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")

Quoted 51 lines · Gary Thomas

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?

#2 lore raw
In reply to Gary Thomas
Quoted 14 lines · Gary Thomas

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"

Quoted 5 lines
| 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

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#3 lore raw
Quoted 23 lines · Scott Garman
Quoted 15 lines · Gary Thomas

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"

Quoted 5 lines
| 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'

Quoted 4 lines

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.

Signature · 1 line
Christopher Larson