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

Make C compilation hermetic in bazel toolchain

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Build

    Description

      Currently we are passing in "-nostdinc++", but not "-nostdinc". This causes C headers to be included from the system outside of the bazel toolchain itself, which is not ideal for remote execution or for reproducible builds.

      Pass in "-nostdinc" and update the bazel toolchain to contain the currently missing header files necessary for c compilation. The issue I originally ran into while trying to support this was that we were missing inttypes.h. It's unclear which headers we need to add to fully support this.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: