Skip to content

Conversation

adisuissa
Copy link
Contributor

A recent upgrade of Envoy' abseil library (envoyproxy/envoy#36317) enabled layering_check (imported commit) when building abseil (as part of Envoy).

Here's an example of the failure during the build:

�[1A�[K�[31m�[1mERROR: �[0m/root/.cache/bazel/_bazel_root/4e9824db8e7d11820cfa25090ed4ed10/external/com_google_absl/absl/types/BUILD.bazel:178:11: Compiling absl/types/bad_variant_access.cc failed: undeclared inclusion(s) in rule '@com_google_absl//absl/types:bad_variant_access':
Step #3 - "compile-honggfuzz-address-x86_64": this rule is missing dependency declarations for the following files included by 'absl/types/bad_variant_access.cc':
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-74a21d80f561/bin/external/com_google_absl/absl/base/core_headers.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-74a21d80f561/bin/external/com_google_absl/absl/base/atomic_hook.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-74a21d80f561/bin/external/com_google_absl/absl/base/errno_saver.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-74a21d80f561/bin/external/com_google_absl/absl/base/log_severity.cppmap'

Seems that this was encountered in the OSS-Fuzz abseil build and it was patched to disable layering check #11325:

# Disable `layering_check` feature.
# As per https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63223, it breaks
# the build. Someone could figure out exactly why it breaks the build, but just
# disabling it suffices because it doesn't actually matter for our purposes. ;)
export BAZEL_EXTRA_BUILD_FLAGS='--features=-layering_check'

This PR introduces the same change in Envoy's abseil build.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Copy link

adisuissa is either the primary contact or is in the CCs list of projects/envoy.
adisuissa has previously contributed to projects/envoy. The previous PR was #11980

Copy link
Contributor

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jonathanmetzman jonathanmetzman enabled auto-merge (squash) November 18, 2024 17:10
@jonathanmetzman jonathanmetzman merged commit 11e3a93 into google:master Nov 18, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants