Advertisement
juuuuuu

serial port nodejs beagleboneBlack

Aug 24th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 51.78 KB | None | 0 0
  1. Debian GNU/Linux 7
  2.  
  3. BeagleBoard.org BeagleBone Debian Image 2014-05-14
  4.  
  5. Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
  6. Last login: Wed Aug 24 08:40:17 2016 from surface-ju.home
  7. root@beaglebone:~# cd /electronWorking/
  8. root@beaglebone:/electronWorking# npm install bindings async optimist node-gyp sf
  9. npm WARN prefer global node-gyp@3.4.0 should be installed with -g
  10. your-app@0.1.0 /electronWorking
  11. +-- async@2.0.1
  12. | `-- lodash@4.15.0
  13. +-- bindings@1.2.1
  14. +-- node-gyp@3.4.0
  15. | +-- fstream@1.0.10
  16. | +-- glob@7.0.5
  17. | +-- nopt@3.0.6
  18. | | `-- abbrev@1.0.9
  19. | +-- npmlog@3.1.2
  20. | | +-- are-we-there-yet@1.1.2
  21. | | | `-- delegates@1.0.0
  22. | | +-- console-control-strings@1.1.0
  23. | | +-- gauge@2.6.0
  24. | | | +-- aproba@1.0.4
  25. | | | +-- has-color@0.1.7
  26. | | | +-- has-unicode@2.0.1
  27. | | | `-- wide-align@1.1.0
  28. | | `-- set-blocking@2.0.0
  29. | +-- osenv@0.1.3
  30. | | +-- os-homedir@1.0.1
  31. | | `-- os-tmpdir@1.0.1
  32. | +-- path-array@1.0.1
  33. | | `-- array-index@1.0.0
  34. | |   `-- es6-symbol@3.1.0
  35. | |     +-- d@0.1.1
  36. | |     `-- es5-ext@0.10.12
  37. | |       `-- es6-iterator@2.0.0
  38. | +-- request@2.74.0
  39. | | `-- form-data@1.0.0-rc4
  40. | |   `-- async@1.5.2
  41. | +-- tar@2.2.1
  42. | | `-- block-stream@0.0.9
  43. | `-- which@1.2.10
  44. |   `-- isexe@1.1.2
  45. +-- optimist@0.6.1
  46. | +-- minimist@0.0.10
  47. | `-- wordwrap@0.0.3
  48. `-- sf@0.1.8
  49.  
  50. npm WARN your-app@0.1.0 No description
  51. npm WARN your-app@0.1.0 No repository field.
  52. npm WARN your-app@0.1.0 No license field.
  53. root@beaglebone:/electronWorking# npm install serialport
  54.  
  55. > serialport@4.0.1 install /electronWorking/node_modules/serialport
  56. > node-pre-gyp install --fallback-to-build
  57.  
  58. node-pre-gyp ERR! Tried to download: https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.1/serialport-v4.0.1-node-v48-linux-arm.tar.gz
  59. node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.1 and node@6.3.1 (node-v48 ABI) (falling back to source compile with node-gyp)
  60. make: Entering directory `/electronWorking/node_modules/serialport/build'
  61.  CXX(target) Release/obj.target/serialport/src/serialport.o
  62. In file included from ../src/./serialport.h:7:0,
  63.                 from ../src/serialport.cpp:1:
  64. ../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
  65. In file included from /root/.node-gyp/6.3.1/include/node/node.h:42:0,
  66.                 from ../../nan/nan.h:47,
  67.                 from ../src/./serialport.h:7,
  68.                 from ../src/serialport.cpp:1:
  69. /root/.node-gyp/6.3.1/include/node/v8.h:341:1: error: expected unqualified-id before 'using'
  70. /root/.node-gyp/6.3.1/include/node/v8.h:477:1: error: expected unqualified-id before 'using'
  71. /root/.node-gyp/6.3.1/include/node/v8.h:871:1: error: expected unqualified-id before 'using'
  72. In file included from ../../nan/nan.h:190:0,
  73.                 from ../src/./serialport.h:7,
  74.                 from ../src/serialport.cpp:1:
  75. ../../nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using'
  76. ../../nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using'
  77. ../../nan/nan_maybe_43_inl.h:19:8: error: 'Maybe' does not name a type
  78. ../../nan/nan_maybe_43_inl.h:24:8: error: 'Maybe' does not name a type
  79. ../../nan/nan_maybe_43_inl.h:31:1: error: 'MaybeLocal' does not name a type
  80. ../../nan/nan_maybe_43_inl.h:36:1: error: 'MaybeLocal' does not name a type
  81. ../../nan/nan_maybe_43_inl.h:41:1: error: 'Maybe' does not name a type
  82. ../../nan/nan_maybe_43_inl.h:46:1: error: 'MaybeLocal' does not name a type
  83. ../../nan/nan_maybe_43_inl.h:51:1: error: 'MaybeLocal' does not name a type
  84. ../../nan/nan_maybe_43_inl.h:59:1: error: 'MaybeLocal' does not name a type
  85. ../../nan/nan_maybe_43_inl.h:64:8: error: 'MaybeLocal' does not name a type
  86. ../../nan/nan_maybe_43_inl.h:69:8: error: 'Maybe' does not name a type
  87. ../../nan/nan_maybe_43_inl.h:76:8: error: 'Maybe' does not name a type
  88. ../../nan/nan_maybe_43_inl.h:83:8: error: 'Maybe' does not name a type
  89. ../../nan/nan_maybe_43_inl.h:91:8: error: 'MaybeLocal' does not name a type
  90. ../../nan/nan_maybe_43_inl.h:98:1: error: 'MaybeLocal' does not name a type
  91. ../../nan/nan_maybe_43_inl.h:108:8: error: 'Maybe' does not name a type
  92. ../../nan/nan_maybe_43_inl.h:114:8: error: 'Maybe' does not name a type
  93. ../../nan/nan_maybe_43_inl.h:118:8: error: 'Maybe' does not name a type
  94. ../../nan/nan_maybe_43_inl.h:125:1: error: 'Maybe' does not name a type
  95. ../../nan/nan_maybe_43_inl.h:130:1: error: 'MaybeLocal' does not name a type
  96. ../../nan/nan_maybe_43_inl.h:135:1: error: 'MaybeLocal' does not name a type
  97. ../../nan/nan_maybe_43_inl.h:139:8: error: 'Maybe' does not name a type
  98. ../../nan/nan_maybe_43_inl.h:145:8: error: 'MaybeLocal' does not name a type
  99. ../../nan/nan_maybe_43_inl.h:150:8: error: 'Maybe' does not name a type
  100. ../../nan/nan_maybe_43_inl.h:156:8: error: 'Maybe' does not name a type
  101. ../../nan/nan_maybe_43_inl.h:162:8: error: 'Maybe' does not name a type
  102. ../../nan/nan_maybe_43_inl.h:168:8: error: 'Maybe' does not name a type
  103. ../../nan/nan_maybe_43_inl.h:174:8: error: 'MaybeLocal' does not name a type
  104. ../../nan/nan_maybe_43_inl.h:180:8: error: 'MaybeLocal' does not name a type
  105. ../../nan/nan_maybe_43_inl.h:186:8: error: 'MaybeLocal' does not name a type
  106. ../../nan/nan_maybe_43_inl.h:194:8: error: 'MaybeLocal' does not name a type
  107. ../../nan/nan_maybe_43_inl.h:201:1: error: 'MaybeLocal' does not name a type
  108. ../../nan/nan_maybe_43_inl.h:205:8: error: 'Maybe' does not name a type
  109. ../../nan/nan_maybe_43_inl.h:209:8: error: 'Maybe' does not name a type
  110. ../../nan/nan_maybe_43_inl.h:213:8: error: 'Maybe' does not name a type
  111. ../../nan/nan_maybe_43_inl.h:217:8: error: 'MaybeLocal' does not name a type
  112. ../../nan/nan_maybe_43_inl.h:237:8: error: 'MaybeLocal' does not name a type
  113. In file included from ../../nan/nan.h:195:0,
  114.                 from ../src/./serialport.h:7,
  115.                 from ../src/serialport.cpp:1:
  116. ../../nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type
  117. ../../nan/nan_converters.h:16:56: error: 'Maybe' does not name a type
  118. ../../nan/nan_converters.h:26:1: error: 'return_t' does not name a type
  119. ../../nan/nan_converters.h:27:1: error: 'return_t' does not name a type
  120. ../../nan/nan_converters.h:28:1: error: 'return_t' does not name a type
  121. ../../nan/nan_converters.h:29:1: error: 'return_t' does not name a type
  122. ../../nan/nan_converters.h:30:1: error: 'return_t' does not name a type
  123. ../../nan/nan_converters.h:31:1: error: 'return_t' does not name a type
  124. ../../nan/nan_converters.h:32:1: error: 'return_t' does not name a type
  125. ../../nan/nan_converters.h:42:1: error: 'return_t' does not name a type
  126. ../../nan/nan_converters.h:43:1: error: 'return_t' does not name a type
  127. ../../nan/nan_converters.h:44:1: error: 'return_t' does not name a type
  128. ../../nan/nan_converters.h:45:1: error: 'return_t' does not name a type
  129. ../../nan/nan_converters.h:46:1: error: 'return_t' does not name a type
  130. In file included from ../../nan/nan_converters.h:59:0,
  131.                 from ../../nan/nan.h:195,
  132.                 from ../src/./serialport.h:7,
  133.                 from ../src/serialport.cpp:1:
  134. ../../nan/nan_converters_43_inl.h:18:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type
  135. ../../nan/nan_converters_43_inl.h:19:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type
  136. ../../nan/nan_converters_43_inl.h:20:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type
  137. ../../nan/nan_converters_43_inl.h:21:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type
  138. ../../nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type
  139. ../../nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type
  140. ../../nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type
  141. ../../nan/nan_converters_43_inl.h:34:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type
  142. ../../nan/nan_converters_43_inl.h:35:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type
  143. ../../nan/nan_converters_43_inl.h:36:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long long int>' does not name a type
  144. ../../nan/nan_converters_43_inl.h:37:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type
  145. ../../nan/nan_converters_43_inl.h:38:1: error: 'return_t' in 'struct Nan::imp::ToFactory<int>' does not name a type
  146. In file included from ../../nan/nan.h:196:0,
  147.                 from ../src/./serialport.h:7,
  148.                 from ../src/serialport.cpp:1:
  149. ../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]':
  150. ../../nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
  151. ../../nan/nan_new.h:21:32: note: candidate is:
  152. ../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
  153. ../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
  154. ../../nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
  155. ../../nan/nan_new.h:28:30: note: candidate is:
  156. ../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
  157. ../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]':
  158. ../../nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
  159. ../../nan/nan_new.h:35:31: note: candidate is:
  160. ../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
  161. ../../nan/nan_new.h: At global scope:
  162. ../../nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type
  163. ../../nan/nan_new.h:75:17: error: 'return_t' does not name a type
  164. ../../nan/nan_new.h:141:17: error: 'return_t' does not name a type
  165. ../../nan/nan_new.h:147:17: error: 'return_t' does not name a type
  166. ../../nan/nan_new.h:148:17: error: 'return_t' does not name a type
  167. ../../nan/nan_new.h:160:17: error: 'return_t' does not name a type
  168. ../../nan/nan_new.h:161:17: error: 'return_t' does not name a type
  169. ../../nan/nan_new.h:162:17: error: 'return_t' does not name a type
  170. ../../nan/nan_new.h:163:17: error: 'return_t' does not name a type
  171. ../../nan/nan_new.h:165:17: error: 'return_t' does not name a type
  172. ../../nan/nan_new.h:166:17: error: 'return_t' does not name a type
  173. ../../nan/nan_new.h:182:17: error: 'return_t' does not name a type
  174. ../../nan/nan_new.h:183:17: error: 'return_t' does not name a type
  175. In file included from ../../nan/nan_new.h:189:0,
  176.                 from ../../nan/nan.h:196,
  177.                 from ../src/./serialport.h:7,
  178.                 from ../src/serialport.cpp:1:
  179. ../../nan/nan_implementation_12_inl.h:61:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type
  180. ../../nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)':
  181. ../../nan/nan_implementation_12_inl.h:95:46: error: 'NewInstance' was not declared in this scope
  182. ../../nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)':
  183. ../../nan/nan_implementation_12_inl.h:123:48: error: 'NewInstance' was not declared in this scope
  184. ../../nan/nan_implementation_12_inl.h: At global scope:
  185. ../../nan/nan_implementation_12_inl.h:202:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
  186. ../../nan/nan_implementation_12_inl.h:221:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
  187. ../../nan/nan_implementation_12_inl.h:227:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
  188. ../../nan/nan_implementation_12_inl.h:259:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  189. ../../nan/nan_implementation_12_inl.h:267:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  190. ../../nan/nan_implementation_12_inl.h:273:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  191. ../../nan/nan_implementation_12_inl.h:280:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  192. ../../nan/nan_implementation_12_inl.h:286:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  193. ../../nan/nan_implementation_12_inl.h:291:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  194. ../../nan/nan_implementation_12_inl.h:352:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
  195. ../../nan/nan_implementation_12_inl.h:359:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
  196. In file included from ../../nan/nan.h:196:0,
  197.                 from ../src/./serialport.h:7,
  198.                 from ../src/serialport.cpp:1:
  199. ../../nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  200. ../../nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  201. ../../nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  202. ../../nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  203. ../../nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  204. ../../nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  205. ../../nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
  206. ../../nan/nan_new.h:335:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
  207. In file included from ../src/./serialport.h:7:0,
  208.                 from ../src/serialport.cpp:1:
  209. ../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)':
  210. ../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  211. ../../nan/nan.h: In function 'void Nan::ThrowError(const char*)':
  212. ../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  213. ../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)':
  214. ../../nan/nan.h:656:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  215. ../../nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)':
  216. ../../nan/nan.h:656:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  217. ../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)':
  218. ../../nan/nan.h:657:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  219. ../../nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)':
  220. ../../nan/nan.h:657:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  221. ../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)':
  222. ../../nan/nan.h:658:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  223. ../../nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)':
  224. ../../nan/nan.h:658:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  225. ../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)':
  226. ../../nan/nan.h:659:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  227. ../../nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)':
  228. ../../nan/nan.h:659:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  229. ../../nan/nan.h: At global scope:
  230. ../../nan/nan.h:667:10: error: 'MaybeLocal' does not name a type
  231. ../../nan/nan.h:689:10: error: 'MaybeLocal' does not name a type
  232. ../../nan/nan.h:705:10: error: 'MaybeLocal' does not name a type
  233. ../../nan/nan.h:718:10: error: 'MaybeLocal' does not name a type
  234. ../../nan/nan.h:735:10: error: 'MaybeLocal' does not name a type
  235. ../../nan/nan.h:741:10: error: 'MaybeLocal' does not name a type
  236. ../../nan/nan.h:749:10: error: 'MaybeLocal' does not name a type
  237. ../../nan/nan.h:756:10: error: 'MaybeLocal' does not name a type
  238. ../../nan/nan.h:762:10: error: 'MaybeLocal' does not name a type
  239. ../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
  240. ../../nan/nan.h:1507:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  241. ../../nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
  242. ../../nan/nan.h:1525:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  243. ../../nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()':
  244. ../../nan/nan.h:1559:58: error: no matching function for call to 'New(const char*)'
  245. ../../nan/nan.h:1559:58: note: candidates are:
  246. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  247. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  248. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  249. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  250. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  251. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  252. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  253. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  254. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  255. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  256. ../../nan/nan.h: In function 'void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)':
  257. ../../nan/nan.h:1870:34: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive]
  258. ../../nan/nan.h:1870:34: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
  259. ../../nan/nan.h: In function 'void Nan::SetMethod(HandleType<T>, const char*, Nan::FunctionCallback)':
  260. ../../nan/nan.h:1882:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  261. ../../nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)':
  262. ../../nan/nan.h:1897:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  263. ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)':
  264. ../../nan/nan.h:1922:47: error: 'NewInstance' was not declared in this scope
  265. ../../nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
  266. ../../nan/nan.h:1965:51: error: 'NewInstance' was not declared in this scope
  267. ../../nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)':
  268. ../../nan/nan.h:2024:47: error: 'NewInstance' was not declared in this scope
  269. ../../nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)':
  270. ../../nan/nan.h:2094:47: error: 'NewInstance' was not declared in this scope
  271. ../../nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
  272. ../../nan/nan.h:2149:47: error: 'NewInstance' was not declared in this scope
  273. ../../nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
  274. ../../nan/nan.h:2171:47: error: 'NewInstance' was not declared in this scope
  275. In file included from ../src/./serialport.h:7:0,
  276.                 from ../src/serialport.cpp:1:
  277. ../../nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)':
  278. ../../nan/nan.h:2198:35: error: no matching function for call to 'New(const char*&)'
  279. ../../nan/nan.h:2198:35: note: candidates are:
  280. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  281. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  282. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  283. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  284. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  285. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  286. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  287. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  288. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  289. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  290. ../../nan/nan.h:2199:47: error: 'GetFunction' was not declared in this scope
  291. ../../nan/nan.h:2199:65: error: 'Set' was not declared in this scope
  292. ../../nan/nan.h:2199:65: note: suggested alternative:
  293. /root/.node-gyp/6.3.1/include/node/v8.h:3067:17: note:   'v8::Set'
  294. ../../nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)':
  295. ../../nan/nan.h:2206:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)'
  296. ../../nan/nan.h:2206:30: note: candidate is:
  297. ../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
  298. ../../nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)':
  299. ../../nan/nan.h:2219:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  300. ../../nan/nan.h: In member function 'void Nan::Tap::pass(const char*)':
  301. ../../nan/nan.h:2225:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
  302. ../../nan/nan.h: At global scope:
  303. ../../nan/nan.h:2249:10: error: 'MaybeLocal' does not name a type
  304. ../../nan/nan.h:2254:40: error: 'MaybeLocal' was not declared in this scope
  305. ../../nan/nan.h:2254:40: note: suggested alternative:
  306. /root/.node-gyp/6.3.1/include/node/v8.h:113:7: note:   'v8::MaybeLocal'
  307. ../../nan/nan.h:2254:52: error: template argument 1 is invalid
  308. ../../nan/nan.h:2254:54: error: expected unqualified-id before '>' token
  309. ../../nan/nan.h:2263:1: error: 'MaybeLocal' does not name a type
  310. In file included from ../src/serialport.cpp:6:0:
  311. ../src/./serialport_poller.h:13:24: error: 'v8::Handle' has not been declared
  312. ../src/./serialport_poller.h:13:30: error: expected ',' or '...' before '<' token
  313. ../src/serialport.cpp: In function 'v8::Local<v8::Value> getValueFromObject(v8::Local<v8::Object>, std::string)':
  314. ../src/serialport.cpp:85:57: error: no matching function for call to 'New(std::string&)'
  315. ../src/serialport.cpp:85:57: note: candidates are:
  316. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  317. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  318. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  319. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  320. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  321. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  322. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  323. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  324. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  325. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  326. ../src/serialport.cpp:86:10: error: 'Get' is not a member of 'Nan'
  327. ../src/serialport.cpp: In function 'int getIntFromObject(v8::Local<v8::Object>, std::string)':
  328. ../src/serialport.cpp:90:52: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  329. ../src/serialport.cpp: In function 'double getDoubleFromObject(v8::Local<v8::Object>, std::string)':
  330. ../src/serialport.cpp:102:53: warning: 'v8::Local<v8::Number> v8::Value::ToNumber() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7962): Use maybe version [-Wdeprecated-declarations]
  331. ../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)':
  332. ../src/serialport.cpp:165:74: error: no matching function for call to 'New(char [1024])'
  333. ../src/serialport.cpp:165:74: note: candidates are:
  334. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  335. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  336. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  337. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  338. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  339. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  340. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  341. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  342. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  343. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  344. ../src/serialport.cpp:175:31: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  345. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)':
  346. ../src/serialport.cpp:195:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  347. ../src/serialport.cpp:204:8: error: 'Has' is not a member of 'Nan'
  348. ../src/serialport.cpp:204:57: error: no matching function for call to 'New(const char [9])'
  349. ../src/serialport.cpp:204:57: note: candidates are:
  350. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  351. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  352. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  353. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  354. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  355. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  356. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  357. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  358. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  359. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  360. ../src/serialport.cpp:220:21: error: 'Get' is not a member of 'Nan'
  361. ../src/serialport.cpp:220:70: error: no matching function for call to 'New(const char [9])'
  362. ../src/serialport.cpp:220:70: note: candidates are:
  363. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  364. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  365. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  366. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  367. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  368. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  369. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  370. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  371. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  372. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  373. ../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)':
  374. ../src/serialport.cpp:238:74: error: no matching function for call to 'New(char [1024])'
  375. ../src/serialport.cpp:238:74: note: candidates are:
  376. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  377. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  378. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  379. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  380. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  381. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  382. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  383. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  384. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  385. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  386. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)':
  387. ../src/serialport.cpp:256:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  388. ../src/serialport.cpp: In function 'void EIO_AfterWrite(uv_work_t*)':
  389. ../src/serialport.cpp:316:74: error: no matching function for call to 'New(char [1024])'
  390. ../src/serialport.cpp:316:74: note: candidates are:
  391. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  392. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  393. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  394. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  395. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  396. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  397. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  398. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  399. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  400. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  401. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)':
  402. ../src/serialport.cpp:376:32: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  403. ../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)':
  404. ../src/serialport.cpp:392:74: error: no matching function for call to 'New(char [1024])'
  405. ../src/serialport.cpp:392:74: note: candidates are:
  406. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  407. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  408. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  409. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  410. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  411. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  412. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  413. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  414. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  415. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  416. ../src/serialport.cpp: In function 'void setIfNotEmpty(v8::Local<v8::Object>, std::string, const char*)':
  417. ../src/serialport.cpp:437:57: error: no matching function for call to 'New(std::string&)'
  418. ../src/serialport.cpp:437:57: note: candidates are:
  419. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  420. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  421. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  422. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  423. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  424. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  425. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  426. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  427. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  428. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  429. ../src/serialport.cpp:439:5: error: 'Set' is not a member of 'Nan'
  430. ../src/serialport.cpp:439:5: note: suggested alternatives:
  431. ../src/./serialport.h:38:1: note:   'Set'
  432. /root/.node-gyp/6.3.1/include/node/v8.h:3067:17: note:   'v8::Set'
  433. ../src/serialport.cpp:439:53: error: no matching function for call to 'New(const char*&)'
  434. ../src/serialport.cpp:439:53: note: candidates are:
  435. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  436. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  437. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  438. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  439. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  440. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  441. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  442. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  443. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  444. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  445. ../src/serialport.cpp:441:5: error: 'Set' is not a member of 'Nan'
  446. ../src/serialport.cpp:441:5: note: suggested alternatives:
  447. ../src/./serialport.h:38:1: note:   'Set'
  448. /root/.node-gyp/6.3.1/include/node/v8.h:3067:17: note:   'v8::Set'
  449. ../src/serialport.cpp: In function 'void EIO_AfterList(uv_work_t*)':
  450. ../src/serialport.cpp:453:74: error: no matching function for call to 'New(char [1024])'
  451. ../src/serialport.cpp:453:74: note: candidates are:
  452. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  453. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  454. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  455. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  456. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  457. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  458. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  459. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  460. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  461. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  462. ../src/serialport.cpp:469:7: error: 'Set' is not a member of 'Nan'
  463. ../src/serialport.cpp:469:7: note: suggested alternatives:
  464. ../src/./serialport.h:38:1: note:   'Set'
  465. /root/.node-gyp/6.3.1/include/node/v8.h:3067:17: note:   'v8::Set'
  466. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)':
  467. ../src/serialport.cpp:490:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  468. ../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)':
  469. ../src/serialport.cpp:519:74: error: no matching function for call to 'New(char [1024])'
  470. ../src/serialport.cpp:519:74: note: candidates are:
  471. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  472. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  473. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  474. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  475. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  476. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  477. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  478. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  479. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  480. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  481. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)':
  482. ../src/serialport.cpp:538:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  483. ../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)':
  484. ../src/serialport.cpp:579:74: error: no matching function for call to 'New(char [1024])'
  485. ../src/serialport.cpp:579:74: note: candidates are:
  486. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  487. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  488. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  489. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  490. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  491. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  492. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  493. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  494. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  495. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  496. ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)':
  497. ../src/serialport.cpp:596:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated (declared at /root/.node-gyp/6.3.1/include/node/v8.h:7998): Use maybe version [-Wdeprecated-declarations]
  498. ../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)':
  499. ../src/serialport.cpp:625:74: error: no matching function for call to 'New(char [1024])'
  500. ../src/serialport.cpp:625:74: note: candidates are:
  501. ../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
  502. ../../nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
  503. ../../nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
  504. ../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
  505. ../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
  506. ../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
  507. ../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
  508. ../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
  509. ../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
  510. ../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
  511. ../src/serialport.cpp: At global scope:
  512. ../src/serialport.cpp:666:17: error: variable or field 'init' declared void
  513. ../src/serialport.cpp:666:13: error: 'Handle' is not a member of 'v8'
  514. ../src/serialport.cpp:666:34: error: expected primary-expression before '>' token
  515. ../src/serialport.cpp:666:36: error: 'target' was not declared in this scope
  516. ../src/serialport.cpp:683:1: error: 'init' was not declared in this scope
  517. ../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
  518. ../../nan/nan_new.h:29:1: warning: control reaches end of non-void function [-Wreturn-type]
  519. ../src/serialport.cpp: In function 'v8::Local<v8::Value> getValueFromObject(v8::Local<v8::Object>, std::string)':
  520. ../src/serialport.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type]
  521. make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
  522. make: Leaving directory `/electronWorking/node_modules/serialport/build'
  523. gyp ERR! build error
  524. gyp ERR! stack Error: `make` failed with exit code: 2
  525. gyp ERR! stack     at ChildProcess.onExit (/electronWorking/node_modules/node-gyp/lib/build.js:276:23)
  526. gyp ERR! stack     at emitTwo (events.js:106:13)
  527. gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
  528. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
  529. gyp ERR! System Linux 3.8.13-bone50
  530. gyp ERR! command "/usr/local/bin/node" "/electronWorking/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/electronWorking/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/electronWorking/node_modules/serialport/build/Release"
  531. gyp ERR! cwd /electronWorking/node_modules/serialport
  532. gyp ERR! node -v v6.3.1
  533. gyp ERR! node-gyp -v v3.4.0
  534. gyp ERR! not ok
  535. node-pre-gyp ERR! build error
  536. node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /electronWorking/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/electronWorking/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/electronWorking/node_modules/serialport/build/Release' (1)
  537. node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/electronWorking/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
  538. node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
  539. node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
  540. node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:852:16)
  541. node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
  542. node-pre-gyp ERR! System Linux 3.8.13-bone50
  543. node-pre-gyp ERR! command "/usr/local/bin/node" "/electronWorking/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
  544. node-pre-gyp ERR! cwd /electronWorking/node_modules/serialport
  545. node-pre-gyp ERR! node -v v6.3.1
  546. node-pre-gyp ERR! node-pre-gyp -v v0.6.29
  547. node-pre-gyp ERR! not ok
  548. Failed to execute '/usr/local/bin/node /electronWorking/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/electronWorking/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/electronWorking/node_modules/serialport/build/Release' (1)
  549. npm WARN your-app@0.1.0 No description
  550. npm WARN your-app@0.1.0 No repository field.
  551. npm WARN your-app@0.1.0 No license field.
  552. npm ERR! Linux 3.8.13-bone50
  553. npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "serialport"
  554. npm ERR! node v6.3.1
  555. npm ERR! npm  v3.10.6
  556. npm ERR! code ELIFECYCLE
  557.  
  558. npm ERR! serialport@4.0.1 install: `node-pre-gyp install --fallback-to-build`
  559. npm ERR! Exit status 1
  560. npm ERR!
  561. npm ERR! Failed at the serialport@4.0.1 install script 'node-pre-gyp install --fallback-to-build'.
  562. npm ERR! Make sure you have the latest version of node.js and npm installed.
  563. npm ERR! If you do, this is most likely a problem with the serialport package,
  564. npm ERR! not with npm itself.
  565. npm ERR! Tell the author that this fails on your system:
  566. npm ERR!     node-pre-gyp install --fallback-to-build
  567. npm ERR! You can get information on how to open an issue for this project with:
  568. npm ERR!     npm bugs serialport
  569. npm ERR! Or if that isn't available, you can get their info via:
  570. npm ERR!     npm owner ls serialport
  571. npm ERR! There is likely additional logging output above.
  572.  
  573. npm ERR! Please include the following file with any support request:
  574. npm ERR!     /electronWorking/npm-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement