<?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>2520</bug_id>
          
          <creation_ts>2012-05-29 19:51:37 +0000</creation_ts>
          <short_desc>mklibs: Can&apos;t handle multilib paths</short_desc>
          <delta_ts>2012-09-26 15:05:21 +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>Other YP Layers</product>
          <component>layers</component>
          <version>unspecified</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>d6ef548c48968d16f7e24dec7452ddb455c26d46</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Constantin Musca">constantinx.musca</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>21708</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-05-29 19:51:37 +0000</bug_when>
    <thetext>The mklibs script appears to have hardcoded references to /lib, /usr/lib and /usr/X11R6/lib in it.  These references need to support the variable baselib paths supported by OE-Core.

In order to reproduce the problem:

setup a build, configure local.conf with:

MULTILIBS = &quot;&quot;
require conf/multilib.conf

Enable mklibs with:

MKLIBS_OPTIMIZED_IMAGES ?= &quot;all&quot;


Build a filesystem on a target that does NOT have &quot;/lib&quot;, such as qemux86-64.. It will generate a python failure in the mklibs process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25755</commentid>
    <comment_count>1</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2012-09-26 09:12:54 +0000</bug_when>
    <thetext>Testing config:

local.conf:
MULTILIBS = &quot;&quot;
require conf/multilib.conf
MKLIBS_OPTIMIZED_IMAGES ?= &quot;all&quot;

MACHINE: qemux86-64

Everything seems fine (no error). Can you give me more details?

Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25781</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-09-26 14:45:24 +0000</bug_when>
    <thetext>perhaps this has been fixed?

The issue (when first reported) was that &apos;/lib&apos; was hard coded into the mklibs.  If you built an architecture that didn&apos;t have a /lib, or the libraries were not in /lib, you would either get a large number of warnings/errors (non-fatal) in the rootfs log... or you would end up with a python failure (fatal).

The end result was that the target filesystem, if it completed, would not actually be prelinked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25782</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-09-26 14:46:12 +0000</bug_when>
    <thetext>in the last comment I meant library optimized, NOT prelinked.  Sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25786</commentid>
    <comment_count>4</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2012-09-26 15:05:21 +0000</bug_when>
    <thetext>This bug has been fixed.

commit d6ef548c48968d16f7e24dec7452ddb455c26d46
Author: Jesse Zhang &lt;sen.zhang@windriver.com&gt;
Date:   Tue Aug 7 10:31:57 2012 +0800
    image-mklibs: pass correct libdir to mklibs
    
    libdir should be specified, or else mklibs won&apos;t work for 64bit targets.
    It wouldn&apos;t be able to find the libs.
...

Cheers,
Constantin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>