Skip to content

Instantly share code, notes, and snippets.

@deadprogram
Created January 21, 2016 20:23
Show Gist options
  • Select an option

  • Save deadprogram/6c5ce16ce3702fa734b7 to your computer and use it in GitHub Desktop.

Select an option

Save deadprogram/6c5ce16ce3702fa734b7 to your computer and use it in GitHub Desktop.
root@cylon13:~/mraa/build# make
[ 28%] Built target mraa
[ 30%] Building CXX object src/javascript/CMakeFiles/mraajs.dir/mraajsJAVASCRIPT_wrap.cxx.o
In file included from /usr/local/include/node/node.h:42:0,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:156:
/usr/local/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
using Handle = Local<T>;
^
/usr/local/include/node/v8.h: In constructor 'v8::MaybeLocal<T>::MaybeLocal()':
/usr/local/include/node/v8.h:353:33: error: 'nullptr' was not declared in this scope
V8_INLINE MaybeLocal() : val_(nullptr) {}
^
/usr/local/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::IsEmpty() const':
/usr/local/include/node/v8.h:360:51: error: 'nullptr' was not declared in this scope
V8_INLINE bool IsEmpty() const { return val_ == nullptr; }
^
/usr/local/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const':
/usr/local/include/node/v8.h:364:29: error: 'nullptr' was not declared in this scope
out->val_ = IsEmpty() ? nullptr : this->val_;
^
/usr/local/include/node/v8.h: In member function 'bool v8::WeakCallbackInfo<T>::IsFirstPass() const':
/usr/local/include/node/v8.h:430:50: error: 'nullptr' was not declared in this scope
bool IsFirstPass() const { return callback_ != nullptr; }
^
/usr/local/include/node/v8.h: At global scope:
/usr/local/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
using PhantomCallbackData = WeakCallbackInfo<T>;
^
/usr/local/include/node/v8.h:472:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class WeakCallbackType { kParameter, kInternalFields };
^
/usr/local/include/node/v8.h:637:43: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
PersistentBase(PersistentBase& other) = delete; // NOLINT
^
/usr/local/include/node/v8.h:638:37: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
void operator=(PersistentBase&) = delete;
^
/usr/local/include/node/v8.h:814:26: error: expected ',' or '...' before '&&' token
V8_INLINE Global(Global&& other) : PersistentBase<T>(other.val_) {
^
/usr/local/include/node/v8.h:814:34: error: invalid constructor; you probably meant 'v8::Global<T> (const v8::Global<T>&)'
V8_INLINE Global(Global&& other) : PersistentBase<T>(other.val_) {
^
/usr/local/include/node/v8.h:822:40: error: expected ',' or '...' before '&&' token
V8_INLINE Global& operator=(Global<S>&& rhs) {
^
/usr/local/include/node/v8.h:844:21: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
Global(Global&) = delete;
^
/usr/local/include/node/v8.h:845:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
void operator=(Global&) = delete;
^
/usr/local/include/node/v8.h: In constructor 'v8::Global<T>::Global()':
/usr/local/include/node/v8.h:790:42: error: 'nullptr' was not declared in this scope
V8_INLINE Global() : PersistentBase<T>(nullptr) {}
^
/usr/local/include/node/v8.h: In member function 'v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>)':
/usr/local/include/node/v8.h:824:18: error: 'rhs' was not declared in this scope
if (this != &rhs) {
^
/usr/local/include/node/v8.h:827:18: error: 'nullptr' was not declared in this scope
rhs.val_ = nullptr;
^
/usr/local/include/node/v8.h: In member function 'v8::Global<T> v8::Global<T>::Pass()':
/usr/local/include/node/v8.h:834:44: error: expected '>' before '&&' token
Global Pass() { return static_cast<Global&&>(*this); }
^
/usr/local/include/node/v8.h:834:44: error: expected '(' before '&&' token
/usr/local/include/node/v8.h:834:46: error: expected identifier before '>' token
Global Pass() { return static_cast<Global&&>(*this); }
^
/usr/local/include/node/v8.h:834:54: error: expected ')' before ';' token
Global Pass() { return static_cast<Global&&>(*this); }
^
/usr/local/include/node/v8.h: At global scope:
/usr/local/include/node/v8.h:852:1: error: expected unqualified-id before 'using'
using UniquePersistent = Global<T>;
^
In file included from /usr/local/include/node/v8.h:23:0,
from /usr/local/include/node/node.h:42,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:156:
/usr/local/include/node/v8.h:1092:52: error: 'nullptr' was not declared in this scope
ScriptOrigin* origin = nullptr));
^
/usr/local/include/node/v8config.h:347:48: note: in definition of macro 'V8_DEPRECATE_SOON'
#define V8_DEPRECATE_SOON(message, declarator) declarator
^
In file included from /usr/local/include/node/node.h:42:0,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:156:
/usr/local/include/node/v8.h:1095:30: error: 'nullptr' was not declared in this scope
ScriptOrigin* origin = nullptr);
^
/usr/local/include/node/v8.h:2075:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class NewStringType { kNormal, kInternalized };
^
/usr/local/include/node/v8.h:2283:42: error: 'v8::NewStringType' is not a class or namespace
kNormalString = static_cast<int>(v8::NewStringType::kNormal),
^
/usr/local/include/node/v8.h:2284:48: error: 'v8::NewStringType' is not a class or namespace
kInternalizedString = static_cast<int>(v8::NewStringType::kInternalized)
^
/usr/local/include/node/v8.h: In member function 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const':
/usr/local/include/node/v8.h:3205:36: error: 'nullptr' was not declared in this scope
return NewInstance(context, 0, nullptr);
^
/usr/local/include/node/v8.h: At global scope:
/usr/local/include/node/v8.h:3350:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class ArrayBufferCreationMode { kInternalized, kExternalized };
^
/usr/local/include/node/v8.h:3434:38: error: 'ArrayBufferCreationMode' is not a class or namespace
ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
^
/usr/local/include/node/v8.h:3797:38: error: 'ArrayBufferCreationMode' is not a class or namespace
ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
^
/usr/local/include/node/v8.h:4435:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class PropertyHandlerFlags {
^
/usr/local/include/node/v8.h:4457:36: error: 'PropertyHandlerFlags' is not a class or namespace
PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
^
/usr/local/include/node/v8.h:4485:36: error: 'PropertyHandlerFlags' is not a class or namespace
PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
^
/usr/local/include/node/v8.h: In member function 'void v8::ObjectTemplate::SetIndexedPropertyHandler(v8::IndexedPropertyGetterCallback, v8::IndexedPropertySetterCallback, v8::IndexedPropertyQueryCallback, v8::IndexedPropertyDeleterCallback, v8::IndexedPropertyEnumeratorCallback, v8::Local<v8::Value>)':
/usr/local/include/node/v8.h:4617:77: error: call to 'v8::IndexedPropertyHandlerConfiguration::IndexedPropertyHandlerConfiguration(v8::IndexedPropertyGetterCallback, v8::IndexedPropertySetterCallback, v8::IndexedPropertyQueryCallback, v8::IndexedPropertyDeleterCallback, v8::IndexedPropertyEnumeratorCallback, v8::Local<v8::Value>, v8::PropertyHandlerFlags)' uses the default argument for parameter 7, which is not yet defined
deleter, enumerator, data));
^
In file included from /usr/local/include/node/v8.h:23:0,
from /usr/local/include/node/node.h:42,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:156:
/usr/local/include/node/v8.h: In member function 'v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()':
/usr/local/include/node/v8.h:7164:27: error: 'nullptr' was not declared in this scope
if (V8_UNLIKELY(val_ == nullptr)) V8::ToLocalEmpty();
^
/usr/local/include/node/v8config.h:353:54: note: in definition of macro 'V8_UNLIKELY'
# define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
^
In file included from /usr/local/include/node/node.h:42:0,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:156:
/usr/local/include/node/v8.h: In member function 'void v8::Template::Set(v8::Isolate*, const char*, v8::Local<v8::Data>)':
/usr/local/include/node/v8.h:7609:46: error: 'NewStringType' is not a class or namespace
Set(v8::String::NewFromUtf8(isolate, name, NewStringType::kNormal)
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx: At global scope:
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:894:7: error: 'Handle' in namespace 'v8' does not name a template type
v8::Handle<v8::Value> err;
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx: In member function 'virtual void OverloadErrorHandler::error(int, const char*)':
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:889:5: error: 'err' was not declared in this scope
err = v8::Exception::Error(SWIGV8_STRING_NEW(msg));
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx: At global scope:
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:39: error: 'Handle' is not a member of 'v8'
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:60: error: expected primary-expression before '>' token
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:62: error: 'objRef' was not declared in this scope
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:70: error: expected primary-expression before 'void'
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:97: error: expected primary-expression before '*' token
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:98: error: 'info' was not declared in this scope
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:104: error: expected primary-expression before 'int'
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:113: error: expression list treated as compound expression in initializer [-fpermissive]
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
/home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:957:115: error: expected ',' or ';' before '{' token
static int SWIG_V8_ConvertInstancePtr(v8::Handle<v8::Object> objRef, void **ptr, swig_type_info *info, int flags) {
^
In file included from /usr/include/c++/4.9.1/stdexcept:38:0,
from /home/root/mraa/build/src/javascript/mraajsJAVASCRIPT_wrap.cxx:1516:
/usr/include/c++/4.9.1/exception:35:37: error: expected declaration before end of line
#pragma GCC visibility push(default)
^
src/javascript/CMakeFiles/mraajs.dir/build.make:60: recipe for target 'src/javascript/CMakeFiles/mraajs.dir/mraajsJAVASCRIPT_wrap.cxx.o' failed
make[2]: *** [src/javascript/CMakeFiles/mraajs.dir/mraajsJAVASCRIPT_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:146: recipe for target 'src/javascript/CMakeFiles/mraajs.dir/all' failed
make[1]: *** [src/javascript/CMakeFiles/mraajs.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment