[
https://issues.apache.org/jira/browse/MESOS-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernd Mathiske updated MESOS-1030:
----------------------------------
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, ...)
^
Environment:
Ubuntu 13.10
Clang 3.5
Fix Version/s: 0.17.0
Assignee: Bernd Mathiske
Labels: build newbie (was: )
Remaining Estimate: 0h
Original Estimate: 0h
Summary: Mesos compile errors on Ubuntu 13.10 with Clang 3.5:
const & ..., header guard (was: Mesos compile errors on Ubuntu 13.10 with
Clang 3.5: const & ...)
Fix is ready, will be submitted for review imminently.
This issue has been separated from 1009 and 1029 under advisement to segregate
issues for 3rd party libraries.
> Mesos compile errors on Ubuntu 13.10 with Clang 3.5: const & ..., header guard
> ------------------------------------------------------------------------------
>
> Key: MESOS-1030
> URL: https://issues.apache.org/jira/browse/MESOS-1030
> Project: Mesos
> Issue Type: Bug
> Components: framework, master, slave
> Environment: Ubuntu 13.10
> Clang 3.5
> Reporter: Bernd Mathiske
> Assignee: Bernd Mathiske
> Priority: Minor
> Labels: build, newbie
> Fix For: 0.17.0
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> 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, ...)
> ^
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)