<?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>2965</bug_id>
          
          <creation_ts>2012-08-17 15:05:27 +0000</creation_ts>
          <short_desc>cross linker picks up host libraries via -rpath argument</short_desc>
          <delta_ts>2012-11-01 15:00:38 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy Ross">andy.ross</reporter>
          <assigned_to name="Andy Ross">andy.ross</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>sstncr</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>24153</commentid>
    <comment_count>0</comment_count>
      <attachid>696</attachid>
    <who name="Andy Ross">andy.ross</who>
    <bug_when>2012-08-17 15:05:27 +0000</bug_when>
    <thetext>Created attachment 696
Script to exercise the incorrect search path behavior

When called with a --sysroot and -rpath argument, the linker will probe host directories instead of interpreting the rpath relative to sysroot.  See the attached script.  The same is not true of RPATH fields in the ELF header, which are searched in the sysroot correctly.

Due to an unrelated issue where libtool will generate binaries with -rpath arguments of e.g. &quot;/usr/lib/../lib&quot;.  This can collide with a host directory and cause build failures due to version skew.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24413</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Ross">andy.ross</who>
    <bug_when>2012-08-23 17:34:15 +0000</bug_when>
    <thetext>Fix posted to oe-core 2012-08-23.  I assume I just mark this fixed myself?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26019</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-02 10:43:34 +0000</bug_when>
    <thetext>Submission to oe-core doesn&apos;t count as fixed.  It&apos;s fixed when it&apos;s merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26021</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2012-10-02 11:12:40 +0000</bug_when>
    <thetext>Actually, my bad that I didn&apos;t found the commit at first, but it was merged: 

commit 8592e828261fb4a48b8156e11b5859d38aeb403f
Author: Andy Ross &lt;andy.ross@windriver.com&gt;
Date:   Thu Aug 23 17:32:31 2012 +0000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27152</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2012-11-01 15:00:38 +0000</bug_when>
    <thetext>Verified in danny / 27af23e65f63b41962a7cfddba9e9372d5212396</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>696</attachid>
            <date>2012-08-17 15:05:27 +0000</date>
            <delta_ts>2012-08-17 15:05:27 +0000</delta_ts>
            <desc>Script to exercise the incorrect search path behavior</desc>
            <filename>sysroot-ld.sh</filename>
            <type>application/x-shellscript</type>
            <size>1013</size>
            <attacher name="Andy Ross">andy.ross</attacher>
            
              <data encoding="base64">Iy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