Closed
Bug 958940
Opened 12 years ago
Closed 11 years ago
SpiderMonkey (mozjs-24.2.0) build failure on Linux/PA-RISC
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: aaro.koskinen, Assigned: aaro.koskinen)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files)
584 bytes,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
442 bytes,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20131215 Firefox/24.0 Iceweasel/24.2.0 (Nightly/Aurora)
Build ID: 20131215160340
Steps to reproduce:
mozjs-24.2.0 compilation on Linux/PA-RISC with GCC 4.8.2 and GLIBC 2.18.
Actual results:
Two files fail to build:
/work/parisc/mozjs-24.2.0/js/src/gc/RootMarking.cpp: In function 'void MarkConservativeStackRoots(JSTracer*, bool)':
/work/parisc/mozjs-24.2.0/js/src/gc/RootMarking.cpp:323:14: error: invalid conversion from 'uintptr_t {aka unsigned int}' to 'uintptr_t* {aka unsigned int*}' [-fpermissive]
stackMin = rt->nativeStackBase;
^
make[4]: *** [RootMarking.o] Error 1
/work/parisc/mozjs-24.2.0/js/src/jsapi.cpp: In constructor 'JSRuntime::JSRuntime(JSUseHelperThreads)':
/work/parisc/mozjs-24.2.0/js/src/jsapi.cpp:868:5: error: 'nativeStackLimit' was not declared in this scope
nativeStackLimit = UINTPTR_MAX;
^
make[4]: *** [jsapi.o] Error 1
Expected results:
Build should be successful.
Assignee | ||
Updated•12 years ago
|
Hardware: x86 → HP
Assignee | ||
Comment 1•12 years ago
|
||
Workaround patch #1.
Assignee | ||
Comment 2•12 years ago
|
||
Workaround patch #2.
Comment 3•11 years ago
|
||
Comment on attachment 8358933 [details] [diff] [review]
0001-mozjs-parisc-workaround.patch
nbp: You were reviewing the MIPS JIT patches. Are you an appropriate reviewer for these patches to fix the PA-RISC build?
Attachment #8358933 -
Flags: review?(nicolas.b.pierron)
Updated•11 years ago
|
Attachment #8358934 -
Flags: review?(nicolas.b.pierron)
Updated•11 years ago
|
Attachment #8358934 -
Flags: review?(nicolas.b.pierron) → review+
Updated•11 years ago
|
Attachment #8358933 -
Flags: review?(nicolas.b.pierron) → review+
Comment 4•11 years ago
|
||
Thanks for these contributions :)
I guess you are not enabling any JIT yet, because they are not thought at all with the idea of stack growing upward.
Terrence might have more ideas if there is any expectation from the GC point of view. I would not expect that non-conservative GC would be dependent on the stack order, but I do not know.
Are you maintaining Firefox for a Linux distribution which works on PA-RISC?
Flags: needinfo?(terrence)
Comment 5•11 years ago
|
||
I landed the two patches as one commit:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb0b6f2f3ca9
Assignee: nobody → aaro.koskinen
Status: UNCONFIRMED → ASSIGNED
status-firefox30:
--- → wontfix
status-firefox31:
--- → fixed
status-firefox-esr24:
--- → wontfix
Ever confirmed: true
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Code for conservative scanning of an upward growing stack has existed since I've been hacking on the GC. As far as I know it is /totally untested/ and I am *highly sceptical* that it will work at all. The only reason I didn't rip it out years ago was so that it could serve as a placeholder for whoever has to rewrite it.
Please test thoroughly. In particular you would be well served using the JS_GC_ZEAL environment variable. Use |JS_GC_ZEAL=help ./path/to/js| to get a list of options.
Flags: needinfo?(terrence)
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•