Node Version and npm version and tsc version: v10.13.0 and 6.10.3 and 3.6.3
Platform: Darwin mac19 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Module: npm ci or npm install for my project . ( could be an issue in bunyan or dtrace which is not a direct dependency in my project )
Os version : 10.14.6 macOS Mojave
Verbose output (from npm or node-gyp):
```
machine: src_code$ npm install
> dtrace-provider@0.8.7 install /Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
LD_LIBRARY_PATH=/Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider/build/Release/lib.host:/Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider/build/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; bash build.sh
+ buildUSDT
+ [[ -z '' ]]
+ [[ -z /Users/mm99468/SourceCode/cdm-founders ]]
+ unset MAKEFLAGS
++ node -e 'console.log(process.arch === '\''x64'\'' ? '\''x86_64'\'' : '\''i386'\'')'
+ export ARCH=x86_64
+ ARCH=x86_64
+ echo 'Building libusdt for x86_64'
Building libusdt for x86_64
+ [[ -z '' ]]
++ which gmake
+ MAKE=
+ [[ -z '' ]]
+ MAKE=make
+ make -C libusdt clean all
rm -f *.gch
rm -f *.o
rm -f libusdt.a
rm -f test_usdt
rm -f test_usdt32
rm -f test_usdt64
rm -f test_mem_usage
gcc -O2 -Wall -arch x86_64 -c -o usdt.o usdt.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c
gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s
gcc -O2 -Wall -arch x86_64 -c -o usdt_probe.o usdt_probe.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof.o usdt_dof.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c
rm -f libusdt.a
ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o
ranlib libusdt.a
+ LIBUSDT_STATUS=0
+ [[ 0 -ne 0 ]]
+ buildNDTP
+ [[ -z '' ]]
+ [[ -z /Users/mm99468/SourceCode/cdm-founders ]]
+ node-gyp rebuild -C src
c++ '-DNODE_GYP_MODULE_NAME=DTraceProviderBindings' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/src -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/openssl/config -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/openssl/openssl/include -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/uv/include -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/zlib -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/v8/include -I../../libusdt -I../../../nan -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_provider.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_provider.o ../dtrace_provider.cc
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:222:
In file included from ../../../nan/nan_converters.h:67:
../../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
X(Boolean)
^
../../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext()) \
^
:208:1: note: expanded from here
ToBoolean
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2536:3: note: 'ToBoolean' has been explicitly marked deprecated here
V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:222:
In file included from ../../../nan/nan_converters.h:67:
../../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
X(bool, Boolean)
^
../../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext()); \
^
:215:1: note: expanded from here
BooleanValue
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2574:3: note: 'BooleanValue' has been explicitly marked deprecated here
V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:223:
In file included from ../../../nan/nan_new.h:189:
../../../nan/nan_implementation_12_inl.h:356:37: error: too few arguments to function call, expected 2, have 1
return v8::StringObject::New(value).As();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:5394:3: note: 'New' declared here
static Local New(Isolate* isolate, Local value);
^
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:223:
In file included from ../../../nan/nan_new.h:189:
../../../nan/nan_implementation_12_inl.h:356:58: error: expected '(' for function-style cast or type construction
return v8::StringObject::New(value).As();
~~~~~~~~~~~~~~~~^
../../../nan/nan_implementation_12_inl.h:356:60: error: expected expression
return v8::StringObject::New(value).As();
^
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:2722:
../../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from ../dtrace_provider.cc:1:
In file included from ../dtrace_provider.h:1:
In file included from ../../../nan/nan.h:2722:
../../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent >'
assert(wrap->handle_.IsNearDeath());
~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
../dtrace_provider.cc:35:85: error: too few arguments to function call, single argument 'context' was not specified
target->Set(Nan::New("DTraceProvider").ToLocalChecked(), t->GetFunction());
~~~~~~~~~~~~~~ ^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:5961:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../dtrace_provider.cc:52:37: error: no matching member function for call to 'ToString'
String::Utf8Value name(info[0]->ToString());
~~~~~~~~~^~~~~~~~
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2541:44: note: candidate function not viable: requires single argument 'context', but no arguments were
provided
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2557:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were
provided
Local ToString(Isolate* isolate) const);
^
../dtrace_provider.cc:60:38: error: no matching member function for call to 'ToString'
String::Utf8Value mod(info[1]->ToString());
~~~~~~~~~^~~~~~~~
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2541:44: note: candidate function not viable: requires single argument 'context', but no arguments were
provided
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2557:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were
provided
Local ToString(Isolate* isolate) const);
^
../dtrace_provider.cc:88:84: error: too few arguments to function call, single argument 'context' was not specified
Nan::New(DTraceProbe::constructor_template)->GetFunction();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:5961:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../dtrace_provider.cc:92:67: error: no matching member function for call to 'ToObject'
DTraceProbe *probe = Nan::ObjectWrap::Unwrap(pd->ToObject());
~~~~^~~~~~~~
/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2545:44: note: candidate function not viable: requires single argument 'context', but no arguments were
provided
V8_WARN_UNUSED_RESULT MaybeLocal
Build with this throws the following error
> src_code@2.6.1 build:compile <path>
> tsc -p tsconfig.json
error TS2688: Cannot find type definition file for 'bunyan'.
error TS2688: Cannot find type definition file for 'restify'.
error TS2688: Cannot find type definition file for 'spdy'.
error TS2688: Cannot find type definition file for 'validator'.
v10.13.0
and6.10.3
and3.6.3
npm ci
ornpm install
for my project . ( could be an issue in bunyan or dtrace which is not a direct dependency in my project )Verbose output (from npm or node-gyp):
``` machine: src_code$ npm install > dtrace-provider@0.8.7 install /Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider > node-gyp rebuild || node suppress-error.js LD_LIBRARY_PATH=/Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider/build/Release/lib.host:/Users/mm99468/SourceCode/cdm-founders/node_modules/dtrace-provider/build/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; bash build.sh + buildUSDT + [[ -z '' ]] + [[ -z /Users/mm99468/SourceCode/cdm-founders ]] + unset MAKEFLAGS ++ node -e 'console.log(process.arch === '\''x64'\'' ? '\''x86_64'\'' : '\''i386'\'')' + export ARCH=x86_64 + ARCH=x86_64 + echo 'Building libusdt for x86_64' Building libusdt for x86_64 + [[ -z '' ]] ++ which gmake + MAKE= + [[ -z '' ]] + MAKE=make + make -C libusdt clean all rm -f *.gch rm -f *.o rm -f libusdt.a rm -f test_usdt rm -f test_usdt32 rm -f test_usdt64 rm -f test_mem_usage gcc -O2 -Wall -arch x86_64 -c -o usdt.o usdt.c gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s gcc -O2 -Wall -arch x86_64 -c -o usdt_probe.o usdt_probe.c gcc -O2 -Wall -arch x86_64 -c -o usdt_dof.o usdt_dof.c gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c rm -f libusdt.a ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o ranlib libusdt.a + LIBUSDT_STATUS=0 + [[ 0 -ne 0 ]] + buildNDTP + [[ -z '' ]] + [[ -z /Users/mm99468/SourceCode/cdm-founders ]] + node-gyp rebuild -C src c++ '-DNODE_GYP_MODULE_NAME=DTraceProviderBindings' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/include/node -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/src -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/openssl/config -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/openssl/openssl/include -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/uv/include -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/zlib -I/Users/mm99468/Library/Caches/node-gyp/12.10.0/deps/v8/include -I../../libusdt -I../../../nan -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_provider.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_provider.o ../dtrace_provider.cc In file included from ../dtrace_provider.cc:1: In file included from ../dtrace_provider.h:1: In file included from ../../../nan/nan.h:222: In file included from ../../../nan/nan_converters.h:67: ../../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations] X(Boolean) ^ ../../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X' val->To ## TYPE(isolate->GetCurrentContext()) \ ^Build with this throws the following error
package-lock - secondary dependency looks like