Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails for node v4.1.0 #49

Open
vsukhomlinov opened this issue Oct 20, 2015 · 0 comments
Open

Installation fails for node v4.1.0 #49

vsukhomlinov opened this issue Oct 20, 2015 · 0 comments

Comments

@vsukhomlinov
Copy link
Contributor

> [email protected] install~/test/node_modules/node-core-audio
> node-gyp rebuild

gyp info it worked if it ends with ok
  gyp verb cli [ '/usr/local/Cellar/node/4.1.0/bin/node',
    gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
    gyp verb cli   'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
gyp verb `which` failed     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
gyp verb `which` failed     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:82:15)
gyp verb `which` failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: v4.1.0
gyp verb command install [ 'v4.1.0' ]
gyp verb install input version string "v4.1.0"
gyp verb install installing version: 4.1.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 4.1.0
gyp verb build dir attempting to create "build" dir:~/test/node_modules/node-core-audio/build
gyp verb build dir "build" dir needed to be created?~/test/node_modules/node-core-audio/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file:~/test/node_modules/node-core-audio/build/config.gypi
gyp verb config.gypi checking for gypi file:~/test/node_modules/node-core-audio/config.gypi
gyp verb common.gypi checking for gypi file:~/test/node_modules/node-core-audio/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'make',
    gyp info spawn args   '-I',
    gyp info spawn args   '/Users/vsukhomlinov/stash/grandma/node_modules/node-core-audio/build/config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/Users/vsukhomlinov/.node-gyp/4.1.0/common.gypi',
    gyp info spawn args   '-Dlibrary=shared_library',
    gyp info spawn args   '-Dvisibility=default',
    gyp info spawn args   '-Dnode_root_dir=/Users/vsukhomlinov/.node-gyp/4.1.0',
    gyp info spawn args   '-Dmodule_root_dir=/Users/vsukhomlinov/stash/grandma/node_modules/node-core-audio',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'build',
    gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/vsukhomlinov/.node-gyp/4.1.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
