<?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>12359</bug_id>
          
          <creation_ts>2017-11-16 05:19:18 +0000</creation_ts>
          <short_desc>mozjs:do_compile failed with DEFAULTTUNE = &quot;mips&quot;</short_desc>
          <delta_ts>2017-11-16 16:13:29 +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>configuration</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12358</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jackie Huang">jackie.huang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          
          
          
          <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>78234</commentid>
    <comment_count>0</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2017-11-16 05:19:18 +0000</bug_when>
    <thetext>Build mozjs failed with:
MACHINE = &quot;qemumips&quot;
DEFAULTTUNE=&quot;mips&quot;     # The default for qemumips is &quot;mips32r2&quot; with which builds fine.

Add meta-oe layer in bblayers.conf:
meta-openembedded/meta-oe


/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:16: error: invalid use of incomplete type &apos;struct JSC::JSObject&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:18: error: invalid use of incomplete type &apos;struct JSC::JSObject&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:37: error: invalid use of incomplete type &apos;struct JSC::js::Shape&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:39: error: invalid use of incomplete type &apos;struct JSC::js::Shape&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:47: error: &apos;UndefinedValue&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5228:58: error: cannot convert &apos;JSC::JSContext*&apos; to &apos;JSContext*&apos; for argument &apos;1&apos; to &apos;JSBool JS_ReportErr
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5234:73: error: cannot convert &apos;JSC::JSContext*&apos; to &apos;JSContext*&apos; for argument &apos;1&apos; to &apos;void JS_ReportError
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5519:5: error: &apos;Sprinter&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5520:5: error: &apos;sprinter&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5522:10: error: &apos;StackIter&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5522:28: error: &apos;i&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5534:1: error: expected &apos;}&apos; at end of input
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:627:35: error: &apos;BoxNonStrictThis&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:645:30: error: invalid use of incomplete type &apos;struct JSC::JSContext&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:665:68: error: &apos;ObjectValue&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:627:35: error: &apos;BoxNonStrictThis&apos; was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:645:30: error: invalid use of incomplete type &apos;struct JSC::JSContext&apos;
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:665:68: error: &apos;ObjectValue&apos; was not declared in this scope</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78253</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-11-16 16:13:29 +0000</bug_when>
    <thetext>Looks like a duplicate of the previous bug.

*** This bug has been marked as a duplicate of bug 12358 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>