On 21 Jan 2025, at 11:11, Dimitry Andric <d...@freebsd.org> wrote:
> 
> On 21 Jan 2025, at 10:52, Andrea Venturoli <m...@netfence.it> wrote:
>> 
>> On 1/21/25 09:27, Dimitry Andric wrote:
>> 
>>> Every time this happens, something in the ports build is mixing up llvm 
>>> versions, while attempting to do LTO. That won't work.
>>> In this case it looks like rust is built against llvm 19, while the linker 
>>> is lld 18. Hence switching to lld 19 fixes it.
>> 
>> Thought so, though I don't know why.
>> I did not choose with LLVM to use for Rust: I guess 19 is the default now?
> 
> If you are running 14.2-RELEASE your base system compiler and linker are llvm 
> 18, but for some reason rust (or electron) pulls in llvm 19. Maybe it is the 
> embedded copy of llvm in rust, I don't know.

I just checked, the rust 1.83.0 port has an embedded copy of llvm 19.1.1. So 
anything port that wants to do link time optimization against rust object 
files, will have to use lld 19 to link.

-Dimitry


Reply via email to