Skip to content

Commit dac3497

Browse files
oharboeclaude
andcommitted
bazel: bump bison to 3.8.2.bcr.7 for hermetic-llvm compatibility
bison's vendored gnulib headers deliberately shadow libc headers; under toolchains that inject libc headers as leading -isystem entries (hermetic-llvm, #10812) bison@3.8.2.bcr.5 fails to compile (O_BINARY, BCR #7642 class). 3.8.2.bcr.7 (BCR #9338) fixes most of it; the small remainder is patched in #10812 pending a proposed 3.8.2.bcr.8. 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 f1738bd commit dac3497

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

MODULE.bazel

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ bazel_dep(name = "rules_python", version = "1.8.5")
3434
bazel_dep(name = "rules_shell", version = "0.6.1")
3535
bazel_dep(name = "swig", version = "4.3.0.bcr.2")
3636

37+
# bison is transitive (rules_bison -> bison). Its vendored gnulib headers
38+
# deliberately shadow libc headers; under toolchains that inject libc
39+
# headers as leading -isystem entries (hermetic-llvm, #10812) the shadowing
40+
# breaks and bison@3.8.2.bcr.5 fails to compile (O_BINARY, BCR #7642).
41+
# 3.8.2.bcr.7 fixes most of it (a small remainder is patched in #10812
42+
# pending a proposed 3.8.2.bcr.8).
43+
single_version_override(
44+
module_name = "bison",
45+
version = "3.8.2.bcr.7",
46+
)
47+
3748
BOOST_VERSION = "1.89.0.bcr.2"
3849

3950
bazel_dep(name = "boost.algorithm", version = BOOST_VERSION)

MODULE.bazel.lock

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

0 commit comments

Comments
 (0)