RuntimeTools / appmetrics-statsd

A connector that collects data using 'appmetrics' and sends it to a configured StatsD server using 'node-statsd'.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js v10 support

DanailMinchev opened this issue · comments

Hi,

Currently appmetrics-statsd depends on an old version of appmetrics

"appmetrics": "^3.0.0",

appmetrics released 4.0.1 version which supports Node.js v10 (see RuntimeTools/appmetrics#560 for example)

Could you upgrade appmetrics to 4.0.1 please?

Otherwise we cannot use this package in our setup (we use Docker node:10-alpine image)

Thanks

@DanailMinchev please review and close at your earliest convenience :-)

Thanks for your blazing fast reply :) !
I will test it once the new release is available on npm and will let you know

@mattcolegate could you ping me once it's published on npm, thank you

@DanailMinchev I'll be releasing it in the next hour so I'll ping you then

@DanailMinchev I've published a new version to npm

Thanks @tobespc !

When I try to build it I am receiving following error:

********************************************************************************
You are installing the Node Application Metrics monitoring and profiling module.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
********************************************************************************
Unsupported version v10.14.1. Trying rebuild.
Falling back to node-gyp rebuild
make: Entering directory '/tmp/node_modules/appmetrics/build'
  ACTION binding_gyp_appmetrics_target_Set_appmetrics_reported_version_build_level Release/obj.target/appmetrics/geni/appmetrics.cpp
infile: ./src/appmetrics.cpp
outfile: /tmp/node_modules/appmetrics/build/Release/obj.target/appmetrics/geni/appmetrics.cpp
Replacing '"99\.99\.99\.29991231"' with '"4.0.1.201812041517"'
  CXX(target) Release/obj.target/appmetrics/geni/appmetrics.o
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:222,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:
../../nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)':
../../nan/nan_implementation_12_inl.h:340:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:5053:37: note: declared here
                 static Local<Value> New(Local<String> value));
                                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1066:53: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h:1080:74: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2659:21: note: declared here
                 int WriteUtf8(char* buffer, int length = -1,
                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/plugins/node/prof/watchdog.h:21:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:
../src/plugins/node/prof/compat-inl.h: In static member function 'static void compat::CpuProfiler::StartCpuProfiling(v8::Isolate*, v8::Local<v8::String>)':
../src/plugins/node/prof/compat-inl.h:302:34: warning: 'v8::CpuProfiler* v8::Isolate::GetCpuProfiler()' is deprecated: CpuProfiler should be created with CpuProfiler::New call. [-Wdeprecated-declarations]
   return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:7485:30: note: declared here
                 CpuProfiler* GetCpuProfiler());
                              ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/plugins/node/prof/watchdog.h:21:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:
../src/plugins/node/prof/compat-inl.h: In static member function 'static const v8::CpuProfile* compat::CpuProfiler::StopCpuProfiling(v8::Isolate*, v8::Local<v8::String>)':
../src/plugins/node/prof/compat-inl.h:312:34: warning: 'v8::CpuProfiler* v8::Isolate::GetCpuProfiler()' is deprecated: CpuProfiler should be created with CpuProfiler::New call. [-Wdeprecated-declarations]
   return isolate->GetCpuProfiler()->StopProfiling(title);
                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:7485:30: note: declared here
                 CpuProfiler* GetCpuProfiler());
                              ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:0:
../src/plugins/node/prof/watchdog.h: In function 'const char* watchdog::StartCpuProfiling(v8::Isolate*, uint64_t)':
../src/plugins/node/prof/watchdog.h:251:6: error: 'struct sigevent' has no member named '_sigev_un'; did you mean 'sigevent'?
   ev._sigev_un._tid = profiler_tid;
      ^~~~~~~~~
