FreeBSD 13.x - rust compile errors?

Discussion about Seamonkey builds
Post Reply
trevoz
Posts: 75
Joined: December 12th, 2005, 9:40 pm

FreeBSD 13.x - rust compile errors?

Post by trevoz »

Seamonkey 2.53.19
clang version 18.1.8
Target: x86_64-portbld-freebsd13.4
Thread model: posix
rust-1.81.0

Code: Select all

8:44.05 error[E0557]: feature has been removed
8:44.05    --> /tmp/seamonkey-2.53.19/third_party/rust/packed_simd/src/lib.rs:218:5
8:44.05     |
8:44.05 218 |     platform_intrinsics,
8:44.05     |     ^^^^^^^^^^^^^^^^^^^ feature has been removed
[...]
8:46.50 BUILDSTATUS BUILD_VERBOSE config/external/icu/common
8:47.21 error[E0703]: invalid ABI: found `platform-intrinsic`
8:47.21  --> /tmp/seamonkey-2.53.19/third_party/rust/packed_simd/src/codegen/llvm.rs:8:8
8:47.21   |
8:47.21 8 | extern "platform-intrinsic" {
8:47.21   |        ^^^^^^^^^^^^^^^^^^^^ invalid ABI
[...]
8:48.36 error[E0635]: unknown feature `stdsimd`
8:48.36    --> /tmp/seamonkey-2.53.19/third_party/rust/packed_simd/src/lib.rs:219:5
8:48.36     |
8:48.36 219 |     stdsimd,
8:48.36     |     ^^^^^^^
8:49.21 error[E0044]: foreign items may not have type parameters
8:49.21  --> /tmp/seamonkey-2.53.19/third_party/rust/packed_simd/src/codegen/llvm.rs:9:5
8:49.21   |
8:49.21 9 |     fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U;
8:49.21   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
8:49.21   |
8:49.21   = help: replace the type parameters with concrete types like `u32`
[Lots more of the same]
Do I need to find an older version of rust?
frg
Posts: 1380
Joined: December 15th, 2015, 1:20 pm

Re: FreeBSD 13.x - rust compile errors?

Post by frg »

Either use 1.73.0 or use this patch:
https://bugzilla.mozilla.org/show_bug.cgi?id=1896958

We can't put it in. Rust is crap:

- Rust 1.74 dropped support for macOS 10.11 which we still support.
- Rust 1.78 dropped support for Windows 7 and 8.1. It added a tier 3 compile target for these versions but this is currently more or less unsupported and untested. Server 2012 R2 is still supported with ESU patches for about 2 years and would be affected by this too.

frg
trevoz
Posts: 75
Joined: December 12th, 2005, 9:40 pm

Re: FreeBSD 13.x - rust compile errors?

Post by trevoz »

I managed to track down rust 1.77.0, deinstalled 1.81, waited an eternity for 1.77 to compile and ... SUCCESS.

I've saved the rust 1.77.0 tarball for the next time as it took me ages to track down the old FreeBSD port.

Thanks!
Post Reply