<?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>8583</bug_id>
          
          <creation_ts>2015-10-26 22:31:25 +0000</creation_ts>
          <short_desc>strace shows accesses in non-existent location.</short_desc>
          <delta_ts>2018-10-11 15:16:04 +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>2.0</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>Undecided</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55789</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-10-26 22:31:25 +0000</bug_when>
    <thetext>Install a  buildtools-tarball such as poky-glibc-i686-buildtools-tarball-i586-buildtools-nativesdk-standalone-xxxx.sh in a non-default location.
Source the environment, i.e.:

$ . environment-setup-i686-pokysdk-linux

Run a command such as:

$ strace make 2&gt;&amp;1  | grep /opt

Observe:
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/locale-archive&quot;, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale/locale.alias&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en_CA.UTF-8/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en_CA.utf8/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en_CA/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en.UTF-8/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en.utf8/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/en/LC_IDENTIFICATION&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/include&quot;, 0xffc768e0) = -1 ENOENT (No such file or directory)


So some files are assumed to be in default (but potentially non-existent) location.
Although this does not seem to be harmful, it should be either fixed or justified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56970</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-12-02 22:06:29 +0000</bug_when>
    <thetext>The culprit seems to be libc-2.22.so, as it contains some hard-coded links that may not exist:

strings -f *.so | grep /opt/poky
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/gconv
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/gconv/gconv-modules.cache
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale/%L/%N:/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale/%L/LC_MESSAGES/%N:/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale/%l/%N:/opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale/%l/LC_MESSAGES/%N:
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/etc/localtime
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/glibc/getconf
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/lib/locale/locale-archive
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/locale
libc-2.22.so: /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/share/zoneinfo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59949</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-03-14 17:52:56 +0000</bug_when>
    <thetext>Meant to say hard-coded paths (not links).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81807</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-11 15:16:04 +0000</bug_when>
    <thetext>We now include locale data in the sdks and uninative so these paths are now handled correctly. If there are any remaining issues we&apos;d handle in separate bugs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>