Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1030

Mesos compile errors on Ubuntu 13.10 with Clang 3.5: const & ..., header guard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.18.0
    • agent, framework, master
    • Ubuntu 13.10
      Clang 3.5

    Description

      Depends on MESOS-1009 and MESOS-1029.

      ../../src/messages/state.hpp:19:9: error: '_MESSAGE_STATE_HPP_' is used as a header guard here, followed by #define
      of a different macro [-Werror,-Wheader-guard]
      #ifndef _MESSAGE_STATE_HPP_
      ^~~~~~~~~~~~~~~~~~~~~
      ../../src/messages/state.hpp:20:9: note: '_MESSAGES_STATE_HPP_' is defined here; did you mean
      '_MESSAGE_STATE_HPP_'?
      #define _MESSAGES_STATE_HPP_
      ^~~~~~~~~~~~~~~~~~~~~~
      _MESSAGE_STATE_HPP_

      n file included from ../../src/java/jni/convert.cpp:32:
      ../../src/jvm/jvm.hpp:473:18: error: 'va_start' has undefined behavior with reference types [-Werror,-Wvarargs]
      va_start(args, method);
      ^
      /root/clang/build/Release/bin/../lib/clang/3.5/include/stdarg.h:33:52: note: expanded from macro 'va_start'
      #define va_start(ap, param) __builtin_va_start(ap, param)
      ^
      ../../src/jvm/jvm.hpp:470:53: note: parameter of type 'const Jvm::Method &' is declared here
      T Jvm::invoke(const jobject receiver, const Method& method, ...)
      ^
      ../../src/jvm/jvm.hpp:488:18: error: 'va_start' has undefined behavior with reference types [-Werror,-Wvarargs]
      va_start(args, method);
      ^
      /root/clang/build/Release/bin/../lib/clang/3.5/include/stdarg.h:33:52: note: expanded from macro 'va_start'
      #define va_start(ap, param) __builtin_va_start(ap, param)
      ^
      ../../src/jvm/jvm.hpp:485:35: note: parameter of type 'const Jvm::Method &' is declared here
      T Jvm::invokeStatic(const Method& method, ...)
      ^

      Attachments

        Activity

          People

            bernd-mesos Bernd Mathiske
            bernd-mesos Bernd Mathiske
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: