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

Already on GitHub? Sign in to your account

Installation difficulty #26

Open
Meekohi opened this Issue Jul 23, 2013 · 5 comments

Comments

Projects
None yet
4 participants

Meekohi commented Jul 23, 2013

> bigint@0.4.2 install /home/ec2-user/spin-transcoder/node_modules/bigint
> node-gyp configure build

make: Entering directory `/home/ec2-user/spin-transcoder/node_modules/bigint/build'
  CXX(target) Release/obj.target/bigint/bigint.o
../bigint.cc: In static member function ‘static void BigInt::Initialize(v8::Handle<v8::Object>)’:
../bigint.cc:124:60: warning: ‘static v8::Persistent<S> v8::Persistent<T>::New(v8::Handle<T>) [with T = v8::FunctionTemplate]’ is deprecated (declared at /home/ec2-user/.node-gyp/0.11.0/deps/v8/include/v8.h:4438) [-Wdeprecated-declarations]
../bigint.cc: In static member function ‘static v8::Handle<v8::Value> BigInt::New(const v8::Arguments&)’:
../bigint.cc:227:26: error: ‘Unwrap’ is not a member of ‘v8::External’
../bigint.cc: In function ‘v8::Handle<v8::Value> SetJSConditioner(const v8::Arguments&)’:
../bigint.cc:781:83: warning: ‘static v8::Persistent<S> v8::Persistent<T>::New(v8::Handle<T>) [with T = v8::Function]’ is deprecated (declared at /home/ec2-user/.node-gyp/0.11.0/deps/v8/include/v8.h:4438) [-Wdeprecated-declarations]
make: *** [Release/obj.target/bigint/bigint.o] Error 1
make: Leaving directory `/home/ec2-user/spin-transcoder/node_modules/bigint/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/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:757:12)
gyp ERR! System Linux 2.6.35.14-97.44.amzn1.i686
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/ec2-user/spin-transcoder/node_modules/bigint
gyp ERR! node -v v0.11.0
gyp ERR! node-gyp -v v0.9.3
gyp ERR! not ok 
npm ERR! bigint@0.4.2 install: `node-gyp configure build`
npm ERR! `sh "-c" "node-gyp configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the bigint@0.4.2 install script.
npm ERR! This is most likely a problem with the bigint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bigint
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.35.14-97.44.amzn1.i686
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "update"
npm ERR! cwd /home/ec2-user/spin-transcoder
npm ERR! node -v v0.11.0
npm ERR! npm -v 1.2.15
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ec2-user/spin-transcoder/npm-debug.log
npm ERR! not ok code 0

Seems like its using some deprecated V8 stuff?

Meekohi commented Jul 23, 2013

Problem is unique to node 0.11

Contributor

freeeve commented Jul 24, 2013

If you want to fix it yourself you just need this one line:
freeeve/node-bigint@4e09716#L0L227

In my PR I also fixed some other deprecation warnings so maybe this won't happen again for a while. Also, hi from slightly north of you--I'm just up 29 a couple of hours. :P

Umm, 7 months and no fix? I have the same problem. 😒

> bigint@0.4.2 install /Users/gslepak/dnschain/node_modules/jwcrypto/node_modules/bigint
> node-gyp configure build

  CXX(target) Release/obj.target/bigint/bigint.o
../bigint.cc:57:16: error: expected class name
class BigInt : ObjectWrap {
               ^
../bigint.cc:74:34: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> New(const Arguments& args);
                                               ^~~~~~~~~
                                               v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:75:39: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> ToString(const Arguments& args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:76:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Badd(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:77:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Bsub(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:78:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Bmul(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:79:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Bdiv(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:80:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Uadd(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:81:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Usub(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:82:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Umul(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:83:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Udiv(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:84:40: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Umul_2exp(const Arguments& args);
                                                     ^~~~~~~~~
                                                     v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:85:40: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Udiv_2exp(const Arguments& args);
                                                     ^~~~~~~~~
                                                     v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:86:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Babs(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:87:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Bneg(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../bigint.cc:88:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Bmod(const Arguments& args);
                                                ^~~~~~~~~
                                                v8::internal::Arguments
/Users/gslepak/.node-gyp/0.11.9/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^

As mention in the PR comments, it didn't fix my issue. :-\

tuaris commented Feb 27, 2015

@taoeffect unfortunately this module only build with Node.js 0.10.x. If your on FreeBSD, I made a quick fix here: https://github.com/tuaris/node-bigint. At least until either node-bigint is updated or FreeBSD adds Node.js v0.10 back into the ports tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment