Files
mongo/bazel/toolchains/cc/mongo_errors.bzl
Andrew Bradshaw ba1a66200f SERVER-99213 Add flag to enable building dwp files (#35182)
GitOrigin-RevId: b0d5799813f8e65c868743edff8ea4a201de8d98
2025-04-28 17:56:13 +00:00

78 lines
2.1 KiB
Python

"""This file contains a list of error strings that is related to
all functionality under toolchains/cc.
"""
THREAD_SANITIZER_ERROR_MESSAGE = """
Error:
Build failed due to either -
- Cannot use libunwind with TSAN, please add
--use_libunwind=False to your compile flags or
- TSAN is only supported with dynamic link models, please add
--linkstatic=False to your compile flags.
"""
# TODO(SERVER-85340): Fix this error message when libc++ is re-added to the
# toolchain.
LIBCXX_ERROR_MESSAGE = """
Error:
libc++ is not currently supported in the mongo toolchain. Follow this ticket
to see when support is being added SERVER-85340 We currently only support
passing the libcxx config on macos for compatibility reasons.
libc++ requires these configuration: --compiler_type=clang
"""
#TODO SERVER-84714 add message about using the toolchain version of C++ libs
GLIBCXX_DEBUG_ERROR_MESSAGE = """
Error:
glibcxx_debug requires these configurations:
--dbg=True
--use_libcxx=False
"""
REQUIRED_SETTINGS_LIBUNWIND_ERROR_MESSAGE = """
Error:
libunwind=on is only supported on linux"
"""
SYSTEM_ALLOCATOR_SANITIZER_ERROR_MESSAGE = """
Error:
fuzzer, address, and memory sanitizers require these configurations:
--allocator=system
"""
REQUIRED_SETTINGS_SANITIZER_ERROR_MESSAGE = """
Error:
any sanitizer requires these configurations:
--compiler_type=clang
--opt=on [OR] --opt=debug
"""
DETECT_ODR_VIOLATIONS_ERROR_MESSAGE = """
Error:
detect_odr_violations requires these configurations:
--opt=off
--linker=gold
"""
BAZELISK_CHECK_ERROR_MESSAGE = """
Error:
This repository must be built through bazelisk, please uninstall your current bazel
installation and then run:
python buildscripts/install_bazel.py
"""
DWP_ERROR_MESSAGE = """
Error:
to create dwp files you must use one of these configurations:
--compiler_type=clang
--fission=yes
--create_dwp=True
[OR]
--compiler_type=gcc
--fission=yes
--dwarf_version=4
--create_dwp=True
"""