<?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>3681</bug_id>
          
          <creation_ts>2013-01-08 04:22:04 +0000</creation_ts>
          <short_desc>smart: Can&apos;t install multilib gcc into rootfs</short_desc>
          <delta_ts>2013-02-06 11:47:22 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="chnarius">chnarius</reporter>
          <assigned_to name="Bogdan Marinescu">bogdan.a.marinescu</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>msm-oss</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>28602</commentid>
    <comment_count>0</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-01-08 04:22:04 +0000</bug_when>
    <thetext>when install both 32/64bit gcc into rootfs, do_rootfs failed with the below messages:

| Updating cache...               ######################################## [100%]
| 
| Computing transaction...error: Can&apos;t install 
| gcc-4.7.2-r13@lib64_ppc64e5500: it can&apos;t coexist with 
| gcc-4.7.2-r13@ppce5500
| 
| Saving cache...
| 
| ERROR: Function failed: do_rootfs

Before using smart to generate RPM rootfs, it had no such issue. thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28717</commentid>
    <comment_count>1</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-10 12:00:05 +0000</bug_when>
    <thetext>Please provide complete reproducibility instructions for this bug. Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28744</commentid>
    <comment_count>2</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-01-11 04:01:12 +0000</bug_when>
    <thetext>1. add meta-fsl-ppc in conf/bblayer.conf.
2. define MACHINE in conf/local.conf:
MACHINE = &quot;p5020ds&quot;
3. enable multilib in conf/local.conf:
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib64&quot;
DEFAULTTUNE_virtclass-multilib-lib64 = &quot;ppc64e5500&quot;
4. add &quot;${@multilib_pkg_extend(d, &quot;gcc&quot;)}&quot; or &quot;lib64-gcc&quot; in the list of IMAGE_INSTALL
5. bitbake &lt;target&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29039</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-22 15:01:05 +0000</bug_when>
    <thetext>I tried applying your instructions, but I get this error:

/poky/build [] $ bitbake core-image-minimal
Loading cache: 100% |###############################################################################################################################################################################| ETA:  00:00:00
Loaded 1982 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 00:00:00
Parsing of 835 .bb files complete (834 cached, 1 parsed). 1983 targets, 97 skipped, 0 masked, 0 errors.
ERROR: No recipes available for:
  /poky/poky/meta-fsl-ppc/recipes-append/libxml/libxml2_2.8.0.bbappend
ERROR: Command execution failed: Exited with 1

(it doesn&apos;t happen only for core-image-minimal).

I got the meta-fsl-ppc layer from here:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc

Anything else I need to do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29048</commentid>
    <comment_count>4</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2013-01-22 16:27:19 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I tried applying your instructions, but I get this error:
&gt; 
&gt; /poky/build [] $ bitbake core-image-minimal
&gt; Loading cache: 100%
&gt; |############################################################################
&gt; #############################################################################
&gt; ######################| ETA:  00:00:00
&gt; Loaded 1982 entries from dependency cache.
&gt; Parsing recipes: 100%
&gt; |############################################################################
&gt; #############################################################################
&gt; ####################| Time: 00:00:00
&gt; Parsing of 835 .bb files complete (834 cached, 1 parsed). 1983 targets, 97
&gt; skipped, 0 masked, 0 errors.
&gt; ERROR: No recipes available for:
&gt;   /poky/poky/meta-fsl-ppc/recipes-append/libxml/libxml2_2.8.0.bbappend
&gt; ERROR: Command execution failed: Exited with 1
&gt; 
&gt; (it doesn&apos;t happen only for core-image-minimal).
&gt; 
&gt; I got the meta-fsl-ppc layer from here:
&gt; 
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc
&gt; 
&gt; Anything else I need to do?

Try the master-next branch.

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29080</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-23 10:56:22 +0000</bug_when>
    <thetext>I cannot reproduce this on a recent master:

/poky/build [] $ bitbake core-image-minimal
Loading cache: 100% |###############################################################################################################################################################################| ETA:  00:00:00
Loaded 1982 entries from dependency cache.
NOTE: [&apos;/poky/poky/meta-fsl-ppc/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend&apos;] to []
NOTE: [&apos;/poky/poky/meta-fsl-ppc/recipes-append/libxml/libxml2_2.9.0.bbappend&apos;] to []
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 00:00:00
Parsing of 836 .bb files complete (824 cached, 12 parsed). 1985 targets, 97 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = &quot;1.17.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.10&quot;
TARGET_SYS        = &quot;powerpc-poky-linux&quot;
MACHINE           = &quot;p5020ds&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130123&quot;
TUNE_FEATURES     = &quot;m32 fpu-hard e5500&quot;
TARGET_FPU        = &quot;hard&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;b3681:37e025f6f9c410005e0f1dee0767e38eaec01cbd&quot;
meta-fsl-ppc      = &quot;master-next:877cb8b1374c59737ffbe6f33e031b571284c8f9&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: lib64-gcc: Files/directories were installed but not shipped
  /usr/lib64/libiberty.a
