Skip to content

Commit ba12395

Browse files
oharboeclaude
authored andcommitted
bazel: bump m4 to 1.4.21.bcr.4 for hermetic-llvm compatibility
m4's vendored gnulib headers deliberately shadow libc headers; under toolchains that inject libc headers as leading -isystem entries (hermetic-llvm, #10812) m4@1.4.21 fails to compile (O_SEARCH, BCR #7642 class). 1.4.21.bcr.4 packages the gnulib wrappers so they keep precedence. Behavior-neutral on the current toolchain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 3f096e4 commit ba12395

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ single_version_override(
100100

101101
bazel_dep(name = "git", version = "2.54.0")
102102
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
103+
104+
# m4 is transitive (rules_bison/rules_flex -> m4). Its vendored gnulib
105+
# headers deliberately shadow libc headers; under toolchains that inject
106+
# libc headers as leading -isystem entries (hermetic-llvm, #10812) the
107+
# shadowing breaks and m4@1.4.21 fails to compile (O_SEARCH, BCR #7642).
108+
# 1.4.21.bcr.4 carries the upstream fix.
109+
single_version_override(
110+
module_name = "m4",
111+
version = "1.4.21.bcr.4",
112+
)
113+
103114
bazel_dep(name = "openmp", version = "21.1.5.bcr.2")
104115
bazel_dep(name = "or-tools", version = "9.15")
105116
bazel_dep(name = "spdlog", version = "1.15.1")

MODULE.bazel.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)