On musl profile gjs, which is a part of gnome-light meta package, fails to emerge due to not passing "SpiderMonkey sanity check". SpiderMonkey itself builds fine. I tried to find if there exists a SpiderMonkey in ::musl (maybe with some patches) but couldn't find any. I'm willing to work on this bug, but I'm new and I'm confused whether the bug is with gjs or SpiderMonkey. There was similar bug report before (bug #821694) but was closed due to insufficient info. Reproducible: Always Steps to Reproduce: 1. emerge dev-libs/gjs on musl profile and musl overlay enabled. Actual Results: Failed to emerge dev-libs/gjs-1.70.1 Expected Results: Successfully emerge dev-libs/gjs
Can you attach the full build.log, emerge --info, and the meson-log?
Created attachment 768928 [details] emerge --info
Created attachment 768930 [details] meson build log for gjs
Created attachment 768932 [details] meson-log
Sam, sorry. I made the previous log (not the full one) obsolete. Do I need to reattact that log?
(In reply to Sam James from comment #1) > Can you attach the full build.log, emerge --info, and the meson-log? Done
(In reply to listout from comment #5) > Sam, sorry. I made the previous log (not the full one) obsolete. Do I need > to reattact that log? No need :) This is what happened when it tried to build a small test program against SM: """ Program stderr: libsandbox: Can't resolve mmap: Symbol not found: mmap Redirecting call to abort() to mozalloc_abort """
This will need more debugging than I can do on mobile. For now, hints: 1. Is spidermonkey built with jemalloc for you? (I'm guessing no?) 2. Does it work without sandbox? (FEATURES="-sandbox -usersandbox", I'm guessing no, this is a workaround not a fix anyway but it'll be interesting)
(In reply to Sam James from comment #8) > This will need more debugging than I can do on mobile. For now, hints: > 1. Is spidermonkey built with jemalloc for you? (I'm guessing no?) > 2. Does it work without sandbox? (FEATURES="-sandbox -usersandbox", I'm > guessing no, this is a workaround not a fix anyway but it'll be interesting) I'll try experimenting with these. Thanks for tips. You're correct spidermonkey is not build with jemalloc for me, I'll try the second tip and see what happens.
I did a little bit of research about the spidermonkey and gjs packages, especially from other distrinutions using musl. Apline seems to provdide some patches for musl and silencing sandbox violation, I'm not sure if they apply to Gentoo. Link to the patches: https://git.alpinelinux.org/aports/tree/community/mozjs78?h=master
(In reply to listout from comment #10) > I did a little bit of research about the spidermonkey and gjs packages, > especially from other distrinutions using musl. Apline seems to provdide > some patches for musl and silencing sandbox violation, I'm not sure if they > apply to Gentoo. > > Link to the patches: > > https://git.alpinelinux.org/aports/tree/community/mozjs78?h=master Especially this one: https://git.alpinelinux.org/aports/tree/community/mozjs78/0001-silence-sandbox-violations.patch
Sam, can you please close this issue. The issues does not exists with newer versions
(In reply to listout from comment #12) > Sam, can you please close this issue. The issues does not exists with newer > versions sure!