Bug 7002

Summary: Failed to build an non-GPLv3 image
Product: [Build System, Metadata & Runtime] Hob Reporter: Andra Necula <andrax.g.necula>
Component: hobAssignee: Unassigned <unassigned>
Status: RESOLVED WONTFIX QA Contact: Andra Necula <andrax.g.necula>
Severity: normal    
Priority: Low CC: alexandru.c.georgescu, belen.barros.pena, bluelightning, cristiana.voicu, poky.bs.watcher, poky.watcher, valentin.popa
Version: 1.5.4   
Target Milestone: Future   
Hardware: x86   
OS: mips   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
hoberror
none
hoberror1 none

Description Andra Necula 2014-11-27 10:19:05 UTC
Created attachment 2263 [details]
hoberror

Failed to build an non-GPLv3 image on:
poky : de14d21bc6633ddeb810cef051b91ee322276496

Steps to reproduce:

1. select for example qemumips;
2. choose for example core-image-minimal;
3. from "Advanced configuration" select "Exclude GPLv3 packages";
4. Build image;

I get the error attached.
Comment 1 Andra Necula 2014-11-27 10:20:07 UTC
Created attachment 2264 [details]
hoberror1
Comment 2 Paul Eggleton 2014-11-27 16:09:03 UTC
Unfortunately Hob isn't really actively maintained at this point. However, I expect the reason it's failing is not so much the non-GPLv3 but that Hob is attempting to build a "live" image for qemumips, which isn't a valid combination - syslinux is excluded from building on non-x86 and that's why this error will be coming up. You could try unticking the live image format in Hob's options screen as a workaround, or if that doesn't work you'll almost certainly be able to do this build from the command line instead (I realise that's not an ideal situation though).
Comment 3 Alexandru Georgescu 2014-12-03 14:56:21 UTC
Hi,
I've tested without hob. A core-image-minimal build successfully but a core-image-sato-sdk seems that fails at gdb:



autobuilder@ubuntuAB:~/tmp/poky/build$ bitbake core-image-sato-sdk
WARNING: Host distribution "Ubuntu-14.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#####################################################################################################################################################################################################################################| ETA:  00:00:00
Loaded 1188 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'gdb' (but /home/autobuilder/tmp/poky/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb RDEPENDS on or otherwise requires it)
ERROR: gdb was skipped: incompatible with license GPLv2 & GPLv3 & LGPLv2 & LGPLv3
NOTE: Runtime target 'gdb' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gdb']
NOTE: Runtime target 'packagegroup-core-tools-debug' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-core-tools-debug', 'gdb']
ERROR: Required build target 'core-image-sato-sdk' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-sato-sdk', 'packagegroup-core-tools-debug', 'gdb']

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
autobuilder@ubuntuAB:~/tmp/poky/build$


The local.conf is as following:


MACHINE ??= “qemumips"
INCOMPATIBLE_LICENSE = “GPLv3"
SSTATE_DIR = "/home/autobuilder/sstate”


Regards,
Alex.
Comment 4 Paul Eggleton 2015-01-29 16:11:00 UTC
We don't support development tools such as gdb in a non-GPLv3 build since they arent something you would normally ship in a target image, so core-image-sato-sdk isn't an image that's expected to work with non-GPLv3 (the ref manual states that core-image-minimal and core-image-base are the only ones that we test regularly, FWIW).

Given that the Hob issue isn't going to get fixed (and has a workaround) and non-GPLv3 builds are apparently working, I'm marking this as WONTFIX.
Comment 5 Paul Eggleton 2015-01-29 16:12:20 UTC
(I should have said - thanks for double-checking non-GPLv3 builds.)