GNOME Bugzilla – Bug 711519
jsunit tests fail on powerpc
Last modified: 2014-09-29 22:32:32 UTC
gjs 1.38.1 with mozjs17 fails to pass any of the jsunit tests on powerpc. The following log is the only info I have (I don't have access to a powerpc machine myself). laney@partch> GJS_USE_UNINSTALLED_FILES=1 ./jsunit -verbose --debug-log ~/gjs-1.38.1 {*LOG(binary):{/home/laney/gjs-1.38.1/.libs/lt-jsunit}:{R02Se50cf2d09c4e571f341b39bd0a1e9067}:LOG*} {*LOG(start):{/js/0010basic}:LOG*} /js/0010basic: JS NATIVE: Registered native JS module 'byteArray' JS NATIVE: Registered native JS module '_gi' JS NATIVE: Registered native JS module 'gi' JS NATIVE: Registered native JS module 'cairoNative' JS NATIVE: Registered native JS module 'system' JS NATIVE: Registered native JS module 'console' JS CTX: Changing JavaScript version to 1.8 from default JS IMPORT: Initialized class GjsFileImporter prototype 0xf5f0a220 JS IMPORT: Defining parent (nil) of 0xf5f0a240 'imports' is mod 0 JS CTX: Script evaluation failed JS CTX: Script evaluation succeeded {*LOG(error):{Gjs-FATAL-ERROR: JS_EvaluateScript() failed}:LOG*} (/home/laney/gjs-1.38.1/.libs/lt-jsunit:9016): Gjs-ERROR **: JS_EvaluateScript() failed
Hmmm...going to need more info than this. Does the core "js" shell from mozjs17 work for you on ppc?
Laney, can you check ^ that?
Ok, basic stuff seems to work: laney@partch> js17 js> print ("Hello world") Hello world js> 1330+7 1337 js> function foo(x) { return x * 5; } js> foo(10) 50
How can I run gjs-console manually on one of the test files? I added some debugging print statements and tried: laney@partch> ./gjs-console -I /home/laney/gjs-1.38.1/modules test0010basic.js 0 JS_EvaluateScript() failed The "0" comes from one of those; relevant snippet: ,---- | print("0"); | const JSUnit = imports.jsUnit; | print("1"); `---- So something goes wrong at "imports". Is that a problem with something I've done?
If this is still an issue with 1.40.y, maybe try the patch from bug 729554.
(In reply to comment #5) > If this is still an issue with 1.40.y, maybe try the patch from bug 729554. Which are all (including fixup) in 1.42.
can confirm that all tests pass on our powerpc builders with 1.42