Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2023 19:01:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 269664] www/firefox: can't build Firefox 110.0.3 on FreeBSD 13.2 STABLE
Message-ID:  <bug-269664-21738-Jt3C0BXix0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269664-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269664-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269664

--- Comment #5 from Oleg Sidorkin <osidorkin@gmail.com> ---
(In reply to Soe Tun from comment #4)

Does firefox builds fine with LTO disabled?

Long story is:
AFAIK, when LTO is enabled LLVM adds extra segment with bytecode to object
files. This segments are collected by linker and then linker compiles the
binary by looking at all bytecode.

Rust compiler is built on top of LLVM that is part of rust package. Rust
develpers update LLVM quite often. Current rust in ports is probably built =
on
top of LLVM 15.

In your case firefox was built with LLVM 13 (that's due to various wasm
libraries dependencies).

So Rust-compiled files have bytecode segments built by LLVM15, but linker is
from LLVM13. And linker doesn't understand some specific instructions that =
were
added after LLVM13 release.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269664-21738-Jt3C0BXix0>