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

clang/xcode 5.0 doesn't understand some of our options (--dd)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • ALL

    Description

      For example:

      $ scons --mute -j 8 --dd --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --cache
      scons: Reading SConscript files ...
      scons version: 2.3.0
      python version: 2 7 5 'final' 0
      Checking whether the C++ compiler works(cached) yes
      Checking whether the C compiler works(cached) yes
      Checking if C++ compiler "/usr/bin/clang++" is GCC... (cached) no
      Checking if C++ compiler "/usr/bin/clang++" is clang... (cached) yes
      Checking if C compiler "/usr/bin/clang" is clang... (cached) yes
      Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes
      Checking if C compiler supports -Wno-unused-function... (cached) yes
      Checking if C compiler supports -Wno-unused-private-field... (cached) yes
      Checking if C compiler supports -Wno-mismatched-tags... (cached) yes
      Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
      Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) yes
      Checking if C compiler supports -Wno-unused-const-variable... (cached) yes
      Checking if C compiler supports -mmacosx-version-min=10.6... (cached) yes
      Checking for C header file unistd.h... (cached) yes
      Checking whether clock_gettime is declared... (cached) no
      Checking for C++ header file execinfo.h... (cached) yes
      Checking whether backtrace is declared... (cached) yes
      Checking whether backtrace_symbols is declared... (cached) yes
      Checking whether backtrace_symbols_fd is declared... (cached) yes
      Checking for C library pcap... (cached) yes
      Checking if __malloc_hook is declared volatile... (cached) no
      scons: done reading SConscript files.
      scons: Building targets ...
      Compiling build/cached/mongo/db/db.o
      error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option]
      error: unknown warning option '-Wno-unused-const-variable'; did you mean '-Wno-unused-variable'? [-Werror,-Wunknown-warning-option]
      ...

      I think for clang we can use "-Qunused-arguments" to get the same effect we wanted with these flags.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: