Bug 2973

Summary: ltp_20120104: Missing dependency on libaio
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marc Ferland <marc.ferland>
Component: coreAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: corneliux.stoicescu, meta.mr.watcher, meta.watcher
Version: 1.2.1   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Marc Ferland 2012-08-20 20:55:22 UTC
I recently did a clean rebuild and got this at the end:

Processing locale-base-en-us...
Processing locale-base-en-gb...
Processing task-core-boot...
Processing task-core-tools-testapps...
Processing task-core-ssh-dropbear...
Processing ntpclient...
Processing task-core-apps-console...
Processing zypper...
Processing bluez4...
Processing task-core-x11-base...
Processing task-core-apps-x11-core...
Processing task-qt4-base...
Processing task-base-extended...
Processing rpm...
Processing project3...
error: Failed dependencies:
        libaio1 >= 0.3.109 is needed by ltp-20120104-r1.core2
        libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
        libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
        libaio.so.1 is needed by ltp-20120104-r1.core2

I am using denzil.
Comment 1 Marc Ferland 2012-08-20 20:57:57 UTC
FYI a quick grep reveals that ltp 20120104 (denzil) and 20120614 (master) contain tests that link on libaio.
Comment 2 Kai Kang 2012-08-21 01:51:56 UTC
(In reply to comment #0)
> I recently did a clean rebuild and got this at the end:
> 
> Processing locale-base-en-us...
> Processing locale-base-en-gb...
> Processing task-core-boot...
> Processing task-core-tools-testapps...
> Processing task-core-ssh-dropbear...
> Processing ntpclient...
> Processing task-core-apps-console...
> Processing zypper...
> Processing bluez4...
> Processing task-core-x11-base...
> Processing task-core-apps-x11-core...
> Processing task-qt4-base...
> Processing task-base-extended...
> Processing rpm...
> Processing project3...
> error: Failed dependencies:
>         libaio1 >= 0.3.109 is needed by ltp-20120104-r1.core2
>         libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
>         libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
>         libaio.so.1 is needed by ltp-20120104-r1.core2
> 
> I am using denzil.

Hi Marc,

Which image did you build? And was it build or rebuild?
Thanks.
Comment 3 Marc Ferland 2012-08-21 02:24:23 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > I recently did a clean rebuild and got this at the end:
> > 
> > Processing locale-base-en-us...
> > Processing locale-base-en-gb...
> > Processing task-core-boot...
> > Processing task-core-tools-testapps...
> > Processing task-core-ssh-dropbear...
> > Processing ntpclient...
> > Processing task-core-apps-console...
> > Processing zypper...
> > Processing bluez4...
> > Processing task-core-x11-base...
> > Processing task-core-apps-x11-core...
> > Processing task-qt4-base...
> > Processing task-base-extended...
> > Processing rpm...
> > Processing project3...
> > error: Failed dependencies:
> >         libaio1 >= 0.3.109 is needed by ltp-20120104-r1.core2
> >         libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
> >         libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
> >         libaio.so.1 is needed by ltp-20120104-r1.core2
> > 
> > I am using denzil.
> 
> Hi Marc,
> 
> Which image did you build? And was it build or rebuild?
> Thanks.

It was my own image (inherits from core-image). Adding the dependency with DEPENDS = "libaio" (inside the ltp recipe) fixed the problem. 

The problem happened on the first build of my image (starting from a completely clean build and sstate directory).

Right now, even if I revert my changes to the ltp recipe, the build finishes successfully. Looks like some kind of race condition...
Comment 4 Kai Kang 2012-09-03 01:49:56 UTC
This occurs in master branch too. It could be reproduced by:
bitbake libaio -c populate_sysroot
bitbake ltp
bitbake core-image-'which-include-ltp'

It fails with same information.

Patch for ltp on master branch has merged. For denzil, ltp should update to latest version 20120614 by:
5af0be987e1117fe830de72e646ef372a12f923f

and apply the fix:
698f0dfd2fc8271ce5ffd654108a04df3381f89c
Comment 5 Stoicescu Cornel 2012-09-21 15:21:44 UTC
Verified on:

branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d
branch: Master; commit: 3c101af5e33b21f53171c66de0c2c3e797d95247

using:

bitbake libaio -c populate_sysroot
bitbake ltp

No errors shown.
Comment 6 Marc Ferland 2012-09-21 15:49:40 UTC
(In reply to comment #5)
> Verified on:
> 
> branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d

Are you sure about that? I'm not seeing the commits referenced by Kai on the denzil branch. I think they haven't been merged yet.
Comment 7 Kai Kang 2012-09-24 07:43:49 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Verified on:
> > 
> > branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d
> 
> Are you sure about that? I'm not seeing the commits referenced by Kai on the
> denzil branch. I think they haven't been merged yet.

If not test in a clean environment, please run
bitbake libaio -c clean
before
bitbake libaio -c populate_sysroot
Comment 8 Stoicescu Cornel 2012-09-24 12:23:39 UTC
     In an effort to reproduce this bug I did not obtain the original results but when doing: bitbake core-image-minimal with IMAGE_INSTALL_append += "ltp" and MACHINE ??="qemux86" in loca.conf, the build fails with the following dependecy error:

Processing task-core-boot...
Processing ltp...
error: Failed dependencies:
        libcap2 >= 2.22 is needed by ltp-20120104-r1.i586
        libcap.so.2 is needed by ltp-20120104-r1.i586

     Please note that when building the same image with MACHINE ??="qemux86-64" the build succedes. 
     Also "bitbake libaio -c populate_sysroot" and "bitbake ltp" succeed in a clean build using both qemux86 and qemux86-64 architectures.

        All reproduction rates mentioned are 100% .

        It seems to me that dependency fails vary depending on the used architecture. Please note that the original error was for core2 architecture and it had a different dependency fail than my i586.

        I will rerun the tests when the fix commit arrives in denzil. Untill then I return this to resolved.

Thank you for your assistance.
Comment 9 Kai Kang 2012-09-25 02:25:54 UTC
(In reply to comment #8)
>      In an effort to reproduce this bug I did not obtain the original
> results but when doing: bitbake core-image-minimal with IMAGE_INSTALL_append
> += "ltp" and MACHINE ??="qemux86" in loca.conf, the build fails with the
> following dependecy error:
> 
> Processing task-core-boot...
> Processing ltp...
> error: Failed dependencies:
>         libcap2 >= 2.22 is needed by ltp-20120104-r1.i586
>         libcap.so.2 is needed by ltp-20120104-r1.i586
> 
>      Please note that when building the same image with MACHINE
> ??="qemux86-64" the build succedes. 
>      Also "bitbake libaio -c populate_sysroot" and "bitbake ltp" succeed in
> a clean build using both qemux86 and qemux86-64 architectures.
> 
>         All reproduction rates mentioned are 100% .
> 
>         It seems to me that dependency fails vary depending on the used
> architecture. Please note that the original error was for core2 architecture
> and it had a different dependency fail than my i586.
> 
>         I will rerun the tests when the fix commit arrives in denzil. Untill
> then I return this to resolved.
> 
> Thank you for your assistance.

I confirmed that this the same issue with libaio, and I'll send a patch to add libcap as dependency of ltp
Comment 10 Stoicescu Cornel 2012-10-08 09:02:12 UTC
Changing this to reopened as new issues arised asociated with this bug.

Thank you.
Comment 11 Kai Kang 2012-10-08 09:06:05 UTC
(In reply to comment #10)
> Changing this to reopened as new issues arised asociated with this bug.
> 
> Thank you.

The libcap issue has been fixed by Yocto commit f88ee2e28f0271db439689d9b04ca4cbcbbfbfa3

Thanks.
Comment 12 Stoicescu Cornel 2012-10-08 13:53:15 UTC
Verified in Denzil:
commit e7d4eba0a9bc02d61a77129da4be2f0c9239884b
Date:   Mon Sep 10 13:42:57 2012 +0300

and master:
commit 04232f5908d4a3116589193fa5f1ff526bdedacc
Date:   Fri Oct 5 22:33:29 2012 +0000
Comment 13 Stoicescu Cornel 2012-10-08 13:53:59 UTC
Verified