../src/plugins/node/prof/watchdog.h:252:21: error: 'SIGEV_THREAD_ID' was not declared in this scope
   ev.sigev_notify = SIGEV_THREAD_ID;
                     ^~~~~~~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string toStdString(v8::Local<v8::String>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:90:21: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
     s->WriteUtf8(buf);
                     ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2659:21: note: declared here
                 int WriteUtf8(char* buffer, int length = -1,
                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string* getModuleDir(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:187:126: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     std::string moduleFilename(toStdString(module->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked())->ToString()));
                                                                                                                              ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'v8::Local<v8::Object> getProcessObject()':
Release/obj.target/appmetrics/geni/appmetrics.cpp:192:121: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     return Nan::GetCurrentContext()->Global()->Get(Nan::New<String>(asciiString("process")).ToLocalChecked())->ToObject();
                                                                                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string* findApplicationDir()':
Release/obj.target/appmetrics/geni/appmetrics.cpp:198:50: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         return getModuleDir(mainModule->ToObject());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE setOption(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:333:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:334:46: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     Local<String> value1 = info[1]->ToString();
                                              ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE getOption(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:344:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE spath(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:383:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'void emitMessage(uv_async_t*, int)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:435:44: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
         listener->callback->Call(argc, argv);
                                            ^
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h:1655:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE nativeEmit(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:495:49: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value str(info[0]->ToString());
                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:495:50: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value str(info[0]->ToString());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:505:49: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value str(info[1]->ToString());
                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:505:50: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value str(info[1]->ToString());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE sendControlCommand(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:531:54: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value topicArg(info[0]->ToString());
                                                      ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:531:55: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value topicArg(info[0]->ToString());
                                                       ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:532:56: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value commandArg(info[1]->ToString());
                                                        ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:532:57: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value commandArg(info[1]->ToString());
                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'bool isGlobalAgent(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:662:50: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Value> filename = parent->ToObject()->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:663:97: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         if (filename->IsString() && isAppMetricsFile("index.js", toStdString(filename->ToString()))) {
                                                                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:664:57: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> grandparent = parent->ToObject()->Get(Nan::New<String>(asciiString("parent")).ToLocalChecked());
                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:665:61: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> gpfilename = grandparent->ToObject()->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked());
                                                             ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:666:108: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             if (gpfilename->IsString() && isAppMetricsFile("launcher.js", toStdString(gpfilename->ToString()))) {
                                                                                                            ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'bool isGlobalAgentAlreadyLoaded(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:684:98: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             if (entry->IsString() && isAppMetricsFile("launcher.js", toStdString(entry->ToString()))) {
                                                                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
make: Leaving directory '/tmp/node_modules/appmetrics/build'
make: *** [Makefile:282: Release/obj.target/appmetrics/geni/appmetrics.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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.9.125-linuxkit
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 /tmp/node_modules/appmetrics
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! appmetrics@4.0.1 install: `node extract_all_binaries.js || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appmetrics@4.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-12-04T15_17_28_622Z-debug.log
The command '/bin/sh -c apk --no-cache --virtual build-dependencies add     python     make     g++     && cd /tmp     && npm install --production     && apk del build-dependencies' returned a non-zero code: 1

This is within Dockerfile, but if I try to do it locally npm install works fine.

One of the differences is that locally where it is OK we have:

Replacing '"99\.99\.99\.29991231"' with '"4.0.1.201812041514"'
  CXX(target) Release/obj.target/appmetrics/geni/appmetrics.o

while using Docker where it fails we have:

Replacing '"99\.99\.99\.29991231"' with '"4.0.1.201812041517"'
  CXX(target) Release/obj.target/appmetrics/geni/appmetrics.o

So we have different version 4.0.1.201812041514 vs 4.0.1.201812041517

We are using node:10-alpine official docker image and we have:

RUN apk --no-cache --virtual build-dependencies add \
    python \
    make \
    g++ \
    && cd /tmp \
    && npm install --production \
    && apk del build-dependencies

as a command related to other issue with node-gyp

Inside Docker and on my machine it is the same node and npm versions:

Node.js v10.14.1
npm 6.4.1

Not sure where is the problem now, will try to find it, sorry for the spam but in case you think you know where the problem is I pasted this info here.

Thanks

so thats appmetrics failing to build for you. On my mac running Node 10.14.1, I do see all the warnings but it still built. Does "npm install appmetrics" work ?

@tobespc yes, it works on my mac, but it fails on docker build, here is the sample to reproduce docker failure:

First, we run the image:

$ docker run --rm -i -t node:10-alpine sh

Then, inside the image I've created sample app and tried to install appmetrics package:

# mkdir test-appmetrics
# cd test-appmetrics/
# node -v
v10.14.1
# npm -v
6.4.1
# npm init -y
Wrote to /test-appmetrics/package.json:

{
  "name": "test-appmetrics",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

# apk --no-cache --virtual build-dependencies add python make g++

# npm install appmetrics@4.0.1

I've added apk --no-cache --virtual build-dependencies add python make g++ because it was another issue with node-gyp, so after npm install appmetrics@4.0.1 I am receiving:

> appmetrics@4.0.1 install /test-appmetrics/node_modules/appmetrics
> node extract_all_binaries.js || node-gyp rebuild

Tue, 04 Dec 2018 15:55:31 GMT
********************************************************************************
You are installing the Node Application Metrics monitoring and profiling module.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
********************************************************************************
Unsupported version v10.14.1. Trying rebuild.
Falling back to node-gyp rebuild
make: Entering directory '/test-appmetrics/node_modules/appmetrics/build'
  ACTION binding_gyp_appmetrics_target_Set_appmetrics_reported_version_build_level Release/obj.target/appmetrics/geni/appmetrics.cpp
infile: ./src/appmetrics.cpp
outfile: /test-appmetrics/node_modules/appmetrics/build/Release/obj.target/appmetrics/geni/appmetrics.cpp
Replacing '"99\.99\.99\.29991231"' with '"4.0.1.201812041555"'
  CXX(target) Release/obj.target/appmetrics/geni/appmetrics.o
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:222,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:
../../nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)':
../../nan/nan_implementation_12_inl.h:340:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:5053:37: note: declared here
                 static Local<Value> New(Local<String> value));
                                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1066:53: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h:1080:74: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2659:21: note: declared here
                 int WriteUtf8(char* buffer, int length = -1,
                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/plugins/node/prof/watchdog.h:21:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:
../src/plugins/node/prof/compat-inl.h: In static member function 'static void compat::CpuProfiler::StartCpuProfiling(v8::Isolate*, v8::Local<v8::String>)':
../src/plugins/node/prof/compat-inl.h:302:34: warning: 'v8::CpuProfiler* v8::Isolate::GetCpuProfiler()' is deprecated: CpuProfiler should be created with CpuProfiler::New call. [-Wdeprecated-declarations]
   return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:7485:30: note: declared here
                 CpuProfiler* GetCpuProfiler());
                              ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/plugins/node/prof/watchdog.h:21:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:
../src/plugins/node/prof/compat-inl.h: In static member function 'static const v8::CpuProfile* compat::CpuProfiler::StopCpuProfiling(v8::Isolate*, v8::Local<v8::String>)':
../src/plugins/node/prof/compat-inl.h:312:34: warning: 'v8::CpuProfiler* v8::Isolate::GetCpuProfiler()' is deprecated: CpuProfiler should be created with CpuProfiler::New call. [-Wdeprecated-declarations]
   return isolate->GetCpuProfiler()->StopProfiling(title);
                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:7485:30: note: declared here
                 CpuProfiler* GetCpuProfiler());
                              ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:25:0:
../src/plugins/node/prof/watchdog.h: In function 'const char* watchdog::StartCpuProfiling(v8::Isolate*, uint64_t)':
../src/plugins/node/prof/watchdog.h:251:6: error: 'struct sigevent' has no member named '_sigev_un'; did you mean 'sigevent'?
   ev._sigev_un._tid = profiler_tid;
      ^~~~~~~~~
../src/plugins/node/prof/watchdog.h:252:21: error: 'SIGEV_THREAD_ID' was not declared in this scope
   ev.sigev_notify = SIGEV_THREAD_ID;
                     ^~~~~~~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string toStdString(v8::Local<v8::String>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:90:21: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
     s->WriteUtf8(buf);
                     ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2659:21: note: declared here
                 int WriteUtf8(char* buffer, int length = -1,
                     ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string* getModuleDir(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:187:126: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     std::string moduleFilename(toStdString(module->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked())->ToString()));
                                                                                                                              ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'v8::Local<v8::Object> getProcessObject()':
Release/obj.target/appmetrics/geni/appmetrics.cpp:192:121: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     return Nan::GetCurrentContext()->Global()->Get(Nan::New<String>(asciiString("process")).ToLocalChecked())->ToObject();
                                                                                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'std::__cxx11::string* findApplicationDir()':
Release/obj.target/appmetrics/geni/appmetrics.cpp:198:50: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         return getModuleDir(mainModule->ToObject());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE setOption(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:333:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:334:46: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     Local<String> value1 = info[1]->ToString();
                                              ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE getOption(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:344:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE spath(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:383:43: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<String> value = info[0]->ToString();
                                           ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'void emitMessage(uv_async_t*, int)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:435:44: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
         listener->callback->Call(argc, argv);
                                            ^
In file included from Release/obj.target/appmetrics/geni/appmetrics.cpp:22:0:
../../nan/nan.h:1655:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE nativeEmit(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:495:49: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value str(info[0]->ToString());
                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:495:50: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value str(info[0]->ToString());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:505:49: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value str(info[1]->ToString());
                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:505:50: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value str(info[1]->ToString());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE sendControlCommand(Nan::NAN_METHOD_ARGS_TYPE)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:531:54: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value topicArg(info[0]->ToString());
                                                      ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:531:55: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value topicArg(info[0]->ToString());
                                                       ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:532:56: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         String::Utf8Value commandArg(info[1]->ToString());
                                                        ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:532:57: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value commandArg(info[1]->ToString());
                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.14.1/include/node/node.h:63,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.14.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'bool isGlobalAgent(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:662:50: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Value> filename = parent->ToObject()->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked());
                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:663:97: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
         if (filename->IsString() && isAppMetricsFile("index.js", toStdString(filename->ToString()))) {
                                                                                                 ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:664:57: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> grandparent = parent->ToObject()->Get(Nan::New<String>(asciiString("parent")).ToLocalChecked());
                                                         ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:665:61: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> gpfilename = grandparent->ToObject()->Get(Nan::New<String>(asciiString("filename")).ToLocalChecked());
                                                             ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp:666:108: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             if (gpfilename->IsString() && isAppMetricsFile("launcher.js", toStdString(gpfilename->ToString()))) {
                                                                                                            ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'bool isGlobalAgentAlreadyLoaded(v8::Local<v8::Object>)':
Release/obj.target/appmetrics/geni/appmetrics.cpp:684:98: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
             if (entry->IsString() && isAppMetricsFile("launcher.js", toStdString(entry->ToString()))) {
                                                                                                  ^
In file included from /root/.node-gyp/10.14.1/include/node/node.h:63:0,
                 from Release/obj.target/appmetrics/geni/appmetrics.cpp:21:
/root/.node-gyp/10.14.1/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
make: *** [Makefile:282: Release/obj.target/appmetrics/geni/appmetrics.o] Error 1
make: Leaving directory '/test-appmetrics/node_modules/appmetrics/build'
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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.9.125-linuxkit
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 /test-appmetrics/node_modules/appmetrics
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN test-appmetrics@1.0.0 No description
npm WARN test-appmetrics@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! appmetrics@4.0.1 install: `node extract_all_binaries.js || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appmetrics@4.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-12-04T15_55_34_971Z-debug.log
/test-appmetrics #

Is it reproducible with docker on your machine as well?

I am using:

docker --version
Docker version 18.09.0, build 4d60db4

Hi @DanailMinchev,
I think you're experiencing the same problem as RuntimeTools/appmetrics#438 - can you try out the suggestions in that issue to see if it resolves your problem?

Thanks @mattcolegate I am still looking into the issue, I tried the suggestions, we do have LD_LIBRARY_PATH and if I add libc6-compat it fails with conflicting on other packages.

I will let you know if I find a fix

Thanks @mattcolegate I am still looking into the issue, I tried the suggestions, we do have LD_LIBRARY_PATH and if I add libc6-compat it fails with conflicting on other packages.

I will let you know if I find a fix

@DanailMinchev did you find a way to resolve this?

@daksrai No, I didn't resolve this, I don't have any working solution

same here

Same here

@DanailMinchev we have fixed a sigev_un error (see RuntimeTools/appmetrics#582 (comment)), which looks very similar to this one. Follow the steps in that link to verify whether this bug is fixed.