<?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>1362</bug_id>
          
          <creation_ts>2011-08-10 23:32:35 +0000</creation_ts>
          <short_desc>gcc-cross-intermediate build failure in lib64 multilib case</short_desc>
          <delta_ts>2011-09-02 14:31:28 +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.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Patch sent out. Aug 14</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Yu">ke.yu</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.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>15389</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-10 23:32:35 +0000</bug_when>
    <thetext>In the qemux86-64 lib64 multilib case, gcc-cross-intermediate has build failure: 

| mv: cannot stat `/home/kyu3/sdb/multilib2/tmp/work/x86_64-pokymllib64-linux/lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4/image/home/kyu3/sdb/     multilib2/tmp/sysroots/x86_64-linux/usr/x86_64-pokymllib64-linux/lib64/*&apos;: No such file or directory                                                    NOTE: package lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4: task do_install: Failed
ERROR: Task 1557 (virtual:multilib:lib64:/home/kyu3/src/poky/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.6.bb, do_install) failed with exit code &apos;1&apos;                                                                                                                                                     

Reproduce step:
commit: 786033f53cad2a196ae6f3a05574148578ea3894 
enable multilib in local.conf:

MACHINE = &quot;qemux86-64&quot;
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib64&quot;
DEFAULTTUNE_virtclass-multilib-lib64 = &quot;x86-64&quot;

# bitbake lib64-core-image-sato</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15390</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-10 23:34:25 +0000</bug_when>
    <thetext>The culprit is:
&quot;
commit 35fa8dc5f7da90fdd40091a3c3600d3fcd232922
Author: Kumar Gala &lt;galak@kernel.crashing.org&gt;
Date:   Thu Aug 4 13:54:59 2011 -0500

    gcc: use ${base_lib} to match gcc default configuration

    Rather than tweaking MULTILIB_DIRNAMES &amp; MULTILIB_OSDIRNAMES like is
    done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
    and utilize ${base_lib} for where to find gcc libs.

    (From OE-Core rev: cfcc282efef30ea1988ccbe14835254a999584ea)

    Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
index df5958a..7b1bb38 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
@@ -34,7 +34,7 @@ do_compile () {
 do_install () {
        oe_runmake &apos;DESTDIR=${D}&apos; install
        install -d ${D}${target_base_libdir}/
-       mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
+       mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/

        # We don&apos;t really need this (here shares/ contains man/, info/, locale/).
        rm -rf ${D}${datadir}/
&quot;

the reason is that: ${baselib} is lib64 in multilib case, while the files to be moved is still in ${D}${exec_prefix}/${TARGET_SYS}/lib/*,  so mv will fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15980</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-02 14:31:28 +0000</bug_when>
    <thetext>Fixed with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c04ae9bf71920c6ea2315dc87b9250bb2f6560b3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>