Bug 2089 - Error in package eglibc-locale when building toolchain with poky-tiny
Summary: Error in package eglibc-locale when building toolchain with poky-tiny
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.2 M4
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard: (1.2)
Depends on:
Blocks:
 
Reported: 2012-03-13 17:51 UTC by Reinette Chatre
Modified: 2012-04-17 18:41 UTC (History)
8 users (show)

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


Attachments
Output when running "bitbake meta-toolchain" (95.11 KB, application/octet-stream)
2012-03-13 17:51 UTC, Reinette Chatre
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reinette Chatre 2012-03-13 17:51:35 UTC
Created attachment 355 [details]
Output when running "bitbake meta-toolchain"

I am running an upstrem poky, pulled from poky.git with HEAD ef9d924f3216811b0fb1a300fa12d4cde18816eb I am trying to build a toolchain for an image that is based on the poky-tiny distro. When doing so I get the error below. Complete log is attached.

NOTE: package eglibc-locale-2.13-r19: task do_package: Started
NOTE: package eglibc-locale-2.13-r19: task do_populate_sysroot: Started
ERROR: Error executing a python function in /opt/poky.git/meta/recipes-core/eglibc/eglibc-locale_2.13.bb:
OSError: [Errno 2] No such file or directory: '/home/rchatre/concordia/dev/ccd-distro-work/tmp/work/core2-poky-linux/eglibc-locale-2.13-r19/package/usr/lib/gconv'

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "package_do_split_gconvs", line 264, in <module>
ERROR:·
ERROR:   File "package_do_split_gconvs", line 45, in package_do_split_gconvs
ERROR:·
ERROR:   File "package.bbclass", line 30, in do_split_packages
ERROR:·
ERROR: The code that was being executed was:
ERROR:      0260:»------»-------bb.note("generation of binary locales disabled. this may break i18n!")
ERROR:      0261:
ERROR:      0262:
ERROR:      0263:
ERROR:  *** 0264:package_do_split_gconvs(d)
ERROR:      0265:
ERROR: (file: 'package_do_split_gconvs', lineno: 264, function: <module>)
ERROR:      0041:»------»-------»-------d.setVar('RPROVIDES_%s' % pkg, pkg.replace(bpn, 'glibc'))
ERROR:      0042:
ERROR:      0043:»------do_split_packages(d, gconv_libdir, file_regex='^(.*)\.so$', output_pattern=bpn+'-gconv-%s', \
ERROR:      0044:»------»-------description='gconv module for character set %s', hook=calc_gconv_deps, \
ERROR:  *** 0045:»------»-------extra_depends=bpn+'-gconv')
ERROR:      0046:
ERROR:      0047:»------def calc_charmap_deps(fn, pkg, file_regex, output_pattern, group):
ERROR:      0048:»------»-------deps = []
ERROR:      0049:»------»-------f = open(fn, "r")
ERROR: (file: 'package_do_split_gconvs', lineno: 45, function: package_do_split_gconvs)
ERROR: Function failed: package_do_split_gconvs
ERROR: Logfile of failure stored in: /home/rchatre/concordia/dev/ccd-distro-work/tmp/work/core2-poky-linux/eglibc-locale-2.13-r19/temp/log.do_package.31042
NOTE: package eglibc-locale-2.13-r19: task do_package: Failed
ERROR: Task 552 (/opt/poky.git/meta/recipes-core/eglibc/eglibc-locale_2.13.bb, do_package) failed with exit code '1'
Comment 1 Richard Purdie 2012-03-16 17:19:44 UTC
Just for reference, the problem here is that poky-tiny disables locales. Previously we haven't built anything with poky-tiny that uses the locale packages but it seems meta-toolchain does. If we remove the locales from the toolchain, this will likely resolve this error but the proper fix is probably going to be to emit an empty locales package.
Comment 2 Nitin Kamble 2012-03-30 17:11:38 UTC
Reinette,
  can you give me steps to reproduce the issue ?

Thanks,
Nitin
Comment 3 Nitin Kamble 2012-03-30 18:33:56 UTC
I am able to reproduce this issue by setting this in the local.conf

DISTRO = "poky-tiny"
Comment 6 Nitin Kamble 2012-04-06 16:08:49 UTC
THis commit in poky tree fixes the issue

commit 6c73e458da03e79a6b029da758dce60bcad17b33
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Fri Mar 30 13:59:18 2012 -0700

    eglibc packaging: locale packaging configuration

    The PACKAGE_NO_GCONV var manipulations ware happening in the
    eglibc-options.inc file, and the eglibc-locale recipe do not
    see it. Moving that into the libc-package.bbclass which is
    common to eglibc & eglibc-locale recipes.

    This fixes bug: [YOCTO #2089]
Comment 7 Reinette Chatre 2012-04-17 18:41:01 UTC
Works for me now, thank you very much.