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

clang with --gcov option should fail better

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Dev Platform 2020-08-24

      When using the build invocation:

      python3.8 buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --gcov
      

      The build will fail with this error:

      Checking if C compiler is clang 7.0 (or Apple XCode 10.2) or newer...no
      Checking if C++ compiler is clang 7.0 (or Apple XCode 10.2) or newer...no
      ERROR: Refusing to build with compiler that does not meet requirements
      See /home/ubuntu/mongo/build/scons/config.log for details
      

      The build could check if the gcov option is being used with clang, and report that clang and --gcov is not currently supported, and alternatively use --gcov with gcc instead.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: