Bug 283456 - www/chromium: fails to build when LTO is enabled
Summary: www/chromium: fails to build when LTO is enabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-chromium (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-21 01:00 UTC by iron.udjin
Modified: 2024-12-30 18:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (chromium)


Attachments
chromium-131.0.6778.204.log.zst (548.17 KB, application/zstd)
2024-12-21 01:00 UTC, iron.udjin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2024-12-21 01:00:37 UTC
Created attachment 255999 [details]
chromium-131.0.6778.204.log.zst

OS: 14.1-STABLE
Host OSVERSION: 1402501
Jail OSVERSION: 1401502

chromium-131.0.6778.204

When the LTO flag is set - it fails to build with the error:

ld.lld: error: obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.d4a704653401c5cd-cgu.0.rcgu.o): Invalid attribute group entry (Producer: 'LLVM19.1.1-rust-1.83.0-stable' Reader: 'LLVM 18.1.8')

In the attached file you can find the Poudriere build log.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-30 17:42:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e60d707adb48a59a9938a0553aeb8fda39411e8

commit 1e60d707adb48a59a9938a0553aeb8fda39411e8
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2024-12-30 17:41:21 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2024-12-30 17:41:46 +0000

    www/chromium: switch over to llvm19 to fix LTO builds

    PR:     283456

 www/chromium/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-12-30 17:42:26 UTC
A commit in branch 2024Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=51196d7910027cb601e87a81f99bbaf16d825e07

commit 51196d7910027cb601e87a81f99bbaf16d825e07
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2024-12-30 17:41:21 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2024-12-30 17:42:06 +0000

    www/chromium: switch over to llvm19 to fix LTO builds

    PR:     283456
    (cherry picked from commit 1e60d707adb48a59a9938a0553aeb8fda39411e8)

 www/chromium/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)