Bug 1880

Summary: [non-gplv3] Error while building core-image-minimal for qemuarm
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Andrei Gherzan <andrei>
Component: coreAssignee: Joshua Lock - Disabled <josh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 1917    

Description Andrei Gherzan 2012-01-06 08:19:25 UTC
Here is the log.

----->
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'binutils'
ERROR: binutils was skipped: incompatible with license GPLv3
ERROR: binutils was skipped: incompatible with license GPLv3
NOTE: Runtime target 'kernel-base' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kernel-base', 'binutils']
<-----

This error is not fatal and finishes the build without building the kernel. 

I think that the problem comes from a new commit:

--->
Author: Joshua Lock <josh@linux.intel.com>  2012-01-04 03:31:19
Committer: Richard Purdie <richard.purdie@linuxfoundation.org>  2012-01-04 13:56:41
Parent: 0ff1d667dc23b0cc903c18f1b5e032c2b6630aae (distro: Add poky-tiny distro definition)
Child:  00f0d4ad649313e1a9ad2413d942cea78aa56348 (cogl: ensure we can build on armv4)
Branches: master, remotes/origin/master
Follows: 1.1_M4.rc3
Precedes: 

    linux-tools: add binutils to perf DEPENDS
    
    We have witnessed non-deterministic failures of perf for some platforms
    whilst looking for bfd.h, a header provided by binutils.
    
    (From OE-Core rev: ab56f27d96cbd2c79ca16d12333687ca9720934c)
    
    Signed-off-by: Joshua Lock <josh@linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

------------------ meta/recipes-kernel/linux/linux-tools.inc ------------------
index 950f197..aa45dba 100644
@@ -22,7 +22,7 @@ addtask install_perf after do_install before do_package
 do_compile_perf[umask] = 022
 do_install_perf[umask] = 022
 
-PERFDEPENDS = "virtual/${MLPREFIX}libc:do_populate_sysroot ${MLPREFIX}elfutils:do_populate_sysroot"
+PERFDEPENDS = "virtual/${MLPREFIX}libc:do_populate_sysroot ${MLPREFIX}elfutils:do_populate_sysroot ${MLPREFIX}binutils:do_populate_sysroot"
 PERFDEPENDS_libc-uclibc = ""
 PERFRDEPENDS = "python perl elfutils"
 PERFRDEPENDS_libc-uclibc = ""
<---
Comment 1 Andrei Gherzan 2012-01-07 07:49:22 UTC
I reverted the above mentioned commit and things are working as expected. So that is the problem. Binutils should be included in PERFDEPENDS conditionally if GPLv3 packages are accepted. Tested on a qemuarm build - image minimal.
Comment 2 Joshua Lock - Disabled 2012-01-27 10:28:06 UTC
Workaround fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=494a5000325325ad855fdea9d83ace2d6b1d6997