Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2025 04:59:05 +0900
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>, Andrea Venturoli <ml@netfence.it>
Cc:        ports@freebsd.org
Subject:   Re: Cannot build devel/electron32
Message-ID:  <b845de5b-e787-4a27-a4d6-572ddd96045b@FreeBSD.org>
In-Reply-To: <6770C572-8449-4834-B3A5-690D5172F0A7@FreeBSD.org>
References:  <036b979a-6e73-4e52-a687-1624d2e1a549@netfence.it> <20CEC5EA-5F7C-476F-8145-E20F4F43821D@FreeBSD.org> <23404a49-3020-4123-8f52-6b447a89a06c@netfence.it> <D71EDC64-076B-4924-BE1A-4A3B3BF69E3A@FreeBSD.org> <6770C572-8449-4834-B3A5-690D5172F0A7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2025/01/21 19:33, Dimitry Andric wrote:
> On 21 Jan 2025, at 11:11, Dimitry Andric <dim@FreeBSD.org> wrote:
>>
>> On 21 Jan 2025, at 10:52, Andrea Venturoli <ml@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.

Thanks for reporting and analysis.
I will update the port to use LLVM 19 to fix build.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b845de5b-e787-4a27-a4d6-572ddd96045b>