Bug 12358 - mozjs_17.0.0.bb:do_compile failed with DEFAULTTUNE "mips"
Summary: mozjs_17.0.0.bb:do_compile failed with DEFAULTTUNE "mips"
Status: RESOLVED WONTFIX
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: 2.4
Hardware: x86 mips
: Medium+ normal
Target Milestone: 2.5 M1
Assignee: Jackie Huang
QA Contact:
URL:
Whiteboard:
: 12359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-16 05:16 UTC by Jackie Huang
Modified: 2017-11-17 03:08 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jackie Huang 2017-11-16 05:16:25 UTC
Build mozjs failed with:
MACHINE = "qemumips"
DEFAULTTUNE="mips"     # The default for qemumips is "mips32r2" 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 'struct JSC::JSObject'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:18: error: invalid use of incomplete type 'struct JSC::JSObject'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:37: error: invalid use of incomplete type 'struct JSC::js::Shape'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:39: error: invalid use of incomplete type 'struct JSC::js::Shape'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5215:47: error: 'UndefinedValue' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5228:58: error: cannot convert 'JSC::JSContext*' to 'JSContext*' for argument '1' to 'JSBool JS_ReportErr
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5234:73: error: cannot convert 'JSC::JSContext*' to 'JSContext*' for argument '1' to 'void JS_ReportError
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5519:5: error: 'Sprinter' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5520:5: error: 'sprinter' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5522:10: error: 'StackIter' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5522:28: error: 'i' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:5534:1: error: expected '}' at end of input
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:627:35: error: 'BoxNonStrictThis' 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 'struct JSC::JSContext'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:665:68: error: 'ObjectValue' was not declared in this scope
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:627:35: error: 'BoxNonStrictThis' 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 'struct JSC::JSContext'
/path_to_mozjs_dir/mozjs17.0.0/js/src/jsobj.cpp:665:68: error: 'ObjectValue' was not declared in this scope
Comment 1 Richard Purdie 2017-11-16 16:13:29 UTC
*** Bug 12359 has been marked as a duplicate of this bug. ***
Comment 2 Randy MacLeod 2017-11-16 16:16:55 UTC
Jackie, as you stated, mips32r2 is the default tune so unless we can fix this build, we'll just close the bug as 'no fix planned'.
It would be good to do an oe-core world build -k to record how many packakges do not compile. If it's only one, then we could exclude it from the world builds for _mips.
Comment 3 Jackie Huang 2017-11-17 03:08:25 UTC
(In reply to comment #2)
> Jackie, as you stated, mips32r2 is the default tune so unless we can fix
> this build, we'll just close the bug as 'no fix planned'.
> It would be good to do an oe-core world build -k to record how many
> packakges do not compile. If it's only one, then we could exclude it from
> the world builds for _mips.

mozjs is the only one that failed, so close it as "won't fix"