Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2025 11:11:38 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        "tagattie@freebsd.org" <tagattie@FreeBSD.org>, ports@freebsd.org
Subject:   Re: Cannot build devel/electron32
Message-ID:  <D71EDC64-076B-4924-BE1A-4A3B3BF69E3A@FreeBSD.org>
In-Reply-To: <23404a49-3020-4123-8f52-6b447a89a06c@netfence.it>
References:  <036b979a-6e73-4e52-a687-1624d2e1a549@netfence.it> <20CEC5EA-5F7C-476F-8145-E20F4F43821D@FreeBSD.org> <23404a49-3020-4123-8f52-6b447a89a06c@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21 Jan 2025, at 10:52, Andrea Venturoli <ml@netfence.it> wrote:
>=20
> On 1/21/25 09:27, Dimitry Andric wrote:
>=20
>> 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.
>=20
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D71EDC64-076B-4924-BE1A-4A3B3BF69E3A>