[Bug 286368] lang/rust: Build of shells/nushell on armv7 fails with llvm conflict due to "-C linker-plugin-lto"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 26 Apr 2025 20:01:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286368

            Bug ID: 286368
           Summary: lang/rust: Build of shells/nushell on armv7 fails with
                    llvm conflict due to "-C linker-plugin-lto"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: rust@FreeBSD.org
                CC: rust@FreeBSD.org

Rust is using LLVM 19, while Clang is on LLVM 18.

cross-language LTO is enabled with "-C linker-plugin-lto".

This causes the failure.

Log:
https://pkg-status.freebsd.org/ampere3/data/141releng-armv7-default/413ee6de2f09/logs/nushell-0.102.0.log

Rust upstream issue with the explanation:
https://github.com/rust-lang/rust/issues/140343#issuecomment-2832541575

-- 
You are receiving this mail because:
You are the assignee for the bug.