node-embed icon indicating copy to clipboard operation
node-embed copied to clipboard

Build fails

Open austineinter opened this issue 6 years ago • 0 comments

I tried to build as per steps

  1. I downloaded and built nodejs
  2. nodejs build successful
  3. Then I tried to run mkmf.js using command "node mkmf.js node mkmf.js /usr/local/src/node-master"
  4. Looks it did not find node_lib.target.mk
  5. After checking nodejs source, modified node_lib.target.mk to libnode.target.mk
  6. Then I was able to run command "node mkmf.js node mkmf.js /usr/local/src/node-master" successfully
  7. Then I tried to build using command "make"
  8. I got so many errors, few are as below

-fno-rtti -fno-exceptions -std=gnu++1y -c node.cc -o node.o node.cc:41:0: warning: "READONLY_PROPERTY" redefined #define READONLY_PROPERTY(obj, str, var) \

In file included from /usr/local/src/node-master/src/tracing/traced_value.h:9:0, from node.cc:26: /usr/local/src/node-master/src/util.h:598:0: note: this is the location of the previous definition #define READONLY_PROPERTY(obj, name, value) \

node.cc:158:3: error: ‘NodePlatform’ does not name a type; did you mean ‘FreePlatform’? NodePlatform* Platform() { ^~~~~~~~~~~~ FreePlatform node.cc:164:3: error: ‘NodePlatform’ does not name a type; did you mean ‘FreePlatform’? NodePlatform* platform_; ^~~~~~~~~~~~ FreePlatform node.cc: In member function ‘void node::::Initialize(int)’: node.cc:98:14: error: ‘node::tracing::TraceEventHelper’ has not been declared tracing::TraceEventHelper::SetTracingController(controller); ^~~~~~~~~~~~~~~~ node.cc:101:5: error: ‘platform_’ was not declared in this scope platform_ = new NodePlatform(thread_pool_size, controller); ^~~~~~~~~ node.cc:101:21: error: expected type-specifier before ‘NodePlatform’ platform_ = new NodePlatform(thread_pool_size, controller); ^~~~~~~~~~~~ node.cc: In member function ‘void node::::Dispose()’: node.cc:106:5: error: ‘platform_’ was not declared in this scope platform_->Shutdown(); ^~~~~~~~~ node.cc:107:12: error: type ‘’ argument given to ‘delete’, expected pointer delete platform_; ^~~~~~~~~ node.cc: In member function ‘void node::::DrainVMTasks(v8::Isolate*)’: node.cc:115:5: error: ‘platform_’ was not declared in this scope platform_->DrainTasks(isolate); ^~~~~~~~~ node.cc: In member function ‘void node::::CancelVMTasks(v8::Isolate*)’: node.cc:119:5: error: ‘platform_’ was not declared in this scope platform_->CancelPendingDelayedTasks(isolate); ^~~~~~~~~ node.cc: In member function ‘bool node::::StartInspector(node::Environment*, const char*, std::shared_ptrnode::DebugOptions)’: node.cc:129:65: error: no matching function for call to ‘node::inspector::Agent::Start(const char*, std::shared_ptrnode::DebugOptions&, bool)’ script_path == nullptr ? "" : script_path, options, true);

========

Is it because of version mismatch. Do you have a compatible code for node 12.x release. For which version of node this package is compatible?

Thanks

austineinter avatar Aug 15 '19 04:08 austineinter