<?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>7610</bug_id>
          
          <creation_ts>2015-04-15 08:47:20 +0000</creation_ts>
          <short_desc>[Multilib] Can&apos;t install 64bit packages to 32bit rootfs</short_desc>
          <delta_ts>2025-01-09 16:26:39 +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>configuration</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenzong.Fan">wenzong.fan</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>wenzong.fan</cc>
          
          <qa_contact name="Apoorv">apoorv.sangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50309</commentid>
    <comment_count>0</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2015-04-15 08:47:20 +0000</bug_when>
    <thetext>To quote from the Yocto Development manual 1.7.1 (http://www.yoctoproject.org/docs/1.7.1/dev-manual/dev-manual.pdf) &apos;Section 5.5.2 Combining Multiple Versions of Library Files into One Image&apos;

&quot;An example would be where you have most of a system compiled in 32-bit mode using 32-bit libraries, but you have something large, like a database engine, that needs to be a 64-bit application and uses 64-bit libraries. Multilib allows you to get the best of both 32-bit and 64-bit libraries&quot;

I can&apos;t add 64bit packages to 32bit system via:

1) config a project and add below multilib configs to local.conf:

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

2) run &quot;bitbake lib32-core-image-minimal&quot;

3) add IMAGE_INSTALL_append = &quot;valgrind&quot; to local.conf and rerun &quot;bitbake lib32-core-image-minimal&quot;

32bit valgrind will be installed but not 64bit.

Any packages that appended to IMAGE_INSTALL will be extended as lib32-$pkgname in this case, so we can&apos;t install any 64bit packages to 32bit system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50352</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-04-16 15:08:44 +0000</bug_when>
    <thetext>This worked in the YP 1.5.  So something changed afterwards that prevented it from working.  (Likely the multilib remapping fixed a bug that is now causing this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50484</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-04-23 10:22:07 +0000</bug_when>
    <thetext>Use lib64-bash:

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

IMAGE_INSTALL_append = &quot; lib64-bash&quot;

Then it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53529</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-08-28 12:19:02 +0000</bug_when>
    <thetext>not a bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54127</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-16 02:05:32 +0000</bug_when>
    <thetext>I&apos;ve sent patches to oe-core, now we can use:

IMAGE_INSTALL_append += &quot; bash&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54724</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-28 14:03:26 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55137</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-10-10 02:34:51 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;ve sent patches to oe-core, now we can use:
&gt; 
&gt; IMAGE_INSTALL_append += &quot; bash&quot;

Sorry, it still doesn&apos;t work, we can&apos;t install 64bit packages to 32bit rootfs, this doesn&apos;t sounds good, we need another way to make it work, I will convert it into an enhancement of YP 2.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64709</commentid>
    <comment_count>7</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-08-01 08:15:39 +0000</bug_when>
    <thetext>The smart maybe replaced by dnf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82579</commentid>
    <comment_count>8</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2018-12-21 09:16:04 +0000</bug_when>
    <thetext>Could reproduce with Yocto 2.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88787</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-12-17 15:52:10 +0000</bug_when>
    <thetext>Kai, ping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100587</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-09 16:25:11 +0000</bug_when>
    <thetext>Kai, please test. Surely this works on master...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100588</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-09 16:26:39 +0000</bug_when>
    <thetext>We&apos;re pretty sure that this work now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>