Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

mac sierra rebuild failed #19

@nealsun

Description

@nealsun
> [email protected] install /Users/sunweirong/projects/electronapp/electron-boilerplate-vue/node_modules/nslog
> node-gyp rebuild

objc[32775]: Class DTXcodeUtils is implemented in both /Users/sunweirong/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Swimat.xcplugin/Contents/MacOS/Swimat (0x112f50d68) and /Users/sunweirong/Library/Application Support/Developer/Shared/Xcode/Plug-ins/StringsValidator.xcplugin/Contents/MacOS/StringsValidator (0x112f5ef60). One of the two will be used. Which one is undefined.
  CXX(target) Release/obj.target/nslog/src/main.o
In file included from ../src/main.cc:3:
../../nan/nan.h:43:3: error: This version of node/NAN/v8 requires a C++11
      compiler
# error This version of node/NAN/v8 requires a C++11 compiler
  ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:47:
In file included from /Users/sunweirong/.node-gyp/7.0.0/include/node/node.h:42:
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:346:16: warning: alias
      declarations are a C++11 extension [-Wc++11-extensions]
using Handle = Local<T>;
               ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:466:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class WeakCallbackType { kParameter, kInternalFields, kFinalizer };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:633:49: warning: deleted
      function definitions are a C++11 extension [-Wc++11-extensions]
  PersistentBase(const PersistentBase& other) = delete;  // NOLINT
                                                ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:634:43: warning: deleted
      function definitions are a C++11 extension [-Wc++11-extensions]
  void operator=(const PersistentBase&) = delete;
                                          ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:811:26: warning: rvalue
      references are a C++11 extension [-Wc++11-extensions]
  V8_INLINE Global(Global&& other) : PersistentBase<T>(other.val_) {  // NOLINT
                         ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:819:40: warning: rvalue
      references are a C++11 extension [-Wc++11-extensions]
  V8_INLINE Global& operator=(Global<S>&& rhs) {  // NOLINT
                                       ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:841:27: warning: deleted
      function definitions are a C++11 extension [-Wc++11-extensions]
  Global(const Global&) = delete;
                          ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:842:35: warning: deleted
      function definitions are a C++11 extension [-Wc++11-extensions]
  void operator=(const Global&) = delete;
                                  ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:831:44: warning: rvalue
      references are a C++11 extension [-Wc++11-extensions]
  Global Pass() { return static_cast<Global&&>(*this); }  // NOLINT
                                           ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:849:26: warning: alias
      declarations are a C++11 extension [-Wc++11-extensions]
using UniquePersistent = Global<T>;
                         ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2087:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class NewStringType { kNormal, kInternalized };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2297:42: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    kNormalString = static_cast<int>(v8::NewStringType::kNormal),
                                         ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2298:48: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    kInternalizedString = static_cast<int>(v8::NewStringType::kInternalized)
                                               ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2644:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2650:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class IndexFilter { kIncludeIndices, kSkipIndices };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:2655:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class IntegrityLevel { kFrozen, kSealed };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:3267:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class ConstructorBehavior { kThrow, kAllow };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:3281:38: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      ConstructorBehavior behavior = ConstructorBehavior::kAllow);
                                     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:3480:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class ArrayBufferCreationMode { kInternalized, kExternalized };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:3580:38: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
                                     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:3943:38: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
                                     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:4514:38: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      ConstructorBehavior behavior = ConstructorBehavior::kAllow);
                                     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:4621:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class PropertyHandlerFlags {
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:4643:36: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
                                   ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:4671:36: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
      PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
                                   ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:5182:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class MicrotasksPolicy { kExplicit, kScoped, kAuto };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:5517:6: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
enum class MemoryPressureLevel { kNone, kModerate, kCritical };
     ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:5578:35: warning: defaulted
      function definitions are a C++11 extension [-Wc++11-extensions]
  virtual ~EmbedderHeapTracer() = default;
                                  ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:6886:8: warning: scoped
      enumerations are a C++11 extension [-Wc++11-extensions]
  enum class FunctionCodeHandling { kClear, kKeep };
       ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:8243:46: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
  Set(v8::String::NewFromUtf8(isolate, name, NewStringType::kNormal)
                                             ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:8257:3: warning: 'auto' type
      specifier is a C++11 extension [-Wc++11-extensions]
  auto instance_type = I::GetInstanceType(obj);
  ^
/Users/sunweirong/.node-gyp/7.0.0/include/node/v8.h:8277:3: warning: 'auto' type
      specifier is a C++11 extension [-Wc++11-extensions]
  auto instance_type = I::GetInstanceType(obj);
  ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:49:
/Users/sunweirong/.node-gyp/7.0.0/include/node/node_object_wrap.h:64:50: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
                                                 ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:190:
../../nan/nan_maybe_43_inl.h:13:20: warning: alias declarations are a C++11
      extension [-Wc++11-extensions]
using MaybeLocal = v8::MaybeLocal<T>;
                   ^
../../nan/nan_maybe_43_inl.h:16:15: warning: alias declarations are a C++11
      extension [-Wc++11-extensions]
using Maybe = v8::Maybe<T>;
              ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:196:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:270:45: warning: use of enumeration in a
      nested name specifier is a C++11 extension [-Wc++11-extensions]
      v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length);
                                            ^
../../nan/nan_implementation_12_inl.h:277:25: warning: use of enumeration in a
      nested name specifier is a C++11 extension [-Wc++11-extensions]
      value.data(), v8::NewStringType::kNormal, static_cast<int>(value.size()));
                        ^
../../nan/nan_implementation_12_inl.h:283:13: warning: use of enumeration in a
      nested name specifier is a C++11 extension [-Wc++11-extensions]
        v8::NewStringType::kNormal, length);
            ^
In file included from ../src/main.cc:3:
../../nan/nan.h:738:15: warning: use of enumeration in a nested name specifier
      is a C++11 extension [-Wc++11-extensions]
          v8::NewStringType::kNormal, length);
              ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:2186:
../../nan/nan_weak.h:263:15: warning: use of enumeration in a nested name
      specifier is a C++11 extension [-Wc++11-extensions]
  if (type == WeakCallbackType::kParameter) {
              ^
In file included from ../src/main.cc:3:
In file included from ../../nan/nan.h:2190:
../../nan/nan_object_wrap.h:66:33: warning: use of enumeration in a nested name
      specifier is a C++11 extension [-Wc++11-extensions]
        this, WeakCallback, v8::WeakCallbackType::kParameter);
                                ^
41 warnings and 1 error generated.
make: *** [Release/obj.target/nslog/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.1.0
gyp ERR! command "/usr/local/Cellar/node/7.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sunweirong/projects/electronapp/electron-boilerplate-vue/node_modules/nslog
gyp ERR! node -v v7.0.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
/Users/sunweirong/projects/electronapp/electron-boilerplate-vue
└── (empty)

npm WARN electron-boilerplate-vue No repository field.
npm WARN electron-boilerplate-vue No license field.
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node/7.0.0/bin/node" "/usr/local/bin/npm" "install" "electron-rebuild" "-save"
npm ERR! node v7.0.0
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nslog package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs nslog
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls nslog
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/sunweirong/projects/electronapp/electron-boilerplate-vue/npm-debug.log
npm ERR! code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions