Created attachment 713313 [details] emerge --info Possible context of error: error: could not compile `packed_simd` Bug find on ARM64 but may be present on other arches as well
Created attachment 713316 [details] emerge --log
Got this error with rustc 1.54.0-dev (9a700d294 2021-05-26) (gentoo): error[E0557]: feature has been removed --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/lib.rs:205:5 | 205 | const_fn, | ^^^^^^^^ feature has been removed | = note: split into finer-grained feature gates error: attributes starting with `rustc` are reserved for use by the `rustc` compiler --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/codegen/llvm.rs:43:7 | 43 | #[rustc_args_required_const(2)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: attributes starting with `rustc` are reserved for use by the `rustc` compiler --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/codegen/llvm.rs:37:7 | 37 | #[rustc_args_required_const(2)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: attributes starting with `rustc` are reserved for use by the `rustc` compiler --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/codegen/llvm.rs:31:7 | 31 | #[rustc_args_required_const(2)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: attributes starting with `rustc` are reserved for use by the `rustc` compiler --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/codegen/llvm.rs:25:7 | 25 | #[rustc_args_required_const(2)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: attributes starting with `rustc` are reserved for use by the `rustc` compiler --> /tmp/portage/dev-lang/spidermonkey-78.10.1/work/firefox-78.10.1/third_party/rust/packed_simd/src/codegen/llvm.rs:19:7 | 19 | #[rustc_args_required_const(2)]
Compiles with ruts-1.51
(In reply to Oleg from comment #3) > Compiles with ruts-1.51 I use rust-bin because compiling it with a PinePhone would probably kill it forever
ping: News about that bug?
I cannot help you. Not reproducible for amd64 or x86. packed_simd upstream (Mozilla) hasn't been touched since bug 756334. Try to build just https://github.com/hsivonen/packed_simd/archive/0917fe780032a6bbb23d71be545f9c1834128d75.tar.gz which should fail (=that's the version spidermonkey uses). Now try to build latest https://github.com/rust-lang/packed_simd to see if a newer version works for you.
(In reply to Thomas Deutschmann from comment #6) > I cannot help you. Not reproducible for amd64 or x86. > packed_simd upstream (Mozilla) hasn't been touched since bug 756334. > > Try to build just > https://github.com/hsivonen/packed_simd/archive/ > 0917fe780032a6bbb23d71be545f9c1834128d75.tar.gz which should fail (=that's > the version spidermonkey uses). > > Now try to build latest https://github.com/rust-lang/packed_simd to see if a > newer version works for you. Seems the problem is only on arm/64 arches. I will try with PinePhone tomorrow and report back
I can try to reproduce on my arm64, but I need emerge -pv spidermonkey from you, and possibly emerge --info spidermonkey which is your active version of gcc?
(In reply to tt_1 from comment #8) > I can try to reproduce on my arm64, but I need emerge -pv spidermonkey from > you, and possibly emerge --info spidermonkey > > which is your active version of gcc? GCC 11.1... sorry but actually my OS is broken so i can't retry it
this happens because rustc_args_required_const was removed in rust-1.54, upstream pullrequst is here: https://github.com/rust-lang/rust/pull/85110 mozilla bug with request to update rust_simd package: https://bugzilla.mozilla.org/show_bug.cgi?id=1719674 firefox + firefox-esr also affected
backported patch for firefox-esr and spidermonkey:78 https://bugzilla.mozilla.org/show_bug.cgi?id=1719674#c11 seems its not going to be backported, so maybe the mozilla team wants to add this to the patchset when rust-1.54.0 is released and added to the tree. same for not yet released firefox-90.0: https://bugzilla.mozilla.org/show_bug.cgi?id=1719674#c13
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b0d441066a018f166e97f3d8b23f624d390a59e commit 6b0d441066a018f166e97f3d8b23f624d390a59e Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-07-12 23:28:39 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-07-12 23:32:23 +0000 dev-lang/spidermonkey: bump to v78.12.0 Closes: https://bugs.gentoo.org/793920 Package-Manager: Portage-3.0.21, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-lang/spidermonkey/Manifest | 2 + dev-lang/spidermonkey/spidermonkey-78.12.0.ebuild | 454 ++++++++++++++++++++++ 2 files changed, 456 insertions(+)
@mozilla team: the fix was *not* backported to new esr-91 branch, if you're not happy about it please comment on the upstream bug to maybe convince them.