<?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>1583</bug_id>
          
          <creation_ts>2011-10-03 15:28:54 +0000</creation_ts>
          <short_desc>enabling multilib will invalidate sscache</short_desc>
          <delta_ts>2011-11-24 14:18:39 +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>Meta-yocto</product>
          <component>meta-yocto</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>Patches out for review</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthew McClintock">msm-oss</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>msm-oss</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>16636</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-03 15:28:54 +0000</bug_when>
    <thetext>Not sure of the entire scope of this problem currently, but it seems that enabling multilib is causing sscache to be invalidated even for -native packages which seems extreme. I suspect this would effect a lot of host packages as well.


$ bitbake-diffsigs
../sstate-cache/sstate-autoconf-native-x86_64-linux-2.68-r2-x86_64-2-*siginfo
[mattsm@right build_p5020ds_release (master *$)]$ bitbake-diffsigs
../sstate-cache/sstate-autoconf-native-x86_64-linux-2.68-r2-x86_64-2-*siginfo
[snip]
basehash changed from bab02dfa833aca4810b0fae8c4ab48f9 to
e156f3fb86236bfc0262e6287bd73784
List of dependencies for variable baselib changed from
set([&apos;BASELIB&apos;]) to set([&apos;DEFAULTTUNE&apos;])
Dependency on variable BASELIB was added
Dependency on Variable DEFAULTTUNE was removed
Variable baselib value changed from ${BASELIB} to
${@d.getVar(&apos;BASE_LIB_tune-&apos; + (d.getVar(&apos;DEFAULTTUNE&apos;, True) or
&apos;INVALID&apos;), True) or &apos;lib&apos;}
Hash for dependent task
virtual:native:/local/home/mattsm/git/poky/meta/recipes-devtools/autoconf/autoconf_2.68.bb.do_install
changed from e74616029727b6e61b00273425128f1d to
478e7900a2310f2669708e6909883865

Back tracking this appears to be a multilib issue since I have that
enabled on one of the -native packages:

../meta/conf/bitbake.conf:baselib = &quot;${BASELIB}&quot;
../meta/conf/multilib.conf:baselib = &quot;${@d.getVar(&apos;BASE_LIB_tune-&apos; +
(d.getVar(&apos;DEFAULTTUNE&apos;, True) or &apos;INVALID&apos;), True) or &apos;lib&apos;}&quot;

Which causes the other differences....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16778</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-10-07 05:31:23 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d7babed94f56ceb2f9218e6e5d28b9f8d8d04afa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16789</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-07 12:36:02 +0000</bug_when>
    <thetext>This issue is still present for the actual target is should we keep this bug to track that issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16790</commentid>
    <comment_count>3</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-07 12:37:17 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This issue is still present for the actual target is should we keep this bug to
&gt; track that issue?

By actual target I mean the non-native sstate-cache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16791</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-10-07 15:36:17 +0000</bug_when>
    <thetext>Are the sstate files built with the same build configuration or are they actually different?

I&apos;d be interested on the output of diffsigs in that case to understand what differences we&apos;re dealing with and whether they are truly different or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16809</commentid>
    <comment_count>5</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-09 11:38:11 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Are the sstate files built with the same build configuration or are they
&gt; actually different?
&gt; 
&gt; I&apos;d be interested on the output of diffsigs in that case to understand what
&gt; differences we&apos;re dealing with and whether they are truly different or not.

This is what I am doing:

1) Configure machine (p5020ds) in this case for multilib build
2) run &apos;bitbake zlib&apos;
3) Go comment out the multilib includes in my local.conf
4) Rerun &apos;bitbake zlib&apos;
5) bitbake-diffsig pastded below.

I understand this is trickier than the -native stuff, but it would still be nice for the same cache to work depending if multilib is not used - esp. the non-multilib cache that is created even when multilib is enabled and able to build stuff (hope that makes sense).

