X Tutup
The Wayback Machine - https://web.archive.org/web/20200917220535/https://github.com/nodejs/docker-node/issues/1239
Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-gyp build error of Edge-js on Node:11-alpine #1239

Open
DileepaRath opened this issue Apr 3, 2020 · 2 comments
Open

Node-gyp build error of Edge-js on Node:11-alpine #1239

DileepaRath opened this issue Apr 3, 2020 · 2 comments

Comments

@DileepaRath
Copy link

@DileepaRath DileepaRath commented Apr 3, 2020

I'm struggling with building edge-js on Node:11-alpine. I might be missing something as I'm new to both node & docker, but after 3 days of searching could not find any lead.
I get a bunch of warnings and below exceptions with final build error.

nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:495:80: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::SetPrototype(v8::Local<v8::Context>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->SetPrototype(Nan::GetCurrentContext(), v8::Exception::Error(message));

nestjs-back | ../src/common/utils.cpp:24:120: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::SetPrototype(v8::Local<v8::Context>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |   exception->SetPrototype(Nan::GetCurrentContext(), v8::Exception::Error(Nan::New<v8::String>(message).ToLocalChecked()));

nestjs-back | ../src/CoreCLREmbedding/json/casablanca/include/cpprest/asyncrt_utils.h:489:47: error: 'timeval' does not name a type; did you mean 'timespan'?
nestjs-back |      static datetime timeval_to_datetime(const timeval &time);

nestjs-back | make: *** [edge_coreclr.target.mk:127: Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_muxer.o] Error 1
nestjs-back | gyp ERR! build error

I followed #282 and
modified my Dockerfile as follows:

# base image
FROM node:11-alpine

# create workdir
RUN mkdir /usr/app 

# workdir set
WORKDIR /usr/app

# copy all files to container
COPY . . 

# install dependencies
RUN apk --no-cache --update --virtual build-dependencies add \
        python \
        make \
        g++ \
    && npm install \
    && npm run typeorm:run\
    && npm run start:dev\
    && apk del build-dependencies

On windows I have no problem, but I can't use Docker due to this build error.
Any help is highly appreciated...
Below is the full error dump.

nestjs-back | make: Entering directory '/usr/app/node_modules/edge-js/build'
nestjs-back |   TOUCH Release/obj.target/edge_nativeclr.stamp
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/common/v8synchronizationcontext.o
nestjs-back | In file included from ../src/common/edge_common.h:8,
nestjs-back |                  from ../src/common/v8synchronizationcontext.cpp:17:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | ../src/common/v8synchronizationcontext.cpp: In static member function 'static void V8SynchronizationContext::Initialize()':
nestjs-back | ../src/common/v8synchronizationcontext.cpp:43:103: warning: cast between incompatible function types from 'void (*)(uv_async_t*, int)' {aka 'void (*)(uv_async_s*, int)'} to 'uv_async_cb' {aka 'void (*)(uv_async_s*)'} [-Wcast-function-type]
nestjs-back |      uv_async_init(uv_default_loop(), &V8SynchronizationContext::uv_edge_async->uv_async, (uv_async_cb)continueOnV8Thread);
nestjs-back |                                                                                                        ^~~~~~~~~~~~~~~~~~
nestjs-back | ../src/common/v8synchronizationcontext.cpp: In static member function 'static uv_edge_async_t* V8SynchronizationContext::RegisterAction(uv_async_edge_cb, void*)':
nestjs-back | ../src/common/v8synchronizationcontext.cpp:69:81: warning: cast between incompatible function types from 'void (*)(uv_async_t*, int)' {aka 'void (*)(uv_async_s*, int)'} to 'uv_async_cb' {aka 'void (*)(uv_async_s*)'} [-Wcast-function-type]
nestjs-back |          uv_async_init(uv_default_loop(), &uv_edge_async->uv_async, (uv_async_cb)continueOnV8Thread);
nestjs-back |                                                                                  ^~~~~~~~~~~~~~~~~~
nestjs-back | In file included from ../src/common/edge_common.h:4,
nestjs-back |                  from ../src/common/v8synchronizationcontext.cpp:17:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/common/callbackhelper.o
nestjs-back | In file included from ../src/common/edge_common.h:8,
nestjs-back |                  from ../src/common/callbackhelper.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | In file included from ../src/common/edge_common.h:4,
nestjs-back |                  from ../src/common/callbackhelper.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/common/edge.o
nestjs-back | In file included from ../src/common/edge_common.h:8,
nestjs-back |                  from ../src/common/edge.cpp:5:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | In file included from ../src/common/edge_common.h:5,
nestjs-back |                  from ../src/common/edge.cpp:5:
nestjs-back | ../src/common/edge.cpp: At global scope:
nestjs-back | /root/.node-gyp/11.15.0/include/node/node.h:544:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
nestjs-back |        (node::addon_register_func) (regfunc),                          \
nestjs-back |                                            ^
nestjs-back | /root/.node-gyp/11.15.0/include/node/node.h:578:3: note: in expansion of macro 'NODE_MODULE_X'
nestjs-back |    NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
nestjs-back |    ^~~~~~~~~~~~~
nestjs-back | ../src/common/edge.cpp:84:1: note: in expansion of macro 'NODE_MODULE'
nestjs-back |  NODE_MODULE(edge_coreclr, init);
nestjs-back |  ^~~~~~~~~~~
nestjs-back | In file included from ../src/common/edge_common.h:4,
nestjs-back |                  from ../src/common/edge.cpp:5:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrembedding.o
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrembedding.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | ../src/CoreCLREmbedding/coreclrembedding.cpp: In static member function 'static HRESULT CoreClrEmbedding::Initialize(BOOL)':
nestjs-back | ../src/CoreCLREmbedding/coreclrembedding.cpp:581:7: warning: variable 'foundEdgeJs' set but not used [-Wunused-but-set-variable]
nestjs-back |   bool foundEdgeJs = false;
nestjs-back |        ^~~~~~~~~~~
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrembedding.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrfunc.o
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp: In static member function 'static v8::Local<v8::Value> CoreClrFunc::MarshalCLRToV8(void*, int)':
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:474:110: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->Set(Nan::GetCurrentContext(), i, MarshalCLRToV8(arrayData->itemValues[i], arrayData->itemTypes[i]));
nestjs-back |                                                                                                               ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3358:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
nestjs-back |                                      ^~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:487:184: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->Set(Nan::GetCurrentContext(), Nan::New<v8::String>(objectData->propertyNames[i]).ToLocalChecked(), MarshalCLRToV8(objectData->propertyData[i], objectData->propertyTypes[i]));
nestjs-back |                                                                                                                                                                                         ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3353:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
nestjs-back |                                      ^~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:495:80: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::SetPrototype(v8::Local<v8::Context>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->SetPrototype(Nan::GetCurrentContext(), v8::Exception::Error(message));
nestjs-back |                                                                                 ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3548:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
nestjs-back |                                      ^~~~~~~~~~~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:496:99: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->Set(Nan::GetCurrentContext(), Nan::New<v8::String>("message").ToLocalChecked(), message);
nestjs-back |                                                                                                    ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3353:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
nestjs-back |                                      ^~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:497:93: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |     result->Set(Nan::GetCurrentContext(), Nan::New<v8::String>("name").ToLocalChecked(), name);
nestjs-back |                                                                                              ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3353:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
nestjs-back |                                      ^~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | In file included from ../../nan/nan.h:2784,
nestjs-back |                  from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | ../../nan/nan_weak.h: In instantiation of 'Nan::WeakCallbackInfo<P>::WeakCallbackInfo(Nan::Persistent<v8::Value>*, Nan::WeakCallbackInfo<P>::Callback, void*, void*, void*) [with T = void; Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<void>&)]':
nestjs-back | ../../nan/nan_weak.h:264:12:   required from 'void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = void; T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<void>&); Nan::WeakCallbackType = v8::WeakCallbackType]'
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:71:104:   required from here
nestjs-back | ../../nan/nan_weak.h:58:16: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class v8::Persistent<v8::Value>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
nestjs-back |      std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>));
nestjs-back |      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:784:35: note: 'class v8::Persistent<v8::Value>' declared here
nestjs-back |  template <class T, class M> class Persistent : public PersistentBase<T> {
nestjs-back |                                    ^~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::WeakCallbackInfo<void>; T = v8::Function; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<void> >&)]':
nestjs-back | ../../nan/nan_weak.h:268:35:   required from 'void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = void; T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<void>&); Nan::WeakCallbackType = v8::WeakCallbackType]'
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:71:104:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::WeakCallbackInfo<void> >::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<void> >&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp: In static member function 'static char* CoreClrFunc::CopyV8StringBytes(v8::Local<v8::String>)':
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:282:9: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
nestjs-back |   strncpy(destinationBytes, sourceBytes, sourceLength);
nestjs-back |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | ../src/CoreCLREmbedding/coreclrfunc.cpp:278:27: note: length computed here
nestjs-back |   int sourceLength = strlen(sourceBytes);
nestjs-back |                      ~~~~~~^~~~~~~~~~~~~
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrnodejsfunc.o
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrnodejsfunc.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrnodejsfunc.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrfuncinvokecontext.o
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfuncinvokecontext.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrfuncinvokecontext.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrnodejsfuncinvokecontext.o
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrnodejsfuncinvokecontext.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | In file included from ../src/CoreCLREmbedding/../common/edge_common.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/edge.h:4,
nestjs-back |                  from ../src/CoreCLREmbedding/coreclrnodejsfuncinvokecontext.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/common/utils.o
nestjs-back | In file included from ../src/common/edge_common.h:8,
nestjs-back |                  from ../src/common/utils.cpp:1:
nestjs-back | ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
nestjs-back | ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
nestjs-back |      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
nestjs-back |                                                               ^
nestjs-back | ../src/common/utils.cpp: In function 'v8::Local<v8::Value> throwV8Exception(const char*, ...)':
nestjs-back | ../src/common/utils.cpp:24:120: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::SetPrototype(v8::Local<v8::Context>, v8::Local<v8::Value>)', declared with attribute warn_unused_result [-Wunused-result]
nestjs-back |   exception->SetPrototype(Nan::GetCurrentContext(), v8::Exception::Error(Nan::New<v8::String>(message).ToLocalChecked()));
nestjs-back |                                                                                                                         ^
nestjs-back | In file included from ../src/common/edge_common.h:4,
nestjs-back |                  from ../src/common/utils.cpp:1:
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:3548:37: note: declared here
nestjs-back |    V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
nestjs-back |                                      ^~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
nestjs-back | /root/.node-gyp/11.15.0/include/node/node_object_wrap.h:84:78:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back |                 reinterpret_cast<Callback>(callback), type);
nestjs-back |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
nestjs-back | ../../nan/nan_object_wrap.h:65:61:   required from here
nestjs-back | /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
nestjs-back | At global scope:
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/pal/pal_utils.o
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/pal/trace.o
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_ver.o
nestjs-back |   CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_muxer.o
nestjs-back | In file included from ../src/CoreCLREmbedding/json/casablanca/include/cpprest/json.h:37,
nestjs-back |                  from ../src/CoreCLREmbedding/fxr/../host/runtime_config.h:10,
nestjs-back |                  from ../src/CoreCLREmbedding/fxr/../host/libhost.h:8,
nestjs-back |                  from ../src/CoreCLREmbedding/fxr/fx_muxer.cpp:7:
nestjs-back | ../src/CoreCLREmbedding/json/casablanca/include/cpprest/asyncrt_utils.h:489:47: error: 'timeval' does not name a type; did you mean 'timespan'?
nestjs-back |      static datetime timeval_to_datetime(const timeval &time);
nestjs-back |                                                ^~~~~~~
nestjs-back |                                                timespan
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-redundant-move'
nestjs-back | cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
nestjs-back | make: Leaving directory '/usr/app/node_modules/edge-js/build'
nestjs-back | make: *** [edge_coreclr.target.mk:127: Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_muxer.o] Error 1
nestjs-back | gyp ERR! build error
nestjs-back | gyp ERR! stack Error: `make` failed with exit code: 2
nestjs-back | gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
nestjs-back | gyp ERR! stack     at ChildProcess.emit (events.js:193:13)
nestjs-back | gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
nestjs-back | gyp ERR! System Linux 4.19.76-linuxkit
nestjs-back | gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
nestjs-back | gyp ERR! cwd /usr/app/node_modules/edge-js
nestjs-back | gyp ERR! node -v v11.15.0
nestjs-back | gyp ERR! node-gyp -v v3.8.0
nestjs-back | gyp ERR! not ok
@nschonni
Copy link
Member

@nschonni nschonni commented Apr 3, 2020

Few things:

  • Node 11 support was dropped awhile ago. Try 10 or 12 as the base version
  • I don't think dotnet core supported alpine till recently, so you may want to use a different distro like buster or stretch

You'll probably want to look through that projects issues https://github.com/agracio/edge-js/issues since there seems to be many build issues, so this isn't really related to the node images.

@DileepaRath
Copy link
Author

@DileepaRath DileepaRath commented Apr 6, 2020

Thanks @nschonni for the reply.
As you mentioned Alpine may not be the best choice.
We selected it due to light weight and thought it is relatively faster.
But may not be the best option when integrating HW (with Edge.js I'm controlling a relay switch).

I'm going to try with node:13 which is also used in our front end.
Will update the results later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup