mongo/bazel/toolchains/cc/mongo_errors.bzl
Andrew Bradshaw a6ef2a112d SERVER-114362 Remove --detect_odr_violation (#44372)
GitOrigin-RevId: 360145a457ee91a3ccd823bbf3ac600b888a4352
2025-11-24 23:42:45 +00:00

71 lines
1.9 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
"""
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
"""