<?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>7230</bug_id>
          
          <creation_ts>2015-01-22 04:43:24 +0000</creation_ts>
          <short_desc>Certain MIPS64 multilib configurations fail to compile</short_desc>
          <delta_ts>2015-04-28 18:37:02 +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>deployment</component>
          <version>1.7</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <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>48168</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-01-22 04:43:24 +0000</bug_when>
    <thetext>configure with:

MACHINE = &quot;qemumips64&quot;
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib64&quot;
DEFAULTTUNE = &quot;mips64-n32&quot;
DEFAULTTUNE_virtclass-multilib-lib64 = &quot;mips64&quot;
IMAGE_INSTALL_append = &quot;libstdc++ lib64-libstdc++ lib64-glibc&quot;

bitbake -c populate_sdk core-image-minimal

A failure will be generated by the gcc-cross-canadian-mips64n32 package.  It won&apos;t be able to package up the files, and further the SDK will fail being unable to find the SDK cross compiler.

The issue is apparently due to a recent change with the definition of TRANSLATED_TARGET_ARCH on MIPS, and the order in which the system expands and updates variables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48169</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-01-22 04:44:37 +0000</bug_when>
    <thetext>RP suggests that the arch-mips.inc change be changed from an _append to a simple definition, such that:

--- a/meta/conf/machine/include/mips/arch-mips.inc
+++ b/meta/conf/machine/include/mips/arch-mips.inc
@@ -101,4 +101,6 @@ BASE_LIB_tune-mips64el-nf = &quot;lib64&quot;
 MIPSPKGSFX_VARIANT_tune-mips64el-nf = &quot;${TUNE_ARCH}&quot;
 PACKAGE_EXTRA_ARCHS_tune-mips64el-nf = &quot;mips64el-nf&quot;
 
-TRANSLATED_TARGET_ARCH_append = &quot;${ABIEXTENSION}&quot;
+# On mips we need to redefine this to include the ABIEXTENSION
+# we can avoid the python bit as there are no _ or - to translate
+TRANSLATED_TARGET_ARCH = &quot;${TARGET_ARCH}${ABIEXTENSION}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48170</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-01-22 05:01:32 +0000</bug_when>
    <thetext>The suggested fix, causes various compilation errors.  It appears the cross-compiler is configured incorrectly in some way.  I&apos;ve not yet been able to investigate the cause of the failures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50574</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-04-28 18:37:02 +0000</bug_when>
    <thetext>Fixed, oe-core commit: 4b3a2b703b20583bd107f00a297d972e9bfb514a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>