c++ '-DNODE_GYP_MODULE_NAME=NodeCoreAudio' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/vsukhomlinov/.node-gyp/4.1.0/src -I/Users/vsukhomlinov/.node-gyp/4.1.0/deps/uv/include -I/Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include -I../node_modules/nan -I/Users/vsukhomlinov/stash/grandma/node_modules/node-core-audio/NodeCoreAudio -I/Users/vsukhomlinov/stash/grandma/node_modules/node-core-audio/portaudio  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o.d.raw  -c -o Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o ../NodeCoreAudio/AudioEngine.cpp
In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:13:
../node_modules/nan/nan.h:324:27: error: redefinition of 'NanEnsureHandleOrPersistent'
NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
^
../node_modules/nan/nan.h:319:17: note: previous definition is here
  v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
  ^
  ../node_modules/nan/nan.h:344:27: error: redefinition of 'NanEnsureLocal'
    NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {
    ^
    ../node_modules/nan/nan.h:334:27: note: previous definition is here
      NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {
      ^
      ../node_modules/nan/nan.h:757:13: error: no member named 'smalloc' in namespace 'node'
            , node::smalloc::FreeCallback callback
        ~~~~~~^
      ../node_modules/nan/nan.h:768:12: error: no matching function for call to 'New'
        return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
      ^~~~~~~~~~~~~~~~~
            /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
        NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
        NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_internals.h:334:28: note: candidate function not viable: no known conversion from 'v8::Isolate *' to 'node::Environment *' for 1st argument
        v8::MaybeLocal<v8::Object> New(Environment* env, char* data, size_t length);
      ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_internals.h:324:28: note: candidate function not viable: requires 2 arguments, but 3 were provided
        v8::MaybeLocal<v8::Object> New(Environment* env, size_t size);
      ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
        NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
      ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_internals.h:326:28: note: candidate function not viable: requires 5 arguments, but 3 were provided
        v8::MaybeLocal<v8::Object> New(Environment* env,
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/src/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
        NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
        ^
        In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
        In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:13:
      ../node_modules/nan/nan.h:772:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
        return node::Buffer::New(v8::Isolate::GetCurrent(), size);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
        'const v8::Local<v8::Object> &' for 1st argument
        class Local {
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
              'v8::Local<v8::Object> &&' for 1st argument
              class Local {
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
          V8_INLINE Local(Local<S> that)
        ^
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
          V8_INLINE Local(S* that)
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:13:
        ../node_modules/nan/nan.h:779:26: error: no member named 'Use' in namespace 'node::Buffer'
              return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
        ~~~~~~~~~~~~~~^
        ../NodeCoreAudio/AudioEngine.cpp:36:2: warning: field 'm_pLocker' will be initialized after field 'm_bOutputIsEmpty' [-Wreorder]
          m_pLocker(new Locker(Isolate::GetCurrent())),
        ^
        ../NodeCoreAudio/AudioEngine.cpp:226:21: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
          for (int i = 0; i < oldBufferCount; i++) {
        ~ ^ ~~~~~~~~~~~~~~
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../node_modules/nan/nan.h:501:12: note: in instantiation of function template specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
              return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../node_modules/nan/nan.h:511:12: note: in instantiation of function template specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
              return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../node_modules/nan/nan.h:1645:12: note: in instantiation of function template specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
              return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../node_modules/nan/nan.h:1776:12: note: in instantiation of function template specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
              return NanEscapeScope(
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Array *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../NodeCoreAudio/AudioEngine.cpp:278:9: note: in instantiation of function template specialization 'v8::Local<v8::Array>::Local<v8::Value>' requested here
              return NanEscapeScope( m_hInputBuffer );
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
          In file included from~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:9:
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Number *volatile' from incompatible type 'v8::Value *'
          TYPE_CHECK(T, S);
        ^~~~~~~~~~~~~~~~
        /Users/vsukhomlinov/.node-gyp/4.1.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
              *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
        ^ ~~~~~~~~~~~~~~~~~~
        ../NodeCoreAudio/AudioEngine.cpp:319:12: note: in instantiation of function template specialization 'v8::Local<v8::Number>::Local<v8::Value>' requested here
              return NanEscapeScope(sample);
        ^
        ../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))
        ^
          In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
       ~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:92:6: warning: private field 'jsAudioThread' is not used [-Wunused-private-field]
          jsAudioThread;                  //!< Our JavaScript Audio thread
        ^
       ~/test/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:111:5: warning: private field 'm_bOutputIsEmpty' is not used [-Wunused-private-field]
          m_bOutputIsEmpty,
              ^
              4 warnings and 12 errors generated.
          make: *** [Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.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:269:23)
          gyp ERR! stack     at emitTwo (events.js:87:13)
          gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
          gyp ERR! System Darwin 14.5.0
          gyp ERR! command "/usr/local/Cellar/node/4.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp ERR! cwd~/test/node_modules/node-core-audio
          gyp ERR! node -v v4.1.0
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          npm verb unsafe-perm in lifecycle true
          npm info [email protected] Failed to exec install script
          npm verb unlock done using /Users/vsukhomlinov/.npm/_locks/node-core-audio-3e93d59718854aa9.lock for~/test/node_modules/node-core-audio
          npm verb stack Error: [email protected] install: `node-gyp rebuild`
npm verb stack Exit status 1
          npm verb stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
          npm verb stack     at emitTwo (events.js:87:13)
          npm verb stack     at EventEmitter.emit (events.js:172:7)
          npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
          npm verb stack     at emitTwo (events.js:87:13)
          npm verb stack     at ChildProcess.emit (events.js:172:7)
          npm verb stack     at maybeClose (internal/child_process.js:817:16)
          npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
          npm verb pkgid [email protected]
          npm verb cwd /Users/vsukhomlinov/stash/grandma
          npm ERR! Darwin 14.5.0
          npm ERR! argv "/usr/local/Cellar/node/4.1.0/bin/node" "/usr/local/bin/npm" "install" "--verbose"
          npm ERR! node v4.1.0
          npm ERR! npm  v2.12.1
          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! This is most likely a problem with the node-core-audio 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 their info via:
            npm ERR!     npm owner ls node-core-audio
          npm ERR! There is likely additional logging output above.
          npm verb exit [ 1, true ]
          npm verb unbuild node_modules/node-core-audio
          npm info preuninstall [email protected]
          npm info uninstall [email protected]
          npm verb unbuild rmStuff [email protected] from~/test/node_modules
          npm info postuninstall [email protected]
          npm verb gentlyRm don't care about contents; nuking~/test/node_modules/node-core-audio

          npm ERR! Please include the following file with any support request:
            npm ERR!    ~/test/npm-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant