node-janus icon indicating copy to clipboard operation
node-janus copied to clipboard

npm install fails during compilation of marionette-client dependency

Open gaul opened this issue 9 years ago • 0 comments

$ npm install
...
> [email protected] install /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me
> CC=clang CXX=clang++ node-gyp configure build --verbose

npm http 304 https://registry.npmjs.org/asap
gyp info it worked if it ends with ok
gyp verb cli [ 'nodejs',
gyp verb cli   '/usr/bin/node-gyp',
gyp verb cli   'configure',
gyp verb cli   'build',
gyp verb cli   '--verbose' ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command configure []
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.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.25
gyp verb build dir attempting to create "build" dir: /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/build
gyp verb build dir "build" dir needed to be created? null
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/config.gypi
gyp verb common.gypi checking for gypi file: /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/share/node-gyp/gyp/gyp',
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   '/home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/share/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/include/nodejs/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/usr/include/nodejs',
gyp info spawn args   '-Dmodule_root_dir=/home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me',
gyp info spawn args   '--depth=.',
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 /usr/include/nodejs
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/build'
  clang++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/usr/include/nodejs/src -I/usr/include/nodejs/deps/uv/include -I/usr/include/nodejs/deps/v8/include  -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/sockit/src/addon.o.d.raw   -c -o Release/obj.target/sockit/src/addon.o ../src/addon.cc
clang: warning: optimization flag '-fno-tree-vrp' is not supported
In file included from ../src/addon.cc:5:
../src/sockit.h:17:29: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void New(const v8::FunctionCallbackInfo<v8::Value>&);
                        ~~~~^
../src/sockit.h:17:49: error: expected ')'
  static void New(const v8::FunctionCallbackInfo<v8::Value>&);
                                                ^
../src/sockit.h:17:18: note: to match this '('
  static void New(const v8::FunctionCallbackInfo<v8::Value>&);
                 ^
../src/sockit.h:19:33: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>&);
                            ~~~~^
../src/sockit.h:19:53: error: expected ')'
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>&);
                                                    ^
../src/sockit.h:19:22: note: to match this '('
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>&);
                     ^
../src/sockit.h:21:30: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void Read(const v8::FunctionCallbackInfo<v8::Value>&);
                         ~~~~^
../src/sockit.h:21:50: error: expected ')'
  static void Read(const v8::FunctionCallbackInfo<v8::Value>&);
                                                 ^
../src/sockit.h:21:19: note: to match this '('
  static void Read(const v8::FunctionCallbackInfo<v8::Value>&);
                  ^
../src/sockit.h:23:31: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void Write(const v8::FunctionCallbackInfo<v8::Value>&);
                          ~~~~^
../src/sockit.h:23:51: error: expected ')'
  static void Write(const v8::FunctionCallbackInfo<v8::Value>&);
                                                  ^
../src/sockit.h:23:20: note: to match this '('
  static void Write(const v8::FunctionCallbackInfo<v8::Value>&);
                   ^
../src/sockit.h:27:31: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void Close(const v8::FunctionCallbackInfo<v8::Value>&);
                          ~~~~^
../src/sockit.h:27:51: error: expected ')'
  static void Close(const v8::FunctionCallbackInfo<v8::Value>&);
                                                  ^
../src/sockit.h:27:20: note: to match this '('
  static void Close(const v8::FunctionCallbackInfo<v8::Value>&);
                   ^
../src/sockit.h:29:40: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void SetPollTimeout(const v8::FunctionCallbackInfo<v8::Value>&);
                                   ~~~~^
../src/sockit.h:29:60: error: expected ')'
  static void SetPollTimeout(const v8::FunctionCallbackInfo<v8::Value>&);
                                                           ^
../src/sockit.h:29:29: note: to match this '('
  static void SetPollTimeout(const v8::FunctionCallbackInfo<v8::Value>&);
                            ^
../src/sockit.h:30:37: error: no type named 'FunctionCallbackInfo' in namespace 'v8'
  static void SetDebugLog(const v8::FunctionCallbackInfo<v8::Value>&);
                                ~~~~^
../src/sockit.h:30:57: error: expected ')'
  static void SetDebugLog(const v8::FunctionCallbackInfo<v8::Value>&);
                                                        ^
../src/sockit.h:30:26: note: to match this '('
  static void SetDebugLog(const v8::FunctionCallbackInfo<v8::Value>&);
                         ^
14 errors generated.
make: *** [Release/obj.target/sockit/src/addon.o] Error 1
make: Leaving directory `/home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-101-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "configure" "build" "--verbose"
gyp ERR! cwd /home/gaul/work/node-janus/node_modules/marionette-client/node_modules/sockit-to-me
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

gaul avatar Dec 22 '16 01:12 gaul