Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80883

Depend on standard compiler headers by default in bazel

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    Description

      Currently trying to include most standard headers will result in a bazel error like:

      this rule is missing dependency declarations for the following files included by 'src/mongo/platform/visibility_test_libcommon.cpp': '.../external/mongo_toolchain/stow/gcc-v4/lib/gcc/aarch64-mongodb-linux/11.3.0/include/stdint.h' '.../external/mongo_toolchain/stow/gcc-v4/lib/gcc/aarch64-mongodb-linux/11.3.0/include-fixed/pthread.h' 

      This is because bazel currently doesn't know that these are common dependencies to all cc complication targets.

      Update "cxx_builtin_include_directories" in the toolchain to pull in standard libraries by default.

      Attachments

        Activity

          People

            zack.winter@mongodb.com Zack Winter
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: