Closed DavidKorczynski closed 1 year ago
tcmalloc depends on an old version of com_google_protobuf
, which in turn depends on a very old version of bazel_skylib
(1.0.2) that isn't compatible with Bazel 6.0.0 (the hint is the line /src/tcmalloc/tcmalloc/internal/BUILD:478:13: While resolving toolchains for target //tcmalloc/internal:numa_fuzz_raw_: invalid registered toolchain '@bazel_skylib//toolchains/unittest:cmd_toolchain'
). This can be worked around by adding these lines somewhere close to the top of WORKSPACE
:
http_archive(
name = "bazel_skylib",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
)
A more sustainable fix would be to have tcmalloc update the dependencies it specifies in WORKSPACE
, in particular that on protobuf, but the rules_fuzzing dependency is also quite outdated.
Thanks a ton @fmeum -- when I looked further at the other projects using rules_fuzzing
indeed it came out they were not failing. Closing this as the issue is not in rules_fuzzing
.
Expected Behavior
OSS-Fuzz builds running without issues. This issue only occurs for tcmalloc on oss-fuzz and no the other projects that use rules_fuzzing.
Actual Behavior
Building tcmalloc with bazel 6.0.0 on OSS-Fuzz fails (https://oss-fuzz-build-logs.storage.googleapis.com/log-16698571-28fb-4b75-97bb-5839f2c15b62.txt):
Steps to Reproduce the Problem
git clone https://github.com/google/oss-fuzz
python3 infra/helper.py build_fuzzers tcmalloc
Specifications