Bug 283039 - games/veloren-weekly: fails to build with rust 1.83.0
Summary: games/veloren-weekly: fails to build with rust 1.83.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-29 15:08 UTC by Mikael Urankar
Modified: 2024-12-01 01:01 UTC (History)
0 users

See Also:
jbeich: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2024-11-29 15:08:06 UTC
error:
error[E0076]: SIMD vector's only field must be an array
    --> /wrkdirs/usr/ports/games/veloren-weekly/work/veloren-v0.16.0-737-gdc22338d0/cargo-crates/vek-0.17.1/src/vec.rs:3212:13
     |
3212 |             pub struct Vec2<T> { pub x:T, pub y:T }
     |             ^^^^^^^^^^^^^^^^^^   ------- not an array
...
3712 |     vec_impl_all_vecs!{simd #[repr(simd)] c #[repr(C)] repr_simd}
     |     ------------------------------------------------------------- in this macro invocation


https://github.com/yoanlcq/vek/issues/96

No fix sadly
Comment 1 Jan Beich freebsd_committer freebsd_triage 2024-11-30 13:45:15 UTC
Acording to a discussion on Discord ~2 weeks ago Veloren upstream considers removing repr_simd dependency but for now is stuck on old Nightly rust-toolchain. So, mark BROKEN, put vek issue as value and quote the error excerpt in the commit message.

Users can temporarily switch to /quarterly package until 2025Q1 is branched sometime after 2025-01-01. Alternatively, I should probably fork lang/rust into a pinned version for 1.82 series (maintained by me) until Veloren graduates from it (vek upstream fix seems to be far away).
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-12-01 01:00:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c3e06e3173c743aadf672eaa76f3a74f0eaee77c

commit c3e06e3173c743aadf672eaa76f3a74f0eaee77c
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-11-30 14:14:16 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-12-01 00:52:16 +0000

    lang/rust: fork 1.82 into a pinned port

    A temporary workaround for games/veloren-weekly.

    PR:             283039

 games/veloren-weekly/Makefile                      |   4 +
 lang/Makefile                                      |   1 +
 lang/rust-nightly/Makefile                         |   2 +-
 lang/rust/Makefile                                 |   2 +-
 lang/rust182/Makefile (new)                        | 290 ++++++++
 lang/rust182/distinfo (new)                        |  51 ++
 ...ustc__driver__impl_src_signal__handler.rs (new) |  28 +
 ...er_rustc__target_src_spec_base_freebsd.rs (new) |  11 +
 ...rc_spec_targets_i686__unknown__freebsd.rs (new) |  13 +
 ...r_rustc__target_src_abi_call_powerpc64.rs (new) |  11 +
 ...c_spec_targets_armv6__unknown__freebsd.rs (new) |  10 +
 ...c_spec_targets_armv7__unknown__freebsd.rs (new) |  10 +
 ...ch-library_backtrace_src_backtrace_mod.rs (new) |  10 +
 ...ootstrap_src_core_build__steps_install.rs (new) |  17 +
 ...ols_cargo_src_cargo_sources_git_source.rs (new) |  36 +
 lang/rust182/files/patch-vendor_cc.rs (new)        | 119 ++++
 lang/rust182/files/patch-vendor_libc-0.2.155 (new) | 745 +++++++++++++++++++++
 lang/rust182/files/patch-vendor_libc-0.2.157 (new) | 745 +++++++++++++++++++++
 lang/rust182/files/patch-vendor_libc-0.2.158 (new) | 745 +++++++++++++++++++++
 .../patch-vendor_openssl-src_src_lib.rs (new)      |  10 +
 ...t_src_spec_riscv64gc__unknown__freebsd.rs (new) |  21 +
 lang/rust182/pkg-descr (new)                       |  12 +
 22 files changed, 2891 insertions(+), 2 deletions(-)
Comment 3 Jan Beich freebsd_committer freebsd_triage 2024-12-01 01:01:18 UTC
Thanks for reporting.