NOTE: Tasks Summary: Attempted 1599 tasks of which 732 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29082</commentid>
    <comment_count>6</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-23 12:37:47 +0000</bug_when>
    <thetext>Forgot to mention that I have these lines in my conf/local.conf:

require conf/multilib.conf
MULTILIBS = &quot;multilib:lib64&quot;
DEFAULTTUNE_virtclass-multilib-lib64 = &quot;ppc64e5500&quot;

IMAGE_INSTALL_append = &quot; lib64-gcc&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29117</commentid>
    <comment_count>7</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-01-24 01:37:32 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Forgot to mention that I have these lines in my conf/local.conf:

require
&gt; conf/multilib.conf
MULTILIBS = &quot;multilib:lib64&quot;
&gt; DEFAULTTUNE_virtclass-multilib-lib64 = &quot;ppc64e5500&quot;

IMAGE_INSTALL_append =
&gt; &quot; lib64-gcc&quot;

core-image-minimal does not include gcc by default, right? so you just install the 64bit gcc. Try: IMAGE_INSTALL_append = &quot; gcc lib64-gcc&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29129</commentid>
    <comment_count>8</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-24 11:25:14 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; Forgot to mention that I have these lines in my conf/local.conf:
&gt; 
&gt; require
&gt; &gt; conf/multilib.conf
&gt; MULTILIBS = &quot;multilib:lib64&quot;
&gt; &gt; DEFAULTTUNE_virtclass-multilib-lib64 = &quot;ppc64e5500&quot;
&gt; 
&gt; IMAGE_INSTALL_append =
&gt; &gt; &quot; lib64-gcc&quot;
&gt; 
&gt; core-image-minimal does not include gcc by default, right? so you just
&gt; install the 64bit gcc. Try: IMAGE_INSTALL_append = &quot; gcc lib64-gcc&quot;

I can reproduce the bug now, thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29130</commentid>
    <comment_count>9</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-24 11:35:41 +0000</bug_when>
    <thetext>I see that that the compilation fails even when selecting ipk as the packaging backend:

| + opkg-cl -f /poky/build/tmp/work/p5020ds-poky-linux/core-image-minimal/1.0-r0/opkg.conf -o /poky/build/tmp/work/p5020ds-poky-linux/core-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install lib64-gcc
| Installing lib64-gcc (4.7.2-r14) to root...
| Downloading file:/poky/build/tmp/deploy/ipk/ppc64e5500/lib64-gcc_4.7.2-r14_ppc64e5500.ipk.
| Installing lib64-eglibc (2.16-r20) to root...
| Downloading file:/poky/build/tmp/deploy/ipk/ppc64e5500/lib64-eglibc_2.16-r20_ppc64e5500.ipk.
| Configuring sysvinit-inittab.
| sysvinit-inittab.postinst returned 1, marking as unpacked only, configuration required on target.
| Collected errors:
|  * check_data_file_clashes: Package lib64-eglibc wants to install file /poky/build/tmp/work/p5020ds-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/ld.so.conf
| 	But that file is already provided by package  * libc6
|  * check_data_file_clashes: Package lib64-eglibc wants to install file /poky/build/tmp/work/p5020ds-poky-linux/core-image-minimal/1.0-r0/rootfs/sbin/ldconfig
| 	But that file is already provided by package  * libc6
|  * opkg_install_cmd: Cannot install package lib64-gcc.
| ERROR: Function failed: do_rootfs (see /poky/build/tmp/work/p5020ds-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.10215 for further information)

So this might not be a smart issue after all?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29173</commentid>
    <comment_count>10</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-01-25 02:31:22 +0000</bug_when>
    <thetext>Some information. It still worked on the below commit:

commit 958162e96b4a4f23bca94500b5f20975633dd5c6
Author: Cristiana Voicu &lt;cristiana.voicu@intel.com&gt;
Date:   Fri Dec 14 17:35:47 2012 +0200

    bitbake: hob: use base image only if it was set
    
    As it is, when you create a new image from scratch, hob gives an error.
    This is because of the patch for #2601.
    
    (Bitbake rev: 42d9db0cc80ed45d769f843ccb51e0c194ec557b)
    
    Signed-off-by: Cristiana Voicu &lt;cristiana.voicu@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29237</commentid>
    <comment_count>11</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-28 15:30:38 +0000</bug_when>
    <thetext>Patch sent (python-smartpm: multilib fixes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29573</commentid>
    <comment_count>12</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-02-06 11:47:22 +0000</bug_when>
    <thetext>Patch merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>