So I tried rerunning the build with the --verbose-failures command (bazel build envoy --verbose_failures), got the following command that seems to have failed(see below). I am still a little perplexed by what may have happened here.
(cd /private/var/tmp/_bazel_aryac/7315896c03f4109e8989b1b90087ad03/sandbox/darwin-sandbox/913/execroot/envoy && \
exec env - \
PATH=/usr/local/bin:/opt/local/bin:/usr/bin:/bin \
/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; #!/bin/bash
set -e
# Works on Linux-{x86_64,s390x,aarch64,ppc64le} and macOS-{x86_64,arm64}.
ARCH="$(uname -m)"
SYSTEM="$(uname -s)"
PLATFORM="${SYSTEM}-${ARCH}"
case ${PLATFORM} in
Linux-x86_64|Linux-s390x|Linux-aarch64|Linux-ppc64le)
;;
Darwin-x86_64|Darwin-arm64)
;;
MSYS_NT-*-x86_64)
echo "WARNING: wee8 is currently untested on ${PLATFORM}." >&2
;;
*)
echo "ERROR: wee8 is currently not supported on ${PLATFORM}." >&2
exit 1
esac
# Bazel magic.
ROOT=$(dirname external/com_googlesource_chromium_v8/BUILD.gn)
pushd $ROOT
# Clean after previous build.
rm -rf out/wee8
# Export compiler configuration.
export CXXFLAGS="${CXXFLAGS-} -Wno-sign-compare -Wno-deprecated-copy -Wno-unknown-warning-option -Wno-range-loop-analysis -Wno-shorten-64-to-32"
if [[ ( ${SYSTEM} == "Darwin" && ${CXX-} == "" ) || ${CXX-} == *clang* ]]; then
export CC=${CC:-clang}
export CXX=${CXX:-clang++}
else
export CC=${CC:-gcc}
export CXX=${CXX:-g++}
fi
if ${CXX} --version 2>&1 | grep -q clang ; then
export IS_CLANG=true
export CXXFLAGS="${CXXFLAGS} -Wno-implicit-int-float-conversion -Wno-builtin-assume-aligned-alignment -Wno-final-dtor-non-final-class -Wno-invalid-constexpr"
else
export IS_CLANG=false
fi
export AR=${AR:-ar}
export NM=${NM:-nm}
# Hook sanitizers.
if [[ ${ENVOY_ASAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_asan=true"
WEE8_BUILD_ARGS+=" is_lsan=true"
fi
if [[ ${ENVOY_UBSAN_VPTR-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_ubsan=true"
WEE8_BUILD_ARGS+=" is_ubsan_vptr=true"
fi
if [[ ${ENVOY_MSAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_msan=true"
WEE8_BUILD_ARGS+=" msan_track_origins=2"
export LDFLAGS="${LDFLAGS} -L/opt/libcxx_msan/lib -Wl,-rpath,/opt/libcxx_msan/lib"
fi
if [[ ${ENVOY_TSAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_tsan=true"
export LDFLAGS="${LDFLAGS} -L/opt/libcxx_tsan/lib -Wl,-rpath,/opt/libcxx_tsan/lib"
fi
# Debug/release build.
if [[ fastbuild == "dbg" && ${ENVOY_UBSAN_VPTR-} != "1" && ${ENVOY_MSAN-} != "1" && ${ENVOY_TSAN-} != "1" ]]; then
WEE8_BUILD_ARGS+=" is_debug=true"
WEE8_BUILD_ARGS+=" v8_symbol_level=2"
WEE8_BUILD_ARGS+=" v8_optimized_debug=false"
else
WEE8_BUILD_ARGS+=" is_debug=false"
WEE8_BUILD_ARGS+=" v8_symbol_level=1"
WEE8_BUILD_ARGS+=" v8_enable_handle_zapping=false"
fi
# Clang or not Clang, that is the question.
WEE8_BUILD_ARGS+=" is_clang=$IS_CLANG"
# Hack to disable bleeding-edge compiler flags.
WEE8_BUILD_ARGS+=" use_xcode_clang=true"
# Use local toolchain.
WEE8_BUILD_ARGS+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
# Use local stdlibc++ / libc++.
WEE8_BUILD_ARGS+=" use_custom_libcxx=false"
# Use local sysroot.
WEE8_BUILD_ARGS+=" use_sysroot=false"
# Disable unused GLib2 dependency.
WEE8_BUILD_ARGS+=" use_glib=false"
# Expose debug symbols.
WEE8_BUILD_ARGS+=" v8_expose_symbols=true"
# Build monolithic library.
WEE8_BUILD_ARGS+=" is_component_build=false"
WEE8_BUILD_ARGS+=" v8_enable_i18n_support=false"
WEE8_BUILD_ARGS+=" v8_enable_gdbjit=false"
WEE8_BUILD_ARGS+=" v8_use_external_startup_data=false"
# Disable read-only heap, since it'\''s leaky and HEAPCHECK complains about it.
# TODO(PiotrSikora): remove when fixed upstream.
WEE8_BUILD_ARGS+=" v8_enable_shared_ro_heap=false"
# Set target architecture.
if [[ ${ARCH} == "x86_64" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"x64\""
elif [[ ${ARCH} == "aarch64" || ${ARCH} == "arm64" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"arm64\""
elif [[ ${ARCH} == "ppc64le" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"ppc64\""
elif [[ ${ARCH} == "s390x" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"s390x\""
fi
# Select gn tool for the current platform.
if [[ -f /etc/centos-release ]] && [[ $(cat /etc/centos-release) =~ "CentOS Linux release 7" ]] && [[ -x "$(command -v gn)" ]]; then
# Use system default on CentOS 7, as it has an old version of GLIBC which is otherwise incompatible with the prebuilt binary.
gn=$(command -v gn)
elif [[ ${PLATFORM} == "Darwin-x86_64" ]]; then
gn=buildtools/mac/gn
elif [[ ${PLATFORM} == "Darwin-arm64" ]]; then
gn=buildtools/mac-arm64/gn
elif [[ ${PLATFORM} == "Linux-x86_64" ]]; then
gn=buildtools/linux64/gn
elif [[ ${PLATFORM} == "Linux-aarch64" ]]; then
gn=buildtools/linux-arm64/gn
elif [[ ${PLATFORM} == MSYS_NT-*-x86_64 ]]; then
gn=buildtools/win/gn.exe
else
# Fallback to system default.
gn=$(command -v gn)
fi
# Select ninja tool for the current platform.
if [[ ${PLATFORM} == "Darwin-x86_64" ]]; then
ninja=third_party/depot_tools/ninja-mac
elif [[ ${PLATFORM} == "Linux-x86_64" ]]; then
ninja=third_party/depot_tools/ninja-linux64
elif [[ ${PLATFORM} == MSYS_NT-*-x86_64 ]]; then
ninja=third_party/depot_tools/ninja.exe
else
# Fallback to system default.
ninja=$(command -v ninja)
fi
# Build wee8.
"$gn" gen out/wee8 --args="$WEE8_BUILD_ARGS"
"$ninja" -C out/wee8 wee8
# Move compiled library to the expected destinations.
popd
mv $ROOT/out/wee8/obj/libwee8.a bazel-out/darwin-fastbuild/bin/external/com_googlesource_chromium_v8/libwee8.a
')
Execution platform: @local_config_platform//:host