Bug 278246 - devel/bazel 6.2.0 build failure with recent clang
Summary: devel/bazel 6.2.0 build failure with recent clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 03:18 UTC by Konstantin Belousov
Modified: 2025-04-03 03:15 UTC (History)
2 users (show)

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


Attachments
poudriere build log (27.17 KB, text/plain)
2024-04-08 03:18 UTC, Konstantin Belousov
no flags Details
Patch to fix build on recent FreeBSD (562 bytes, patch)
2025-01-24 22:51 UTC, j.david.lists
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Belousov freebsd_committer freebsd_triage 2024-04-08 03:18:39 UTC
Created attachment 249821 [details]
poudriere build log

I get the following error trying to build bazel in 13.3 jail:
external/upb/upb/mini_table.c:634:14: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions]
Might be, it needs something similar to https://reviews.freebsd.org/D42729
as well.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2024-07-21 18:36:18 UTC
(In reply to Konstantin Belousov from comment #0)

The patch from https://reviews.freebsd.org/D42729 does not fix the build.
Comment 2 j.david.lists 2025-01-24 22:51:36 UTC
Created attachment 256974 [details]
Patch to fix build on recent FreeBSD

The attached patch suppresses the relevant warning, allowing the build to complete successfully.
Comment 3 Konstantin Belousov freebsd_committer freebsd_triage 2025-01-25 05:17:10 UTC
Worked for me as well, thank you for the patch.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2025-04-03 03:14:35 UTC
Patch committed.
Thanks for the patch!
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-04-03 03:15:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=984f80b6e226c37980c68d6a7a12d3be08dee2dc

commit 984f80b6e226c37980c68d6a7a12d3be08dee2dc
Author:     j.david.lists@gmail.com <j.david.lists@gmail.com>
AuthorDate: 2025-04-03 03:12:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-04-03 03:14:43 +0000

    devel/bazel: Fix build

    PR:             278246
    Reported by:    kib
    Approved by:    vishwin (maintainer's timeout; 68 days)

 .../patch-tools_cpp_bsd__cc__toolchain__config.bzl (new)     | 12 ++++++++++++
 1 file changed, 12 insertions(+)