<?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>4291</bug_id>
          
          <creation_ts>2013-04-15 09:04:58 +0000</creation_ts>
          <short_desc>/usr/lib not containing native 64b libs for 64b target setup</short_desc>
          <delta_ts>2013-04-15 11:15:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Heinz Wrobel">Heinz.Wrobel</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>richard.purdie</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>32134</commentid>
    <comment_count>0</comment_count>
    <who name="Heinz Wrobel">Heinz.Wrobel</who>
    <bug_when>2013-04-15 09:04:58 +0000</bug_when>
    <thetext>it seems that even for a 64b target kernel, yocto/bitbake will create /usr/lib and /usr/lib64 with /usr/lib containing 32b libs in the rootfs.

Shouldn’t it create /usr/lib (64b) and /usr/lib32 (32b) instead?

The current setup seems to confuse ./configure based manual package builds which try to find the native(==kernel) sized libs in /usr/lib whereas a native rootfs, e.g., pkg-config looks into /usr/lib64 when I think it should look into /usr/lib on a 64b target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32152</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-15 11:15:10 +0000</bug_when>
    <thetext>The settings are completely configurable, for example:

require conf/multilib.conf

# Example of lib32 in a /usr/lib32 directory
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;
baselib_virtclass-multilib-lib32 = &quot;lib32&quot;

# Example of lib64 in a /usr/lib64 directory
MULTILIBS = &quot;multilib:lib64&quot;
DEFAULTTUNE_virtclass-multilib-lib64 = &quot;x86-64&quot;
baselib_virtclass-multilib-lib64 = &quot;lib64&quot;

and you can change the default libdir with:

baselib = &quot;lib&quot;
baselib = &quot;lib32&quot;
baselib = &quot;lib64&quot;

as you want. So just pick the configuration you&apos;d like!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>