<?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>6299</bug_id>
          
          <creation_ts>2014-05-08 16:25:20 +0000</creation_ts>
          <short_desc>sstate relocation failing</short_desc>
          <delta_ts>2014-07-25 16:18:16 +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>core</component>
          <version>1.7</version>
          <rep_platform>All</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>43195</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-05-08 16:25:20 +0000</bug_when>
    <thetext>The sstate relocation magic appears to be failing.  If I do a build with TMPDIR=foo and then set TMPDIR=bar, I get this as bitbake creates the sysroot from sstate:

NOTE: Executing RunQueue Tasks
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-mpfr-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-gmp-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-libmpc-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-qemux86-64-libgcc-initial.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-qemux86-64-eglibc-initial.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-gperf-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-kconfig-frontends-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-unifdef-native.populate_sysroot not found

Then whenever the compiler is executed:

configure:3132: checking whether the C compiler works
configure:3154: x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/data/poky-master/tmp/sysroots/qemux86-64  -O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  &gt;&amp;5
/data/poky-master/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.8.2/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

(those paths are in BAR)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43242</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-05-11 12:51:55 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bc19e915fbbb932f7ad7bb8a0b7fb3227f94562f should fix most of this. I suspect there are still WARNINGS but the failures should be resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43560</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-05-23 16:58:28 +0000</bug_when>
    <thetext>If I switch TMPDIR and bitbake -C configure glib-2.0 I get these warnings:

WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-util-macros-native.populate_sysroot not found
WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-xproto-native.populate_sysroot not found
WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-xcb-proto-native.populate_sysroot not found

Much fewer than before so that&apos;s a vast improvement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43731</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-03 11:05:30 +0000</bug_when>
    <thetext>Lowering this to a medium as we now get harmless warnings rather than failures.

There is a patch out to address those warnings but it may prove too invasive. Moving the target to M2 to give us more time to explore the different options for fixing the remaining warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44717</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-25 16:18:16 +0000</bug_when>
    <thetext>Fixed in master finally with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=419daaaf0a2c773cadd67671fdb6234c598cd252</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>