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. > So should it be for Electron too? Either that, or turn off LTO. -Dimitry