<?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>12358</bug_id>
          
          <creation_ts>2017-11-16 05:16:25 +0000</creation_ts>
          <short_desc>mozjs_17.0.0.bb:do_compile failed with DEFAULTTUNE &quot;mips&quot;</short_desc>
          <delta_ts>2017-11-17 03:08:25 +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>Other YP Layers</product>
          <component>layers</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jackie Huang">jackie.huang</reporter>
          <assigned_to name="Jackie Huang">jackie.huang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>78233</commentid>
    <comment_count>0</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2017-11-16 05:16:25 +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>78254</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>*** Bug 12359 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78255</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2017-11-16 16:16:55 +0000</bug_when>
    <thetext>Jackie, as you stated, mips32r2 is the default tune so unless we can fix this build, we&apos;ll just close the bug as &apos;no fix planned&apos;.
It would be good to do an oe-core world build -k to record how many packakges do not compile. If it&apos;s only one, then we could exclude it from the world builds for _mips.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78269</commentid>
    <comment_count>3</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2017-11-17 03:08:25 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Jackie, as you stated, mips32r2 is the default tune so unless we can fix
&gt; this build, we&apos;ll just close the bug as &apos;no fix planned&apos;.
&gt; It would be good to do an oe-core world build -k to record how many
&gt; packakges do not compile. If it&apos;s only one, then we could exclude it from
&gt; the world builds for _mips.

mozjs is the only one that failed, so close it as &quot;won&apos;t fix&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>