Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835575 - dev-lang/spidermonkey-91.7.0 - .../work/firefox-91.7.0/js/src/wasm/WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame
Summary: dev-lang/spidermonkey-91.7.0 - .../work/firefox-91.7.0/js/src/wasm/WasmFrame....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://hg.mozilla.org/mozilla-centra...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 835382
  Show dependency tree
 
Reported: 2022-03-18 11:28 UTC by ernsteiswuerfel
Modified: 2022-03-21 14:45 UTC (History)
1 user (show)

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


Attachments
build.log (spidermonkey-91.7.0:20220318-083316.log,481.07 KB, text/plain)
2022-03-18 11:28 UTC, ernsteiswuerfel
Details
emerge --info (file_835575.txt,6.12 KB, text/plain)
2022-03-18 11:29 UTC, ernsteiswuerfel
Details
backported from upstream patch (silence_assert-ppc32.patch,617 bytes, patch)
2022-03-19 12:00 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-03-18 11:28:34 UTC
Created attachment 767303 [details]
build.log

[...]
/usr/bin/powerpc-unknown-linux-gnu-g++ -o Unified_cpp_js_src_wasm1.o -c  -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/dist/system_wrappers -include /var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/config/gcc_hidden.h -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/js/src/wasm -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/js/src/wasm -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/js/src -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/js/src -I/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/dist/include -I/usr/include/nspr -DMOZILLA_CLIENT -include /var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wno-error=unused-but-set-variable -Wformat -Wformat-security -Wformat-overflow=2 -Wno-psabi -fno-sized-deallocation -fno-aligned-new -O2 -mcpu=7450 -pipe -fno-tree-loop-vectorize -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -fno-strict-aliasing -Wno-shadow -Wno-attributes  -MD -MP -MF .deps/Unified_cpp_js_src_wasm1.o.pp   Unified_cpp_js_src_wasm1.cpp
In file included from Unified_cpp_js_src_wasm1.cpp:29:
/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/js/src/wasm/WasmFrame.cpp: In static member function 'static void js::wasm::DebugFrame::alignmentStaticAsserts()':
/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/js/src/wasm/WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame
   57 |   static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0,
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[3]: *** [/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/config/rules.mk:678: Unified_cpp_js_src_wasm1.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build/js/src/wasm'
make[2]: *** [/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/config/recurse.mk:72: js/src/wasm/target-objects] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build'
make[1]: *** [/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/config/recurse.mk:34: compile] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/build'
make: *** [/var/tmp/portage/dev-lang/spidermonkey-91.7.0/work/firefox-91.7.0/config/rules.mk:357: default] Error 2
 * ERROR: dev-lang/spidermonkey-91.7.0::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2022-03-18 11:29:11 UTC
Created attachment 767304 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 19:44:15 UTC
Looks like we might need to force off.. JIT? Hm, but you have it off.

https://lists.openembedded.org/g/openembedded-devel/message/93761
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 19:46:31 UTC
(In reply to Sam James from comment #2)
> Looks like we might need to force off.. JIT? Hm, but you have it off.
> 
> https://lists.openembedded.org/g/openembedded-devel/message/93761

Hm, better. Upstream fix (not backported?): https://hg.mozilla.org/mozilla-central/rev/9408195567a218070fe8ed98de0779c00a24ffc8
Comment 4 ernsteiswuerfel archtester 2022-03-19 12:00:21 UTC
Created attachment 767377 [details, diff]
backported from upstream patch

Builds ok now with this patch.
Comment 5 Larry the Git Cow gentoo-dev 2022-03-21 08:15:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6104f616e4a6182c209b1d2e1d4792e4d78537a1

commit 6104f616e4a6182c209b1d2e1d4792e4d78537a1
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-03-21 08:14:31 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-03-21 08:15:55 +0000

    dev-lang/spidermonkey: keyword 91.7.0 for ~ppc
    
     - include a new patch, details in #835575.
    
    Closes: https://bugs.gentoo.org/835575
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-lang/spidermonkey/Manifest                   | 2 +-
 dev-lang/spidermonkey/spidermonkey-91.7.0.ebuild | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Comment 6 Joonas Niilola gentoo-dev 2022-03-21 08:17:29 UTC
Thanks a lot! Thought about including the patch straight up for firefox, but I doubt there's any demand to run firefox on ppc.
Comment 7 ernsteiswuerfel archtester 2022-03-21 14:45:48 UTC
(In reply to Joonas Niilola from comment #6)
> Thought about including the patch straight up for firefox, but
> I doubt there's any demand to run firefox on ppc.
At least for me there is demand to run Firefox on my PowerBook G4. ;) But don't bother, atm it won't work due to other obstacles being nodejs not buildable on ppc and also there is bug #829602.