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

Make C compilation hermetic in bazel toolchain

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Build

      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.

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

              Created:
              Updated: