Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497900 - =dev-lang/spidermonkey-24.2.0 - build fix for stack growing up
Summary: =dev-lang/spidermonkey-24.2.0 - build fix for stack growing up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: HPPA Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-12 15:22 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-05-06 17:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
spidermonkey-24.2.0-stack-grows-up.patch (spidermonkey-24.2.0-stack-grows-up.patch,562 bytes, patch)
2014-01-12 15:22 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-01-12 15:22:34 UTC
Created attachment 367724 [details, diff]
spidermonkey-24.2.0-stack-grows-up.patch

Patch fixes these errors:

/dev/shm/portage/dev-lang/spidermonkey-24.2.0/work/mozjs-24.2.0/js/src/gc/RootMarking.cpp:323:20: error: invalid conversion from 'uintptr_t {aka unsigned int}' to 'uintptr_t* {aka unsigned int*}' [-fpermissive]

/dev/shm/portage/dev-lang/spidermonkey-24.2.0/work/mozjs-24.2.0/js/src/jsapi.cpp:868:5: error: 'nativeStackLimit' was not declared in this scope
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2014-05-05 01:02:56 UTC
Tests fail with this patch though, yes?  Same/similar failures as to what you see with sm17 (bug 502124) ?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 14:04:30 UTC
Two tests fail, but I was fixing a compile error here.

From a 24.2.0 build log:

TEST-UNEXPECTED-FAIL | testOOM | Failed to initialize.
TEST-UNEXPECTED-FAIL | testGCOutOfMemory | Failed to initialize.
[...]
2 unexpected failures.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2014-05-05 14:08:06 UTC
Thanks!  I know about the purpose of the patch, i just wanted to check if the failing tests relate to the stack-growth direction in any way, to see if the patch should be expanded to fix them somehow, too.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 15:08:55 UTC
testOOM fails predictably(!) in:

    JS_SetGCParameter(rt, JSGC_MAX_BYTES, (uint32_t)-1);

because you can't reliably do (uint32_t)-1 and just hope the trick works on every platform.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 15:09:36 UTC
(In reply to Jeroen Roovers from comment #4)
> testOOM fails predictably(!) in:
> 
>     JS_SetGCParameter(rt, JSGC_MAX_BYTES, (uint32_t)-1);
> 
> because you can't reliably do (uint32_t)-1 and just hope the trick works on
> every platform.

Nothing to do with stack direction; this is due to endianness.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2014-05-05 20:41:17 UTC
+  05 May 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  +files/spidermonkey-24-upward-growing-stack.patch,
+  spidermonkey-24.2.0-r1.ebuild:
+  fix compilation on hppa (bug 497900)


might as well keep this open until the tests are sorted, though
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 22:04:36 UTC
(In reply to Ian Stakenvicius from comment #6)
> +  05 May 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
> +  +files/spidermonkey-24-upward-growing-stack.patch,
> +  spidermonkey-24.2.0-r1.ebuild:
> +  fix compilation on hppa (bug 497900)
> 
> 
> might as well keep this open until the tests are sorted, though

Again, you're confusing a compile failure with an unrelated test failure.
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2014-05-06 17:37:49 UTC
I am, but figured I might as well overload this bug than have a new one for the tests.

Of note, though, tests on hake pass clean with the patch committed.