Open ghost opened 8 years ago
Compiler/version?
Node Versions
npm ERR! Linux 2.6.32-358.el6.x86_64
npm ERR! argv "/root/.nvm/versions/node/v4.4.7/bin/node" "/root/.nvm/versions/node/v4.4.7/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! node-stringprep@0.8.0 install: `node-gyp rebuild`
GCC Version
gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
OS
CentOS 6.4
I cannot reproduce this with g++ 4.9.3 on Debian :-(
The issue is with specifically centos 6.4 it works well on centos 7 tried that there but on centos 6 event with latest c++ compiler it doesn't compile On Jul 2, 2016 3:28 AM, "Astro" notifications@github.com wrote:
I cannot reproduce this with g++ 4.9.3 on Debian :-(
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/astro/node-stringprep/issues/94#issuecomment-230060837, or mute the thread https://github.com/notifications/unsubscribe/ATS02SfUskqYdo7aShgzNoIMqb6ZY9udks5qRZSogaJpZM4JCizA .
I'm also getting the same error, on Ubuntu 14.04.
In file included from ../node-stringprep.cc:1:0:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../../nan/nan.h:256:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../../nan/nan.h:25:0,
from ../node-stringprep.cc:1:
/home/hosar/.node-gyp/5.6.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate
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:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-96-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/hosar/Projects/myIdentity.kafka/node_modules/xmpp-jid/node_modules/node-stringprep
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:node-stringprep@0.7.3 node-stringprep@0.7.3 install: `node-gyp rebuild`
npm WARN install:node-stringprep@0.7.3 Exit status 1
I also have this issue with Travis CI builds, but it works on OS X locally.
Build log is here: https://travis-ci.org/maurelian/dot-eth-js/jobs/184547777
Here's the travis config:
"language": "node_js",
"node_js": "6",
"group": "stable",
"dist": "precise",
"os": "linux"
}
I am installing npm install on my CentOS machine and it gives the following error again and again. I have installed all latest dev-tools