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

Build failure with --use-cpu-profiler on linux

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: 3.1.8
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      scons --use-cpu-profiler

      Show
      scons --use-cpu-profiler
    • Build A (10/09/15)

      Build on linux fails with the --use-cpu-profiler option. Errors include:

      src/third_party/gperftools-2.2/src/base/logging.h:195:19: note: in expansion of macro 'INFO'
      enum LogSeverity

      Unknown macro: {INFO = -1, WARNING = -2, ERROR = -3, FATAL = -4}

      ;
      ^
      In file included from src/third_party/s2/util/math/vector3-inl.h:39:0,
      from src/third_party/s2/s2.h:26,
      from src/mongo/db/geo/s2.h:40,
      from src/mongo/db/geo/big_polygon.h:33,
      from src/mongo/db/geo/shapes.h:37,
      from src/mongo/db/query/expression_index.h:34,
      from src/mongo/db/query/expression_index.cpp:29:
      src/third_party/gperftools-2.2/src/base/logging.h:195:66: error: expected declaration before '}' token
      enum LogSeverity

      ;
      ^

      The issue starts on commit

      [f725d04705a2019ab1949ced290158397d9365b0] SERVER-19661 Give vendored include paths higher priority

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            david.daly@mongodb.com David Daly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: