Bug 2021 - [non-GPLv3] no libc and libreadline for basic image build
Summary: [non-GPLv3] no libc and libreadline for basic image build
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.1.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1.1
Assignee: Joshua Lock - Disabled
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-02-22 08:22 UTC by Jiajun Xu
Modified: 2012-03-09 13:48 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2012-02-22 08:22:36 UTC
tree/branch: poky/edison
commit: 69a3fba2aabfa37ebf27d9a2f33304d1c58e4436

With edison branch, basic image build against non-GPLv3 will meet a do_rootfs error that libc and libreadline are needed. Detailed failure message as below:

There is no such error in previous testing against Josh's edison branch.

########
Generating solve db for /distro/poky/build/tmp/deploy/rpm/i586...
   total:               1      0.000000 MB     24.927736 secs
   fingerprint:     11700      0.142064 MB      2.145979 secs
   install:          3900      0.000000 MB      5.600384 secs
   dbadd:            3900      0.000000 MB      5.502527 secs
   dbget:           45078      0.000000 MB      0.065258 secs
   dbput:            3900     19.772244 MB      4.940375 secs
   readhdr:         39001     39.540714 MB     10.447666 secs
   hdrload:         21451     68.022202 MB      0.113729 secs
   hdrget:         692953      0.000000 MB      0.591519 secs
Generating solve db for /distro/poky/build/tmp/deploy/rpm/all...
   total:               1      0.000000 MB      0.075198 secs
   fingerprint:         9      0.000012 MB      0.000384 secs
   install:             3      0.000000 MB      0.021894 secs
   dbadd:               3      0.000000 MB      0.019767 secs
   dbget:              12      0.000000 MB      0.000034 secs
   dbput:               3      0.009448 MB      0.001687 secs
   readhdr:            31      0.019184 MB      0.020027 secs
   hdrload:            18      0.036192 MB      0.000115 secs
   hdrget:            494      0.000000 MB      0.000458 secs
Generating solve db for /distro/poky/build/tmp/deploy/rpm/all...
   total:               1      0.000000 MB      0.052236 secs
   fingerprint:         9      0.000012 MB      0.000244 secs
   install:             3      0.000000 MB      0.022119 secs
   dbadd:               3      0.000000 MB      0.019587 secs
   dbget:              12      0.000000 MB      0.000036 secs
   dbput:               3      0.009448 MB      0.001888 secs
   readhdr:            31      0.019184 MB      0.000058 secs
   hdrload:            18      0.036192 MB      0.000090 secs
   hdrget:            494      0.000000 MB      0.000503 secs
Processing locale-base-en-us...
Processing locale-base-en-gb...
Processing task-core-boot...
Processing task-core-apps-console...
Processing task-core-ssh-openssh...
Processing task-core-basic...
error: Failed dependencies:
        libc.so.6(GLIBC_2.3)(64bit) is needed by ed-0.5-r1.i586
        libc.so.6(GLIBC_2.14)(64bit) is needed by ed-0.5-r1.i586
        libc.so.6()(64bit) is needed by ed-0.5-r1.i586
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by ed-0.5-r1.i586
        libc.so.6(GLIBC_2.3.4)(64bit) is needed by ed-0.5-r1.i586
        libreadline.so.6 is needed by python-readline-2.6.6-r2.11.i586
