| Summary: | "bitbake poky-image-sdk" will fail if eglibc is used. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Dexuan Cui <dexuan.cui> | ||||||
| Component: | meta-yocto | Assignee: | Dexuan Cui <dexuan.cui> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | Medium | CC: | jessica.zhang, kevin.tian, nitin.a.kamble, poky.bs.watcher, poky.watcher, richard.purdie, sgw | ||||||
| Version: | 0.9 | ||||||||
| Target Milestone: | 0.9 M4 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | x86 | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Program Management | Documentation change: | --- | ||||||
| Attachments: |
|
||||||||
|
Description
Dexuan Cui
2010-09-15 09:08:18 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.
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. Created attachment 46 [details]
fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch
fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch
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> The issue has gone with the above commit applied, that is to say, with commits newe than f342f3ba68d8cbd5b5b58129ba16324f280de6b1 in poky.git. |