[mattsm@right build_p5020ds_release (edison $)]$ bitbake-diffsigs `ls ../sstate-cache/*zlib*sysroot*.siginfo | grep -v native`
Task dependencies changed from [&apos;ABIEXTENSION&apos;, &apos;AR&apos;, &apos;AS&apos;, &apos;ASNEEDED&apos;, &apos;BUILD_AR&apos;, &apos;BUILD_ARCH&apos;, &apos;BUILD_AS&apos;, &apos;BUILD_AS_ARCH&apos;, &apos;BUILD_CC&apos;, &apos;BUILD_CCLD&apos;, &apos;BUILD_CC_ARCH&apos;, &apos;BUILD_CFLAGS&apos;, &apos;BUILD_CPP&apos;, &apos;BUILD_CPPFLAGS&apos;, &apos;BUILD_CXX&apos;, &apos;BUILD_CXXFLAGS&apos;, &apos;BUILD_F77&apos;, &apos;BUILD_LD&apos;, &apos;BUILD_LDFLAGS&apos;, &apos;BUILD_LD_ARCH&apos;, &apos;BUILD_NM&apos;, &apos;BUILD_OPTIMIZATION&apos;, &apos;BUILD_OS&apos;, &apos;BUILD_PREFIX&apos;, &apos;BUILD_RANLIB&apos;, &apos;BUILD_STRIP&apos;, &apos;BUILD_SYS&apos;, &apos;BUILD_VENDOR&apos;, &apos;CC&apos;, &apos;CCACHE&apos;, &apos;CCACHE_DIR&apos;, &apos;CCLD&apos;, &apos;CFLAGS&apos;, &apos;CONFIG_SITE&apos;, &apos;CPP&apos;, &apos;CPPFLAGS&apos;, &apos;CXX&apos;, &apos;CXXFLAGS&apos;, &apos;D&apos;, &apos;DEBUG_BUILD&apos;, &apos;DEFAULTTUNE&apos;, &apos;EXTENDPE&apos;, &apos;F77&apos;, &apos;HOST_ARCH&apos;, &apos;HOST_AS_ARCH&apos;, &apos;HOST_CC_ARCH&apos;, &apos;HOST_LD_ARCH&apos;, &apos;HOST_OS&apos;, &apos;HOST_PREFIX&apos;, &apos;HOST_SYS&apos;, &apos;HOST_VENDOR&apos;, &apos;LC_ALL&apos;, &apos;LD&apos;, &apos;LDFLAGS&apos;, &apos;LIBCEXTENSION&apos;, &apos;MAKE&apos;, &apos;MULTIMACH_TARGET_SYS&apos;, &apos;NM&apos;, &apos;OBJCOPY&apos;, &apos;OBJDUMP&apos;, &apos;OPIEDIR&apos;, &apos;PACKAGE_ARCH&apos;, &apos;PATCH_GET&apos;, &apos;PE&apos;, &apos;PF&apos;, &apos;PKG_CONFIG_DIR&apos;, &apos;PKG_CONFIG_DISABLE_UNINSTALLED&apos;, &apos;PKG_CONFIG_LIBDIR&apos;, &apos;PKG_CONFIG_PATH&apos;, &apos;PKG_CONFIG_SYSROOT_DIR&apos;, &apos;PN&apos;, &apos;PPCPKGARCH&apos;, &apos;PPCPKGSFX_FPU&apos;, &apos;PR&apos;, &apos;PSEUDO_DISABLED&apos;, &apos;PV&apos;, &apos;QMAKE_MKSPEC_PATH&apos;, &apos;QPEDIR&apos;, &apos;QTDIR&apos;, &apos;RANLIB&apos;, &apos;SELECTED_OPTIMIZATION&apos;, &apos;SHELLCMDS&apos;, &apos;SITECONFIG_SYSROOTCACHE&apos;, &apos;STAGING_DATADIR&apos;, &apos;STAGING_DATADIR_NATIVE&apos;, &apos;STAGING_DIR&apos;, &apos;STAGING_DIR_NATIVE&apos;, &apos;STAGING_IDLDIR&apos;, &apos;STAGING_INCDIR_NATIVE&apos;, &apos;STAGING_LIBDIR_NATIVE&apos;, &apos;STAGING_SIPDIR&apos;, &apos;STRIP&apos;, &apos;SYSROOT_DESTDIR&apos;, &apos;SYSROOT_PREPROCESS_FUNCS&apos;, &apos;TARGET_ARCH&apos;, &apos;TARGET_AS_ARCH&apos;, &apos;TARGET_CC_ARCH&apos;, &apos;TARGET_CFLAGS&apos;, &apos;TARGET_CPPFLAGS&apos;, &apos;TARGET_CXXFLAGS&apos;, &apos;TARGET_FPU&apos;, &apos;TARGET_LDFLAGS&apos;, &apos;TARGET_LD_ARCH&apos;, &apos;TARGET_LINK_HASH_STYLE&apos;, &apos;TARGET_OS&apos;, &apos;TARGET_PREFIX&apos;, &apos;TARGET_SYS&apos;, &apos;TARGET_VENDOR&apos;, &apos;TOOLCHAIN_OPTIONS&apos;, &apos;TUNE_ARCH&apos;, &apos;TUNE_ASARGS&apos;, &apos;TUNE_CCARGS&apos;, &apos;TUNE_LDARGS&apos;, &apos;TUNE_PKGARCH&apos;, &apos;WORKDIR&apos;, &apos;base_bindir&apos;, &apos;base_libdir&apos;, &apos;base_prefix&apos;, &apos;base_sbindir&apos;, &apos;baselib&apos;, &apos;bindir&apos;, &apos;datadir&apos;, &apos;datadir_native&apos;, &apos;docdir&apos;, &apos;exec_prefix&apos;, &apos;includedir&apos;, &apos;includedir_native&apos;, &apos;infodir&apos;, &apos;libdir&apos;, &apos;libdir_native&apos;, &apos;libexecdir&apos;, &apos;localstatedir&apos;, &apos;mandir&apos;, &apos;oldincludedir&apos;, &apos;palmqtdir&apos;, &apos;palmtopdir&apos;, &apos;prefix&apos;, &apos;prefix_native&apos;, &apos;sbindir&apos;, &apos;servicedir&apos;, &apos;sharedstatedir&apos;, &apos;siteinfo_data&apos;, &apos;siteinfo_get_files&apos;, &apos;sysconfdir&apos;, &apos;sysroot_stage_all&apos;, &apos;sysroot_stage_dir&apos;, &apos;sysroot_stage_dirs&apos;, &apos;sysroot_stage_libdir&apos;] to [&apos;ABIEXTENSION&apos;, &apos;AR&apos;, &apos;AS&apos;, &apos;ASNEEDED&apos;, &apos;BASELIB&apos;, &apos;BUILD_AR&apos;, &apos;BUILD_ARCH&apos;, &apos;BUILD_AS&apos;, &apos;BUILD_AS_ARCH&apos;, &apos;BUILD_CC&apos;, &apos;BUILD_CCLD&apos;, &apos;BUILD_CC_ARCH&apos;, &apos;BUILD_CFLAGS&apos;, &apos;BUILD_CPP&apos;, &apos;BUILD_CPPFLAGS&apos;, &apos;BUILD_CXX&apos;, &apos;BUILD_CXXFLAGS&apos;, &apos;BUILD_F77&apos;, &apos;BUILD_LD&apos;, &apos;BUILD_LDFLAGS&apos;, &apos;BUILD_LD_ARCH&apos;, &apos;BUILD_NM&apos;, &apos;BUILD_OPTIMIZATION&apos;, &apos;BUILD_OS&apos;, &apos;BUILD_PREFIX&apos;, &apos;BUILD_RANLIB&apos;, &apos;BUILD_STRIP&apos;, &apos;BUILD_SYS&apos;, &apos;BUILD_VENDOR&apos;, &apos;CC&apos;, &apos;CCACHE&apos;, &apos;CCACHE_DIR&apos;, &apos;CCLD&apos;, &apos;CFLAGS&apos;, &apos;CONFIG_SITE&apos;, &apos;CPP&apos;, &apos;CPPFLAGS&apos;, &apos;CXX&apos;, &apos;CXXFLAGS&apos;, &apos;D&apos;, &apos;DEBUG_BUILD&apos;, &apos;EXTENDPE&apos;, &apos;F77&apos;, &apos;HOST_ARCH&apos;, &apos;HOST_AS_ARCH&apos;, &apos;HOST_CC_ARCH&apos;, &apos;HOST_LD_ARCH&apos;, &apos;HOST_OS&apos;, &apos;HOST_PREFIX&apos;, &apos;HOST_SYS&apos;, &apos;HOST_VENDOR&apos;, &apos;LC_ALL&apos;, &apos;LD&apos;, &apos;LDFLAGS&apos;, &apos;LIBCEXTENSION&apos;, &apos;MAKE&apos;, &apos;MULTIMACH_TARGET_SYS&apos;, &apos;NM&apos;, &apos;OBJCOPY&apos;, &apos;OBJDUMP&apos;, &apos;OPIEDIR&apos;, &apos;PACKAGE_ARCH&apos;, &apos;PATCH_GET&apos;, &apos;PE&apos;, &apos;PF&apos;, &apos;PKG_CONFIG_DIR&apos;, &apos;PKG_CONFIG_DISABLE_UNINSTALLED&apos;, &apos;PKG_CONFIG_LIBDIR&apos;, &apos;PKG_CONFIG_PATH&apos;, &apos;PKG_CONFIG_SYSROOT_DIR&apos;, &apos;PN&apos;, &apos;PPCPKGARCH&apos;, &apos;PPCPKGSFX_FPU&apos;, &apos;PR&apos;, &apos;PSEUDO_DISABLED&apos;, &apos;PV&apos;, &apos;QMAKE_MKSPEC_PATH&apos;, &apos;QPEDIR&apos;, &apos;QTDIR&apos;, &apos;RANLIB&apos;, &apos;SELECTED_OPTIMIZATION&apos;, &apos;SHELLCMDS&apos;, &apos;SITECONFIG_SYSROOTCACHE&apos;, &apos;STAGING_DATADIR&apos;, &apos;STAGING_DATADIR_NATIVE&apos;, &apos;STAGING_DIR&apos;, &apos;STAGING_DIR_NATIVE&apos;, &apos;STAGING_IDLDIR&apos;, &apos;STAGING_INCDIR_NATIVE&apos;, &apos;STAGING_LIBDIR_NATIVE&apos;, &apos;STAGING_SIPDIR&apos;, &apos;STRIP&apos;, &apos;SYSROOT_DESTDIR&apos;, &apos;SYSROOT_PREPROCESS_FUNCS&apos;, &apos;TARGET_ARCH&apos;, &apos;TARGET_AS_ARCH&apos;, &apos;TARGET_CC_ARCH&apos;, &apos;TARGET_CFLAGS&apos;, &apos;TARGET_CPPFLAGS&apos;, &apos;TARGET_CXXFLAGS&apos;, &apos;TARGET_FPU&apos;, &apos;TARGET_LDFLAGS&apos;, &apos;TARGET_LD_ARCH&apos;, &apos;TARGET_LINK_HASH_STYLE&apos;, &apos;TARGET_OS&apos;, &apos;TARGET_PREFIX&apos;, &apos;TARGET_SYS&apos;, &apos;TARGET_VENDOR&apos;, &apos;TOOLCHAIN_OPTIONS&apos;, &apos;TUNE_ARCH&apos;, &apos;TUNE_ASARGS&apos;, &apos;TUNE_CCARGS&apos;, &apos;TUNE_LDARGS&apos;, &apos;TUNE_PKGARCH&apos;, &apos;WORKDIR&apos;, &apos;base_bindir&apos;, &apos;base_libdir&apos;, &apos;base_prefix&apos;, &apos;base_sbindir&apos;, &apos;baselib&apos;, &apos;bindir&apos;, &apos;datadir&apos;, &apos;datadir_native&apos;, &apos;docdir&apos;, &apos;exec_prefix&apos;, &apos;includedir&apos;, &apos;includedir_native&apos;, &apos;infodir&apos;, &apos;libdir&apos;, &apos;libdir_native&apos;, &apos;libexecdir&apos;, &apos;localstatedir&apos;, &apos;mandir&apos;, &apos;oldincludedir&apos;, &apos;palmqtdir&apos;, &apos;palmtopdir&apos;, &apos;prefix&apos;, &apos;prefix_native&apos;, &apos;sbindir&apos;, &apos;servicedir&apos;, &apos;sharedstatedir&apos;, &apos;siteinfo_data&apos;, &apos;siteinfo_get_files&apos;, &apos;sysconfdir&apos;, &apos;sysroot_stage_all&apos;, &apos;sysroot_stage_dir&apos;, &apos;sysroot_stage_dirs&apos;, &apos;sysroot_stage_libdir&apos;]
basehash changed from 7e3940139560af6b27cfb79c7e095e72 to 13b547a50c92b9fd37bc6495426beaac
List of dependencies for variable baselib changed from set([&apos;DEFAULTTUNE&apos;]) to set([&apos;BASELIB&apos;])
Dependency on variable DEFAULTTUNE was added
Dependency on Variable BASELIB was removed
Variable baselib value changed from ${@d.getVar(&apos;BASE_LIB_tune-&apos; + (d.getVar(&apos;DEFAULTTUNE&apos;, True) or &apos;INVALID&apos;), True) or &apos;lib&apos;} to ${BASELIB}
Hash for dependent task /local/home/mattsm/git/poky/meta/recipes-core/zlib/zlib_1.2.5.bb.do_install changed from 4babd86ca9f933e3e0b72c75cafcedbd to 0d4b92474f5cb4f65d5973e4ca3d685f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16975</commentid>
    <comment_count>6</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-25 09:31:52 +0000</bug_when>
    <thetext>I&apos;m reopening this so it&apos;s not lost... I still think this is an issue that could be made better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17387</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-24 14:18:39 +0000</bug_when>
    <thetext>Fixed in master in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b62a7559a31fa1241954746ed67af575d8bd6ca5 and http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6543f1371b7a414884765305edcf5649bf7e2d36</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>