ERROR: Function 'do_rootfs' failed (see /distro/poky/build/tmp/work/qemux86-poky-linux/core-image-basic-1.0-r0/temp/log.do_rootfs.26996 for further information)
########
Comment 1 Joshua Lock - Disabled 2012-02-22 15:05:34 UTC
(In reply to comment #0)
> tree/branch: poky/edison
> commit: 69a3fba2aabfa37ebf27d9a2f33304d1c58e4436
> 
> With edison branch, basic image build against non-GPLv3 will meet a do_rootfs
> error that libc and libreadline are needed. Detailed failure message as below:
> 
> There is no such error in previous testing against Josh's edison branch.
> 
> ########
> Generating solve db for /distro/poky/build/tmp/deploy/rpm/i586...
>    total:               1      0.000000 MB     24.927736 secs
>    fingerprint:     11700      0.142064 MB      2.145979 secs
>    install:          3900      0.000000 MB      5.600384 secs
>    dbadd:            3900      0.000000 MB      5.502527 secs
>    dbget:           45078      0.000000 MB      0.065258 secs
>    dbput:            3900     19.772244 MB      4.940375 secs
>    readhdr:         39001     39.540714 MB     10.447666 secs
>    hdrload:         21451     68.022202 MB      0.113729 secs
>    hdrget:         692953      0.000000 MB      0.591519 secs
> Generating solve db for /distro/poky/build/tmp/deploy/rpm/all...
>    total:               1      0.000000 MB      0.075198 secs
>    fingerprint:         9      0.000012 MB      0.000384 secs
>    install:             3      0.000000 MB      0.021894 secs
>    dbadd:               3      0.000000 MB      0.019767 secs
>    dbget:              12      0.000000 MB      0.000034 secs
>    dbput:               3      0.009448 MB      0.001687 secs
>    readhdr:            31      0.019184 MB      0.020027 secs
>    hdrload:            18      0.036192 MB      0.000115 secs
>    hdrget:            494      0.000000 MB      0.000458 secs
> Generating solve db for /distro/poky/build/tmp/deploy/rpm/all...
>    total:               1      0.000000 MB      0.052236 secs
>    fingerprint:         9      0.000012 MB      0.000244 secs
>    install:             3      0.000000 MB      0.022119 secs
>    dbadd:               3      0.000000 MB      0.019587 secs
>    dbget:              12      0.000000 MB      0.000036 secs
>    dbput:               3      0.009448 MB      0.001888 secs
>    readhdr:            31      0.019184 MB      0.000058 secs
>    hdrload:            18      0.036192 MB      0.000090 secs
>    hdrget:            494      0.000000 MB      0.000503 secs
> Processing locale-base-en-us...
> Processing locale-base-en-gb...
> Processing task-core-boot...
> Processing task-core-apps-console...
> Processing task-core-ssh-openssh...
> Processing task-core-basic...
> error: Failed dependencies:
>         libc.so.6(GLIBC_2.3)(64bit) is needed by ed-0.5-r1.i586
>         libc.so.6(GLIBC_2.14)(64bit) is needed by ed-0.5-r1.i586
>         libc.so.6()(64bit) is needed by ed-0.5-r1.i586
>         libc.so.6(GLIBC_2.2.5)(64bit) is needed by ed-0.5-r1.i586
>         libc.so.6(GLIBC_2.3.4)(64bit) is needed by ed-0.5-r1.i586
>         libreadline.so.6 is needed by python-readline-2.6.6-r2.11.i586
> ERROR: Function 'do_rootfs' failed (see
> /distro/poky/build/tmp/work/qemux86-poky-linux/core-image-basic-1.0-r0/temp/log.do_rootfs.26996
> for further information)
> ########

This appears to be looking for a 64bit libc in an i586 package - not too surprising it would fail...

Can you share what MACHINE you're building for and what settings you have in your local.conf?

Also, are you sharing sstate between master and edison builds? I hope this isn't a problem but let's rule it out in case...
Comment 2 Joshua Lock - Disabled 2012-02-22 16:21:36 UTC
I'm able to build core-image-basic for qemux86 with INCOMPATIBLE_LICENSE = "GPLv3"
Comment 3 Joshua Lock - Disabled 2012-02-22 16:23:15 UTC
Scratch that, I've just reproduced this issue with qemux86, core-image-basic and the edison branch of the poky repository.
Comment 4 Joshua Lock - Disabled 2012-02-22 18:02:00 UTC
The GPLv2 ed 0.5 in master has several changes that do not exist in Edison, including:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=08b7b9368c7aa01f7639412e17ce1f5a5eb4b780

I've cherry-picked them to a branch of edison and am testing the no GPLv3 build now.
Comment 5 Joshua Lock - Disabled 2012-02-22 19:49:16 UTC
I can confirm that the ed changes resolve the reported issue - I can build a core-image-basic with GPLv3 disabled using the changes in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/edison
Comment 6 Richard Purdie 2012-02-26 12:05:32 UTC
Edison now has the commits to address this issue: http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=edison&id=686345f1d022c6a539538b4a78952f20836118ff (and the two patches before it)
Comment 7 Jiajun Xu 2012-03-09 13:48:17 UTC
Verify the bug as fixed with edison branch, commit 939ec1ca1eb428f536e324cc61f1d8afe6e60775.