powerpc64-unknown-linux-gnu-g++ -o jsanalyze.o -c -fvisibility=hidden -DIMPL_MFBT -DEXPORT_JS_API -DNO_NSPR_10_SUPPORT -DUSE_ZLIB -I./../../mfbt/double-conversion -I. -I. -I./dist/include -I/usr/include/nspr -I. -I./assembler -I./yarr -fPIC -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align -Wno-long-long -O2 -pipe -mcpu=970 -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe -DNDEBUG -DTRIMMED -g -O3 -freorder-blocks -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsanalyze.o.pp /var/tmp/portage/dev-lang/spidermonkey-17.0.0-r3/work/mozjs17.0.0/js/src/jsanalyze.cpp jsapi.cpp In file included from /var/tmp/portage/dev-lang/spidermonkey-17.0.0-r3/work/mozjs17.0.0/js/src/jsapi.h:23:0, from /var/tmp/portage/dev-lang/spidermonkey-17.0.0-r3/work/mozjs17.0.0/js/src/jscntxt.h:17, from /var/tmp/portage/dev-lang/spidermonkey-17.0.0-r3/work/mozjs17.0.0/js/src/jsalloc.cpp:9: /var/tmp/portage/dev-lang/spidermonkey-17.0.0-r3/work/mozjs17.0.0/js/src/jsval.h:307:13: error: 'jsuword' does not name a type jsuword word; Reproducible: Always Steps to Reproduce: 1. emerge consolekit polkit 2. ebuilds pull in spidermonkey-17 3. fails to compile spidermonkey-17
Created attachment 373824 [details] emerge --info
Created attachment 373826 [details] build.log
*** Bug 507704 has been marked as a duplicate of this bug. ***
The duplicated one suggest a possible fix: http://pkgs.fedoraproject.org/cgit/mozjs17.git/tree/js17-jsval.patch
yeah I know. So https://bugzilla.mozilla.org/show_bug.cgi?id=618485 seems to be the reference for this. The patch that added the jsuword word was first landed to support 64bit big endian, and it seems now it has been removed to support 64bit big endian. I'm ok with removing that line in general, but I would really like someone to thoroughly runtime-test it before it hits the tree...
Created attachment 375084 [details] patched spidermonkey ebuild Here's an ebuild that sed's out the offending line during src_prepare -- please test. I don't know if src_test is going to be effective or not but it's worth a shot; USE="-minimal" will provide a "js" binary shell that you can interactively feed javascript code into, as a worst-case runtime test...
@axs/mozilla the patch works here. You can commit it.
Updated ebuild in tree, will close in 12 hours after mirrors have had time to populate.