Bug 968 - acl-native-2.2.49-r1: do_configure: Failed
Summary: acl-native-2.2.49-r1: do_configure: Failed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Dexuan Cui
QA Contact:
URL:
Whiteboard: workaround patch already in poky mast...
: 915 (view as bug list)
Depends on: 941
Blocks:
  Show dependency tree
 
Reported: 2011-04-11 18:44 UTC by Dexuan Cui
Modified: 2011-06-10 01:40 UTC (History)
5 users (show)

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


Attachments
acl-native_failure.log (112.46 KB, text/plain)
2011-04-11 18:45 UTC, Dexuan Cui
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dexuan Cui 2011-04-11 18:44:49 UTC
Looks acl-native should depend on perl-native:

| /distro/dcui/110412/pc1/qemuarm/tmp/sysroots/i686-linux/usr/bin/perl.real: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
| autoreconf: gnu-configize failed with exit status: 127
| FATAL: autoreconf execution failed.
NOTE: package acl-native-2.2.49-r1: task do_configure: Failed
ERROR: Task 1756 (virtual:native:/distro/dcui/110412/pc1/meta/recipes-support/attr/acl_2.2.49.bb, do_configure) failed with exit code '1'
Waiting for 7 active tasks to finish:
0: util-linux-native-2.17.2-r7 do_configure (pid 5509)
1: libpcre-native-8.10-r6 do_configure (pid 7568)
2: gcc-runtime-4.5.1-r5 do_unpack (pid 19992)
3: gcc-cross-initial-4.5.1-r4 do_compile (pid 28902)
4: db-native-5.1.19-r2 do_configure (pid 13045)
5: libx11-native-1_1.3.4-r0 do_compile (pid 11383)
6: perl-native-5.12.2-r8 do_populate_sysroot (pid 13691)
Waiting for 6 active tasks to finish:
0: util-linux-native-2.17.2-r7 do_configure (pid 5509)
1: libpcre-native-8.10-r6 do_configure (pid 7568)
2: gcc-runtime-4.5.1-r5 do_unpack (pid 19992)
3: gcc-cross-initial-4.5.1-r4 do_compile (pid 28902)
4: db-native-5.1.19-r2 do_configure (pid 13045)
5: libx11-native-1_1.3.4-r0 do_compile (pid 11383)
NOTE: package perl-native-5.12.2-r8: task do_populate_sysroot: Succeeded


The complete log is attached:
Comment 1 Dexuan Cui 2011-04-11 18:45:30 UTC
Created attachment 135 [details]
acl-native_failure.log
Comment 2 Dexuan Cui 2011-04-11 19:11:49 UTC
(In reply to comment #0)
> Looks acl-native should depend on perl-native:
gnu-config-native should depend on perl-native:

At present acl-native depends on gnu-config-native, in acl-native's do_configure, gnu-config of native is used and gnu-config invokes perl of native, but since perl-native's do_populate_sysroot hasn't finished completely (it has "Started" but hasn't "Succeed"), so we could get the "libperl.so: cannot open shared object file: No such file or directory" ERROR.

This is a race condition so it doesn't happen every time.
Comment 3 Dexuan Cui 2011-04-11 19:46:40 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Looks acl-native should depend on perl-native:
> gnu-config-native should depend on perl-native:
> At present acl-native depends on gnu-config-native, in acl-native's
> do_configure, gnu-config of native is used and gnu-config invokes perl of
> native, but since perl-native's do_populate_sysroot hasn't finished completely
> (it has "Started" but hasn't "Succeed"), so we could get the "libperl.so:
> cannot open shared object file: No such file or directory" ERROR.
> This is a race condition so it doesn't happen every time.

I make a fix and will push it out:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&id=5b05191af979261a34d4b394d486877919e12f88
Comment 4 Richard Purdie 2011-04-13 16:04:38 UTC
I think we need to change the way we expose perl-native. I'd like it to only be exposed to recipes that DEPEND on perl-native. If there is no dependency, it shouldn't be able to see it. This can be done in a similar way we've done to some of the compiler bootstrap.
Comment 5 Dexuan Cui 2011-04-13 22:47:42 UTC
(In reply to comment #4)
> I think we need to change the way we expose perl-native. I'd like it to only be
> exposed to recipes that DEPEND on perl-native. If there is no dependency, it
> shouldn't be able to see it. This can be done in a similar way we've done to
> some of the compiler bootstrap.

Hi RP,
Sorry, I'm not sure I can catch on.
My change to gnu-config/gnu-config_20080123.bb only has one line:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&id=5b05191af979261a34d4b394d486877919e12f88

Do you mean we should change 
DEPENDS = "perl"
to
DEPENDS_virtclass-native = "perl-native" ?

Or, Are you thinking we should clean up the usages in all recipes that have DEPENDS on perl-native?
Comment 6 Dexuan Cui 2011-05-10 17:55:49 UTC
A workaround patch has been in poky master: http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=605141a93443df042634b2219a8628a9004be023

In the long run, we need to tidy the perl-native/perl-native-runtime  usages in poky. At present, I think we could mark the bug (and bug 941) as RESOLVED. 
Richard and Saul, do you agree?
Comment 8 Dexuan Cui 2011-06-10 01:33:10 UTC
(In reply to comment #6)
> A workaround patch has been in poky master:
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=605141a93443df042634b2219a8628a9004be023
> In the long run, we need to tidy the perl-native/perl-native-runtime  usages in

The perl-native chagne has been in poky master, so let me mark it as RESOLVED.
Comment 9 Dexuan Cui 2011-06-10 01:40:07 UTC
*** Bug 915 has been marked as a duplicate of this bug. ***