<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>339</bug_id>
          
          <creation_ts>2010-09-17 21:04:10 +0000</creation_ts>
          <short_desc>on qemumips, &quot;bitbake poky-image-minimal&quot; will fail if eglibc is used.</short_desc>
          <delta_ts>2010-12-21 06:07:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>226</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9888</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-17 21:04:10 +0000</bug_when>
    <thetext>I use the M3 build (commit 14830c80）plus cherry picking the latest Nitin&apos;s
eglibc fix (commit d6e8013a8c1c43) and plus my patch
fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch (see comment 3 of Bug
329)

eglibc is enabled in the following way:
diff meta/conf/distro/poky.conf
-POKYLIBC ?= &quot;glibc&quot;
+POKYLIBC ?= &quot;eglibc&quot;

First, I tried &quot;bitbake poky-image-sdk&quot; and it failed:

NOTE: package eglibc-2.12-r6: task do_package: Started
NOTE: preparing tree for binary locale generation
NOTE: generating locale es_NI (UTF-8)
NOTE: cmd:
NOTE: PATH=&quot;/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/bin/mips-poky-linux:/distro/dcui/dexuan-mips/build/tmp/sysroots/mips-poky-linux/usr/bin/crossscripts:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/sbin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/bin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/sbin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux//bin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/bin/mips-poky-linux:/distro/dcui/dexuan-mips/build/tmp/sysroots/mips-poky-linux/usr/bin/crossscripts:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/sbin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/usr/bin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux/sbin:/distro/dcui/dexuan-mips/build/tmp/sysroots/i686-linux//bin:/distro/dcui/dexuan-mips/scripts/..//bitbake//bin/:/distro/dcui/dexuan-mips/scripts/..//scripts:/distro/dcui/dexuan-arm/scripts/..//bitbake//bin/:/distro/dcui/dexuan-arm/scripts/..//scripts:/distro/dcui/dexuan/scripts/..//bitbake//bin/:/distro/dcui/dexuan/scripts/..//scripts:/distro/dcui/dexuan/scripts/..//bitbake//bin/:/distro/dcui/dexuan/scripts/..//scripts:/distro/dcui/dexuan/scripts/..//bitbake//bin/:/distro/dcui/dexuan/scripts/..//scripts:/osel/dcui/nt/pc/scripts/..//bitbake//bin/:/osel/dcui/nt/pc/scripts/..//scripts:/osel/dcui/nt/pc/scripts/..//bitbake//bin/:/osel/dcui/nt/pc/scripts/..//scripts:/home/dcui/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/distro/dcui/dexuan/scripts:/distro/dcui/dexuan/scripts&quot; I18NPATH=&quot;/distro/dcui/dexuan-mips/build/tmp/work/mips-poky-linux/eglibc-2.12-r6/locale-tree/usr/share/i18n&quot; qemu-mips -L /distro/dcui/dexuan-mips/build/tmp/work/mips-poky-linux/eglibc-2.12-r6/locale-tree          -E LD_LIBRARY_PATH=/distro/dcui/dexuan-mips/build/tmp/work/mips-poky-linux/eglibc-2.12-r6/locale-tree/lib  /distro/dcui/dexuan-mips/build/tmp/work/mips-poky-linux/eglibc-2.12-r6/locale-tree/bin/localedef --force --old-style --no-archive --prefix=/distro/dcui/dexuan-mips/build/tmp/work/mips-poky-linux/eglibc-2.12-r6/locale-tree            --inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI
NOTE: stdout:
NOTE:
NOTE: stderr:
NOTE:
ERROR: Task failed: localedef returned an error
NOTE: package eglibc-2.12-r6: task do_package: Failed
ERROR: Task 475 (/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_package) failed with 1
Waiting for 1 active tasks to finish:
1: eglibc-2.12-r6 do_populate_sysroot (pid 6676)
NOTE: package eglibc-2.12-r6: task do_populate_sysroot: Succeeded
ERROR: &apos;/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb&apos; failed


Later, I tried &quot;bitbake poky-image-minimal&quot; and it also failed in the same way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9931</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-21 01:12:18 +0000</bug_when>
    <thetext>&gt; ERROR: Task failed: localedef returned an error

The failure occurs here:

 def output_locale_binary(name, pkgname, locale, encoding):
        ...
        cmd = &quot;PATH=\&quot;%s\&quot; I18NPATH=\&quot;%s\&quot; %s -L %s \
            -E LD_LIBRARY_PATH=%s %s %s/bin/localedef %s&quot; % \
            (path, i18npath, qemu, treedir, ldlibdir, qemu_options, treedir, localedef_opts)
        bb.note(&quot;generating locale %s (%s)&quot; % (locale, encoding))
        import subprocess
        process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        if process.wait() != 0:
        ...
        raise bb.build.FuncFailed(&quot;localedef returned an error&quot;)

After adding log for process.wait(), it&apos;s -11 every time.
-11 is -SIGSEGV. It means the qemu-mips in the variable cmd crash with a segfault.

However, when I run manually the long cmd string in shell, it is ok!
This is really strange... looking into this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9950</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-25 21:26:53 +0000</bug_when>
    <thetext>The issue has been worked around -- see the commit info in Bug 226.

*** This bug has been marked as a duplicate of bug 226 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10539</commentid>
    <comment_count>3</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-14 16:21:22 +0000</bug_when>
    <thetext>close as a dup</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>