Bug 329 - "bitbake poky-image-sdk" will fail if eglibc is used.
Summary: "bitbake poky-image-sdk" will fail if eglibc is used.
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 x86
: Medium major
Target Milestone: 0.9 M4
Assignee: Dexuan Cui
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-09-15 09:08 UTC by Dexuan Cui
Modified: 2010-12-21 06:07 UTC (History)
7 users (show)

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


Attachments
the build log (13.87 KB, application/octet-stream)
2010-09-15 09:08 UTC, Dexuan Cui
no flags Details
fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch (4.05 KB, patch)
2010-09-15 20:24 UTC, Dexuan Cui
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dexuan Cui 2010-09-15 09:08:18 UTC
Created attachment 44 [details]
the build log

1) I'm based on the latest poky.git's mater:
commit c01e8760ba5552e91f3af764c1233c2462494213
Author: Joshua Lock <josh@linux.intel.com>
Date:   Thu Sep 9 17:29:23 2010 +0100

    bitbake/fetch: ensure the go() method completes when not using premirrors

    Signed-off-by: Joshua Lock <josh@linux.intel.com>

2) in meta/conf/distro/poky.conf, make the change:
-POKYLIBC ?= "glibc"
+POKYLIBC ?= "eglibc"

3) do "bitbake poky-image-sdk", the build will fail soon:
NOTE: multiple providers are available for virtual/libc-nativesdk (glibc-nativesdk, eglibc-nativesdk)
NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/libc-nativesdk
ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers (['virtual:nativesdk:/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb', '/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb']) for runtime dependecy glibc-gconv-iso8859-1
The entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/i586-pokysdk-linux-libc-for-gcc-nativesdk = eglibc-nativesdk', 'PREFERRED_PROVIDER_virtual/libc = eglibc']
NOTE: multiple providers are available for runtime glibc-gconv-iso8859-1 (eglibc, eglibc-nativesdk, glibc-nativesdk, glibc, external-csl-toolchain, external-poky-toolchain)
NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-gconv-iso8859-1
NOTE: multiple providers are available for virtual/i586-pokysdk-linux-libc-initial-nativesdk (glibc-initial-nativesdk, eglibc-initial-nativesdk)
NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/i586-pokysdk-linux-libc-initial-nativesdk
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/i586-poky-linux-libc-for-gcc (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libiconv (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libc (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
NOTE: Executing runqueue
...
FATAL: Cannot proceed with manual patch resolution - 'gnome-terminal --disable-factory -t "$TERMWINDOWTITLE" -x $SHELLCMDS' not found. Check TERMCMDRUN variable.
ERROR: Error in executing python function in: /osel/dcui/nt/pc2/meta/recipes-devtools/libtool/libtool-cross_2.2.10.bb
ERROR: Exception:<type 'exceptions.SystemExit'> Message:1
ERROR: Traceback:
...


The complete log is also attached.
Comment 1 Dexuan Cui 2010-09-15 09:25:41 UTC
BTW: after I make the following change, the build process can continue though the ERROR messages are still there.

The change is:
diff --git a/meta/conf/distro/include/poky-eglibc.inc b/meta/conf/distro/include/poky-eglibc.inc
index c4e002b..6032449 100644
--- a/meta/conf/distro/include/poky-eglibc.inc
+++ b/meta/conf/distro/include/poky-eglibc.inc
@@ -5,12 +5,18 @@
 # Add glibc overrides to the overrides for eglibc.
 OVERRIDES .= ":libc-glibc"

+#eglibc
 PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
 PREFERRED_PROVIDER_virtual/libintl ?= "eglibc"
 PREFERRED_PROVIDER_virtual/libc ?= "eglibc"
-PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "eglibc-initial"
+PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial ?= "eglibc-initial"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "eglibc"

+#eglibc-nativesdk
+PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk"
+PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk"
+PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initial-nativesdk"
+
 TARGET_OS = "${GLIBCTARGETOS}"

 CXXFLAGS += "-fvisibility-inlines-hidden"



The ERROR messages are still there:

NOTE: Resolving any missing task queue dependencies
ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers (['virtual:nativesdk:/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb', '/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb']) for runtime dependecy glibc-gconv-iso8859-1
The entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk', 'PREFERRED_PROVIDER_virtual/libc = eglibc']
NOTE: multiple providers are available for runtime glibc-gconv-iso8859-1 (eglibc, eglibc-nativesdk, glibc-nativesdk, glibc, external-csl-toolchain, external-poky-toolchain)
NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-gconv-iso8859-1
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/i586-poky-linux-libc-for-gcc (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libiconv (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libc (/osel/dcui/nt/pc2/meta/recipes-core/eglibc/eglibc_2.12.bb /osel/dcui/nt/pc2/meta/recipes-core/glibc/glibc_2.10.1.bb).
 This usually means one provides something the other doesn't and should.
Comment 2 Dexuan Cui 2010-09-15 20:23:49 UTC
In the similar way of d6e8013a8c1c439eef28301b1cc3b6f7674ee63b, I worked out a patch (I'll attach it) that seems be able to fix all the issues.

Now I'm building to test.
Comment 3 Dexuan Cui 2010-09-15 20:24:58 UTC
Created attachment 46 [details]
fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch

fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch
Comment 4 Dexuan Cui 2010-09-25 21:37:11 UTC
Fixed by 

commit 8c33bfc84a2c8226e03a85b3eab3206db7509ef1
Author: Dexuan Cui <dexuan.cui@intel.com>
Date:   Tue Sep 21 16:52:53 2010 +0800

    [e]glibc-package.inc: fix multiple providers for glibc-gconv-iso8859-1

    This commit fixes the following error while doing this:
    bitbake poky-image-sato

    ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers (['virtual:nativesdk:/distro/dcui/dexuan/
    NOTE: multiple providers are available for runtime glibc-gconv-iso8859-1 (eglibc, eglibc-nativesdk, glibc-nativesdk, glibc, external-csl-toolchain, external
    NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-gconv-iso8859-1

    And bumped PR.

    This partly fixes [BUGID #329]

    Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>

commit 11a92051e714a72523a3ce4d5c627d216d076f61
Author: Dexuan Cui <dexuan.cui@intel.com>
Date:   Tue Sep 21 16:49:15 2010 +0800

    poky-eglibc.inc: fix multiple providers for virtual/libc-nativesdk and other

    This commit fixes the following error while doing this:
    bitbake poky-image-minimal

    NOTE: multiple providers are available for virtual/libc-nativesdk (glibc-nativesdk, eglibc-nativesdk)
    NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/libc-nativesdk
    NOTE: multiple providers are available for virtual/i586-pokysdk-linux-libc-initial-nativesdk (glibc-initial-nativesdk, eglibc-initial-nativesdk)
    NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/i586-pokysdk-linux-libc-initial-nativesdk

    And bumped PR.

    This partly fixes [BUGID #329]

    Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Comment 5 Dexuan Cui 2010-09-25 21:39:38 UTC
The issue has gone with the above commit applied, that is to say, with commits newe than f342f3ba68d8cbd5b5b58129ba16324f280de6b1 in poky.git.