SM fails to build with rust 1.56

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Locked
trevoz
Posts: 71
Joined: December 12th, 2005, 9:40 pm

SM fails to build with rust 1.56

Post by trevoz »

FreeBSD 12.2-STABLE #0 r370401: Wed Aug 25 21:45:05 AEST 2021 root@shadow:/usr/obj/usr/src/amd64.amd64/sys/MACMINI amd64

Code: Select all

18:50.22 modules/libmar/src
18:51.00 error[E0557]: feature has been removed
18:51.01    --> /tmp/seamonkey-2.53.10/third_party/rust/packed_simd/src/lib.rs:203:5
18:51.01     |
18:51.01 203 |     const_generics,
18:51.01     |     ^^^^^^^^^^^^^^ feature has been removed
18:51.01     |
18:51.01     = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
and fixing the source for that then produces:

Code: Select all

 0:05.47 error: the listed checksum of `/tmp/seamonkey-2.53.10/third_party/rust/packed_simd/src/lib.rs` has changed:
 0:05.47 expected: f2e2d0867734a62e1f468e5d3e15fbd01a15f8aafd5d65a8a3cb7ab95ffd61c4
 0:05.47 actual:   3506e3e7c1c4f95ca305e64bfb202b10eef61c7458f9d0d9f388c8fbd513c013 
Ideas?
frg
Posts: 1361
Joined: December 15th, 2015, 1:20 pm

Re: SM fails to build with rust 1.56

Post by frg »

For 1.56 you need 1471096-1-63a1.patch and 1730397-4only-94a1.patch from wg9s.com/comm-253/patches/seamonkey…253-patches/mozilla-release/patches

1471096-1-63a1.patch will not apply clean and needs a mini rebase for toolkit\library\rust\shared\Cargo.toml

See (self signed certificate):

https://ircbot.comm-central.org:8080/se ... 113#c72733

FRG
trevoz
Posts: 71
Joined: December 12th, 2005, 9:40 pm

Re: SM fails to build with rust 1.56

Post by trevoz »

In the meantime, my impatience led me to deinstall rust 1.56, reinstall rust 1.48 and build SM without issue.

Patches I could have handled, but a git "mini rebase" is too otherworldly ;-)
frg
Posts: 1361
Joined: December 15th, 2015, 1:20 pm

Re: SM fails to build with rust 1.56

Post by frg »

You could always install more than one rust version using rustup.

rustup default 1.55.0-x86_64-unknown-linux-gnu

rustup default 1.55.0-x86_64-pc-windows-msvc

The rebase is only 3 lines whoch need to be added manually to the toml file and can be copied directly from the resulting .rej file after you apply the patch. Nothing fancy.

FRG
Locked