Summary: | dev-lang/spidermonkey-91.13.0:91 - error: expected one of ! or ::, found keyword mod | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=870088 https://bugs.gentoo.org/show_bug.cgi?id=871972 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-lang:spidermonkey-91.13.0:20220914-222053.log.bz2 emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 |
Description
Toralf Förster
![]() Created attachment 805258 [details]
emerge-info.txt
Created attachment 805261 [details]
dev-lang:spidermonkey-91.13.0:20220914-222053.log.bz2
Created attachment 805264 [details]
emerge-history.txt
Created attachment 805267 [details]
environment
Created attachment 805270 [details]
etc.portage.tar.bz2
Created attachment 805273 [details]
logs.tar.bz2
Created attachment 805276 [details]
temp.tar.bz2
FWIW I heard somewhere 91.13 might be the last in that series but no idea if that's right. I can confirm this as well. I failed to build spidermonkey 91.13.0 and it gave similar logs... After some digging I found that it may be caused by rust 1.63.0 ref: https://github.com/rust-lang/packed_simd/issues/343 Yeah upstream has no plans for fixing this on 91, https://bugzilla.mozilla.org/show_bug.cgi?id=1783784#c7 I wonder if anything in gentoo tree depends on :91 or if it can be cleaned soon... or we have to find a patch somewhere. For now, this problem can be fixed by commenting-out the "--enable-rust-simd" part in the ebuild. As far as I know, this does not even have much impact on performance. This also works for spidermonkey-102.2 although I hear that this will not be a problem when ${mozilla}-102.3 is released. I have done some investigation into this. On the current testing branch ~amd64, both spidermonkey 91 and 102 are not compiling due to this error. The problem appears to be that spidermonkey tries to pull in Rust crate 'packed_simd_2' version 3.7.0, which is not compatible with Rust 1.63. It looks like 'packed_simd_2' version 3.8.0 may have fixed this according to what I am reading on other forums, so I tried to change the dependency version in the spidermonkey sources myself but Rust wouldn't honor the change due to it changing the checksome of the Cargo.toml file. I really didn't feel like figuring out Rust's patch system just to get my system up and running so I settled for ... ... the easy solution: Mask Rust 1.63. (In reply to cyrillic from comment #11) > For now, this problem can be fixed by commenting-out the > "--enable-rust-simd" part in the ebuild. As far as I know, this does not > even have much impact on performance. I actually think this is the best solution for now... until something else breaks. Since SM-91 will not get any kind of releases from upstream. > > This also works for spidermonkey-102.2 although I hear that this will not be > a problem when ${mozilla}-102.3 is released. Yeah this particular error is fixed in 102.3. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0538461291fdff27fe805d20eea2975ab3a69caf commit 0538461291fdff27fe805d20eea2975ab3a69caf Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-09-17 06:46:56 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-09-17 06:50:03 +0000 dev-lang/spidermonkey: fix compiling 91.13.0 with rust-1.63 - disabling rust-simd from 91.13.0 - while it may have some performance issues, it doesn't look like upstream is going to patch 91 series anymore. Closes: https://bugs.gentoo.org/870193 Closes: https://github.com/gentoo/gentoo/pull/27085 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-lang/spidermonkey/spidermonkey-91.13.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b8050e2049e643f1a5b7c03cabf2dca104261d commit c3b8050e2049e643f1a5b7c03cabf2dca104261d Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-09-17 06:48:34 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-09-17 06:50:04 +0000 dev-lang/spidermonkey: fix compiling 102.2.0 with rust-1.63 - by disabling rust-simd, just a temporary fix for now, 102.3.0 release will fix it properly. Bug: https://bugs.gentoo.org/870193 Closes: https://github.com/gentoo/gentoo/pull/27085 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-lang/spidermonkey/spidermonkey-102.2.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) FWIW dev-lang/spidermonkey-78.15.0 seems to have the same problem |