<?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>3832</bug_id>
          
          <creation_ts>2013-02-02 06:28:46 +0000</creation_ts>
          <short_desc>SDK is broken now after enabling multilib for gcc on target</short_desc>
          <delta_ts>2013-02-07 07:47:32 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>898a8094b1dcffc5ee54dbb612477c9bb3b8fd4b</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Constantin Musca">constantinx.musca</assigned_to>
          <cc>constantinx.musca</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>29480</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2013-02-02 06:28:46 +0000</bug_when>
    <thetext>After commit 

commit 703b70c98a86771a891b46382f3ee20c4ef93f39
Author: Constantin Musca &lt;constantinx.musca@intel.com&gt;
Date:   Mon Dec 17 13:46:20 2012 +0200

    gcc: enable multilib for target gcc
    
    - add a task to setup multilib configuration for target gcc
    - this commit adapts Nitin Kamble&apos;s work to gcc 4.7
    - use a hash for storing arch-dependent multilib options
    - patch gcc in order to use the multilib config files from the
    build directory
    
    Tests:
    root@qemux86-64:~# gcc -m64 t.c -o t
    root@qemux86-64:~# file t
    t: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
    root@qemux86-64:~# ./t
    Hello World !
    root@qemux86-64:~# gcc -m32 t.c -o t
    root@qemux86-64:~# file t
    t: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
    root@qemux86-64:~# ./t
    Hello World !
    
    [YOCTO #1369]
    
    (From OE-Core rev: b26819c85881e82ee1b5c68840011e78c321f18e)
    
    Signed-off-by: Constantin Musca &lt;constantinx.musca@intel.com&gt;
    Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

enable multilib and then try to build meta-toolchain for qemux86-64 it breaks
like below

NOTE: recipe nativesdk-libgcc-4.7.2-r15: task do_multilib_install: Started
ERROR: Error executing a python function in /b/kraj/jlinux-next/poky/meta/recipes-devtools/gcc/libgcc_4.7.bb:
TypeError: sequence item 1: expected string, NoneType found

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File &quot;do_multilib_install&quot;, line 64, in &lt;module&gt;
ERROR:
ERROR:   File &quot;do_multilib_install&quot;, line 17, in do_multilib_install
ERROR:
ERROR:   File &quot;gcc-common.inc&quot;, line 4, in get_tune_parameters
ERROR:
ERROR:   File &quot;/b/kraj/jlinux-next/poky/bitbake/lib/bb/__init__.py&quot;, line 98, in error
ERROR:     logger.error(&apos;&apos;.join(args))
ERROR:
ERROR: The code that was being executed was:
ERROR:      0060:            os.unlink(dest)
ERROR:      0061:        os.symlink(src, dest)
ERROR:      0062:
ERROR:      0063:
ERROR:  *** 0064:do_multilib_install(d)
ERROR:      0065:
ERROR: [From file: &apos;do_multilib_install&apos;, lineno: 64, function: &lt;module&gt;]
ERROR:      0013:        return
ERROR:      0014:
ERROR:      0015:    if mlprefix:
ERROR:      0016:        orig_tune = d.getVar(&apos;DEFAULTTUNE_MULTILIB_ORIGINAL&apos;, True)
ERROR:  *** 0017:        orig_tune_params = get_tune_parameters(orig_tune, d)
ERROR:      0018:        orig_tune_baselib = orig_tune_params[&apos;baselib&apos;]
ERROR:      0019:        orig_tune_bitness = orig_tune_baselib.replace(&apos;lib&apos;, &apos;&apos;)
ERROR:      0020:        if not orig_tune_bitness:
ERROR:      0021:            orig_tune_bitness = &apos;32&apos;
ERROR: [From file: &apos;do_multilib_install&apos;, lineno: 17, function: do_multilib_install]
ERROR:      0001:def get_tune_parameters(tune, d):
ERROR:      0002:    availtunes = d.getVar(&apos;AVAILTUNES&apos;, True)
ERROR:      0003:    if tune not in availtunes.split():
ERROR:  *** 0004:        bb.error(&apos;The tune: %s is not one of the available tunes: %s&apos;, tune, availtunes)
ERROR:      0005:
ERROR:      0006:    localdata = bb.data.createCopy(d)
ERROR:      0007:    override = &apos;:tune-&apos; + tune
ERROR:      0008:    localdata.setVar(&apos;OVERRIDES&apos;, localdata.getVar(&apos;OVERRIDES&apos;, False) + override)
ERROR: [From file: &apos;gcc-common.inc&apos;, lineno: 4, function: get_tune_parameters]
ERROR: Function failed: do_multilib_install
ERROR: Logfile of failure stored in: /b/kraj/jlinux-next/poky/build/tmp-eglibc/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc/4.7.2-r15/temp/log.do_multilib_install.10856
NOTE: recipe nativesdk-libgcc-4.7.2-r15: task do_multilib_install: Failed
ERROR: Task 1988 (virtual:nativesdk:/b/kraj/jlinux-next/poky/meta/recipes-devtools/gcc/libgcc_4.7.bb, do_multilib_install) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 3155 tasks of which 2554 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:nativesdk:/b/kraj/jlinux-next/poky/meta/recipes-devtools/gcc/libgcc_4.7.bb, do_multilib_install</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29481</commentid>
    <comment_count>1</comment_count>
      <attachid>1055</attachid>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2013-02-02 06:43:23 +0000</bug_when>
    <thetext>Created attachment 1055
patch which fixes it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29630</commentid>
    <comment_count>2</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-02-07 07:47:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created attachment 1055 [details]
&gt; patch which fixes it.

Patch merged. (commit 898a8094b1dcffc5ee54dbb612477c9bb3b8fd4b)

Cheers,
Constantin</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1055</attachid>
            <date>2013-02-02 06:43:23 +0000</date>
            <delta_ts>2013-02-02 06:43:23 +0000</delta_ts>
            <desc>patch which fixes it.</desc>
            <filename>0001-libgcc-Disable-multilib-install-for-nativesdk.patch</filename>
            <type>text/plain</type>
            <size>918</size>
            <attacher name="Khem Raj">raj.khem</attacher>
            
              <data encoding="base64">RnJvbSBhNmM3NmJjMDc0NThkYmEzNjRmOWNkYTM4YTQ4NWIwZmY3Y2JhNmUwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBLaGVtIFJhaiA8cmFqLmtoZW1AZ21haWwuY29tPgpEYXRlOiBG
cmksIDEgRmViIDIwMTMgMjI6NDE6MDMgLTA4MDAKU3ViamVjdDogW1BBVENIXSBsaWJnY2M6IERp
c2FibGUgbXVsdGlsaWIgaW5zdGFsbCBmb3IgbmF0aXZlc2RrCgpGaXhlcyBlcnJvcnMgd2hlbiBi
dWlsZGluZyBTREsgZm9yIG11b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