SHARE
TWEET

Untitled

a guest Sep 15th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. npm install -g
  2. > typed-array@0.0.2 install /home/verhoeve/jsnixonlinux/v8-typed-array
  3. > node-gyp configure build
  4.  
  5. make: Map '/home/verhoeve/jsnixonlinux/v8-typed-array/build' wordt binnengegaan
  6.   CXX(target) Release/obj.target/binding/typed-array.o
  7. ../typed-array.cc: In function ‘void ExternalArrayWeakCallback(v8::Persistent<v8::Value>, void*)’:
  8. ../typed-array.cc:22:12: error: ‘class v8::Persistent<v8::Value>’ has no member named ‘Dispose’
  9.      object.Dispose();
  10.             ^
  11. ../typed-array.cc: At global scope:
  12. ../typed-array.cc:27:33: error: ‘Arguments’ does not name a type
  13.  Handle<Value> ArrayBuffer(const Arguments& args) {
  14.                                  ^
  15. ../typed-array.cc: In function ‘v8::Handle<v8::Value> ArrayBuffer(const int&)’:
  16. ../typed-array.cc:28:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  17.      if (args.Length() != 1 || !args[0]->IsNumber()) {
  18.               ^
  19. ../typed-array.cc:28:38: error: invalid types ‘const int[int]for array subscript
  20.      if (args.Length() != 1 || !args[0]->IsNumber()) {
  21.                                       ^
  22. ../typed-array.cc:29:31: error: ‘New’ is not a member of ‘v8::String’
  23.          return ThrowException(String::New("Invalid ArrayBuffer arguments."));
  24.                                ^
  25. ../typed-array.cc:29:76: error: ‘ThrowException’ was not declared in this scope
  26.          return ThrowException(String::New("Invalid ArrayBuffer arguments."));
  27.                                                                             ^
  28. ../typed-array.cc:32:34: error: invalid types ‘const int[int]for array subscript
  29.      unsigned long length = args[0]->Uint32Value();
  30.                                   ^
  31. ../typed-array.cc:36:72: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  32.      Persistent<Object> persistentHandle = Persistent<Object>::New(args.This());
  33.                                                                         ^
  34. ../typed-array.cc:37:22: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘MakeWeak’
  35.      persistentHandle.MakeWeak(data, ExternalArrayWeakCallback);
  36.                       ^
  37. ../typed-array.cc:39:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  38.      args.This()->SetPointerInInternalField(0, data);
  39.           ^
  40. ../typed-array.cc:40:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  41.      args.This()->SetPointerInInternalField(1, (void*)length);
  42.           ^
  43. ../typed-array.cc:41:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  44.      args.This()->Set(String::New("byteLength"), Int32::New(length), ReadOnly);
  45.           ^
  46. ../typed-array.cc:41:22: error: ‘New’ is not a member of ‘v8::String’
  47.      args.This()->Set(String::New("byteLength"), Int32::New(length), ReadOnly);
  48.                       ^
  49. ../typed-array.cc:41:66: error: no matching function for call to ‘v8::Int32::New(long unsigned int&)
  50.      args.This()->Set(String::New("byteLength"), Int32::New(length), ReadOnly);
  51.                                                                   ^
  52. In file included from ../typed-array.cc:1:0:
  53. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  54.    static Local<Integer> New(Isolate* isolate, int32_t value);
  55.                          ^
  56. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  57. ../typed-array.cc:43:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  58.      return args.This();
  59.                  ^
  60. ../typed-array.cc: At global scope:
  61. ../typed-array.cc:46:40: error: ‘Arguments’ does not name a type
  62.  Handle<Value> ArrayBufferViewSet(const Arguments& args) {
  63.                                         ^
  64. ../typed-array.cc: In function ‘v8::Handle<v8::Value> ArrayBufferViewSet(const int&)’:
  65. ../typed-array.cc:47:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  66.      Local<Object> arrayBuffer = args.This()->Get(String::New("buffer"))->ToObject();
  67.                                       ^
  68. ../typed-array.cc:47:50: error: ‘New’ is not a member of ‘v8::String’
  69.      Local<Object> arrayBuffer = args.This()->Get(String::New("buffer"))->ToObject();
  70.                                                   ^
  71. ../typed-array.cc:49:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  72.      if (args.Length() >= 1 && args[0]->IsArray()) {
  73.               ^
  74. ../typed-array.cc:49:37: error: invalid types ‘const int[int]for array subscript
  75.      if (args.Length() >= 1 && args[0]->IsArray()) {
  76.                                      ^
  77. ../typed-array.cc:50:56: error: invalid types ‘const int[int]for array subscript
  78.          Local<Array> source = Local<Array>::Cast(args[0]);
  79.                                                         ^
  80. ../typed-array.cc:53:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  81.          if (args.Length() >= 2 && args[1]->IsUint32()) {
  82.                   ^
  83. ../typed-array.cc:53:41: error: invalid types ‘const int[int]for array subscript
  84.          if (args.Length() >= 2 && args[1]->IsUint32()) {
  85.                                          ^
  86. ../typed-array.cc:54:28: error: invalid types ‘const int[int]for array subscript
  87.              offset = args[1]->Uint32Value();
  88.                             ^
  89. ../typed-array.cc:57:31: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  90.          int dataLength = args.This()->GetIndexedPropertiesExternalArrayDataLength();
  91.                                ^
  92. ../typed-array.cc:58:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  93.          if (offset + source->Length() > dataLength) {
  94.                                        ^
  95. ../typed-array.cc:59:35: error: ‘New’ is not a member of ‘v8::String’
  96.              return ThrowException(String::New("INDEX_SIZE_ERR: array too large"));
  97.                                    ^
  98. ../typed-array.cc:59:81: error: ‘ThrowException’ was not declared in this scope
  99.              return ThrowException(String::New("INDEX_SIZE_ERR: array too large"));
  100.                                                                                  ^
  101. ../typed-array.cc:62:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  102.          for (int index = 0; index < source->Length(); index++) {
  103.                                    ^
  104. ../typed-array.cc:63:18: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  105.              args.This()->Set(offset + index, source->Get(index));
  106.                   ^
  107. ../typed-array.cc:66:31: error: ‘New’ is not a member of ‘v8::String’
  108.          return ThrowException(String::New("Invalid ArrayBufferView::set arguments."));
  109.                                ^
  110. ../typed-array.cc:66:85: error: ‘ThrowException’ was not declared in this scope
  111.          return ThrowException(String::New("Invalid ArrayBufferView::set arguments."));
  112.                                                                                      ^
  113. ../typed-array.cc:69:22: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)
  114.      return Undefined();
  115.                       ^
  116. In file included from ../typed-array.cc:1:0:
  117. /usr/include/nodejs/deps/v8/include/v8.h:313:27: note: declared here
  118.    friend Local<Primitive> Undefined(Isolate* isolate);
  119.                            ^
  120. ../typed-array.cc:47:19: warning: unused variable ‘arrayBuffer’ [-Wunused-variable]
  121.      Local<Object> arrayBuffer = args.This()->Get(String::New("buffer"))->ToObject();
  122.                    ^
  123. ../typed-array.cc: At global scope:
  124. ../typed-array.cc:72:45: error: ‘Arguments’ does not name a type
  125.  Handle<Value> ArrayBufferViewSubarray(const Arguments& args) {
  126.                                              ^
  127. ../typed-array.cc: In function ‘v8::Handle<v8::Value> ArrayBufferViewSubarray(const int&)’:
  128. ../typed-array.cc:73:27: error: ‘New’ is not a member of ‘v8::String’
  129.      return ThrowException(String::New("ArrayBufferView::subarray not yet implemented."));
  130.                            ^
  131. ../typed-array.cc:73:88: error: ‘ThrowException’ was not declared in this scope
  132.      return ThrowException(String::New("ArrayBufferView::subarray not yet implemented."));
  133.                                                                                         ^
  134. ../typed-array.cc: At global scope:
  135. ../typed-array.cc:76:43: error: ‘Arguments’ does not name a type
  136.  Handle<Value> CreateArrayBufferView(const Arguments& args, ExternalArrayType type, int element_size) {
  137.                                            ^
  138. ../typed-array.cc:76:60: error: ‘ExternalArrayType’ has not been declared
  139.  Handle<Value> CreateArrayBufferView(const Arguments& args, ExternalArrayType type, int element_size) {
  140.                                                             ^
  141. ../typed-array.cc: In function ‘v8::Handle<v8::Value> CreateArrayBufferView(const int&, int, int)’:
  142. ../typed-array.cc:81:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  143.      if (args.Length() == 1 && args[0]->IsUint32()) {
  144.               ^
  145. ../typed-array.cc:81:37: error: invalid types ‘const int[int]for array subscript
  146.      if (args.Length() == 1 && args[0]->IsUint32()) {
  147.                                      ^
  148. ../typed-array.cc:83:26: error: invalid types ‘const int[int]for array subscript
  149.          elements = args[0]->Uint32Value();
  150.                           ^
  151. ../typed-array.cc:84:62: error: no matching function for call to ‘v8::Int32::New(long unsigned int)
  152.          Local<Value> arg = Int32::New(elements * element_size);
  153.                                                               ^
  154. In file included from ../typed-array.cc:1:0:
  155. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  156.    static Local<Integer> New(Isolate* isolate, int32_t value);
  157.                          ^
  158. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  159. ../typed-array.cc:85:56: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>
  160.          arrayBuffer = array_buffer_constructor_template->GetFunction()->NewInstance(1, &arg);
  161.                                                         ^
  162. ../typed-array.cc:86:21: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  163.      } else if (args.Length() >= 1 && args[0]->IsObject()) {
  164.                      ^
  165. ../typed-array.cc:86:44: error: invalid types ‘const int[int]for array subscript
  166.      } else if (args.Length() >= 1 && args[0]->IsObject()) {
  167.                                             ^
  168. ../typed-array.cc:90:29: error: invalid types ‘const int[int]for array subscript
  169.          arrayBuffer = args[0]->ToObject();
  170.                              ^
  171. ../typed-array.cc:91:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  172.          if (args.Length() > 1) {
  173.                   ^
  174. ../typed-array.cc:92:32: error: invalid types ‘const int[int]for array subscript
  175.              byteOffset = args[1]->Uint32Value();
  176.                                 ^
  177. ../typed-array.cc:94:39: error: ‘New’ is not a member of ‘v8::String’
  178.                  return ThrowException(String::New("ArrayBufferView(_, unsigned long offset, _) not implemented."));
  179.                                        ^
  180. ../typed-array.cc:94:114: error: ‘ThrowException’ was not declared in this scope
  181.                  return ThrowException(String::New("ArrayBufferView(_, unsigned long offset, _) not implemented."));
  182.                                                                                                                   ^
  183. ../typed-array.cc:97:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  184.          if (args.Length() > 2) {
  185.                   ^
  186. ../typed-array.cc:98:30: error: invalid types ‘const int[int]for array subscript
  187.              elements = args[2]->Uint32Value();
  188.                               ^
  189. ../typed-array.cc:101:31: error: ‘New’ is not a member of ‘v8::String’
  190.          return ThrowException(String::New("Invalid ArrayBufferView arguments."));
  191.                                ^
  192. ../typed-array.cc:101:80: error: ‘ThrowException’ was not declared in this scope
  193.          return ThrowException(String::New("Invalid ArrayBufferView arguments."));
  194.                                                                                 ^
  195. ../typed-array.cc:104:42: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
  196.      void* arrayBufferData = arrayBuffer->GetPointerFromInternalField(0);
  197.                                           ^
  198. ../typed-array.cc:105:67: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
  199.      unsigned long arrayBufferLength = (unsigned long)arrayBuffer->GetPointerFromInternalField(1);
  200.                                                                    ^
  201. ../typed-array.cc:110:35: error: ‘New’ is not a member of ‘v8::String’
  202.              return ThrowException(String::New("Length of the ArrayBuffer minus the byteOffset must be a multiple of the element size."));
  203.                                    ^
  204. ../typed-array.cc:110:136: error: ‘ThrowException’ was not declared in this scope
  205.              return ThrowException(String::New("Length of the ArrayBuffer minus the byteOffset must be a multiple of the element size."));
  206.                                                                                                                                         ^
  207. ../typed-array.cc:116:31: error: ‘New’ is not a member of ‘v8::String’
  208.          return ThrowException(String::New("Given byteOffset and length references an area beyond the end of the ArrayBuffer."));
  209.                                ^
  210. ../typed-array.cc:116:127: error: ‘ThrowException’ was not declared in this scope
  211.          return ThrowException(String::New("Given byteOffset and length references an area beyond the end of the ArrayBuffer."));
  212.                                                                                                                                ^
  213. ../typed-array.cc:119:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  214.      args.This()->SetIndexedPropertiesToExternalArrayData(((int8_t*)arrayBufferData) + byteOffset, type, elements);
  215.           ^
  216. ../typed-array.cc:122:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  217.      args.This()->Set(String::New("buffer"), arrayBuffer, ReadOnly);
  218.           ^
  219. ../typed-array.cc:122:22: error: ‘New’ is not a member of ‘v8::String’
  220.      args.This()->Set(String::New("buffer"), arrayBuffer, ReadOnly);
  221.                       ^
  222. ../typed-array.cc:123:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  223.      args.This()->Set(String::New("byteLength"), Int32::New(elements * element_size), ReadOnly);
  224.           ^
  225. ../typed-array.cc:123:22: error: ‘New’ is not a member of ‘v8::String’
  226.      args.This()->Set(String::New("byteLength"), Int32::New(elements * element_size), ReadOnly);
  227.                       ^
  228. ../typed-array.cc:123:83: error: no matching function for call to ‘v8::Int32::New(long unsigned int)
  229.      args.This()->Set(String::New("byteLength"), Int32::New(elements * element_size), ReadOnly);
  230.                                                                                    ^
  231. In file included from ../typed-array.cc:1:0:
  232. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  233.    static Local<Integer> New(Isolate* isolate, int32_t value);
  234.                          ^
  235. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  236. ../typed-array.cc:124:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  237.      args.This()->Set(String::New("byteOffset"), Int32::New(byteOffset), ReadOnly);
  238.           ^
  239. ../typed-array.cc:124:22: error: ‘New’ is not a member of ‘v8::String’
  240.      args.This()->Set(String::New("byteOffset"), Int32::New(byteOffset), ReadOnly);
  241.                       ^
  242. ../typed-array.cc:124:70: error: no matching function for call to ‘v8::Int32::New(long unsigned int&)
  243.      args.This()->Set(String::New("byteOffset"), Int32::New(byteOffset), ReadOnly);
  244.                                                                       ^
  245. In file included from ../typed-array.cc:1:0:
  246. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  247.    static Local<Integer> New(Isolate* isolate, int32_t value);
  248.                          ^
  249. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  250. ../typed-array.cc:127:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  251.      args.This()->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);
  252.           ^
  253. ../typed-array.cc:127:22: error: ‘New’ is not a member of ‘v8::String’
  254.      args.This()->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);
  255.                       ^
  256. ../typed-array.cc:127:79: error: no matching function for call to ‘v8::Int32::New(int&)
  257.      args.This()->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);
  258.                                                                                ^
  259. In file included from ../typed-array.cc:1:0:
  260. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  261.    static Local<Integer> New(Isolate* isolate, int32_t value);
  262.                          ^
  263. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  264. ../typed-array.cc:128:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  265.      args.This()->Set(String::New("length"), Int32::New(elements), ReadOnly);
  266.           ^
  267. ../typed-array.cc:128:22: error: ‘New’ is not a member of ‘v8::String’
  268.      args.This()->Set(String::New("length"), Int32::New(elements), ReadOnly);
  269.                       ^
  270. ../typed-array.cc:128:64: error: no matching function for call to ‘v8::Int32::New(long unsigned int&)
  271.      args.This()->Set(String::New("length"), Int32::New(elements), ReadOnly);
  272.                                                                 ^
  273. In file included from ../typed-array.cc:1:0:
  274. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  275.    static Local<Integer> New(Isolate* isolate, int32_t value);
  276.                          ^
  277. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  278. ../typed-array.cc:131:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  279.      args.This()->Set(String::New("set"), FunctionTemplate::New(ArrayBufferViewSet)->GetFunction());
  280.           ^
  281. ../typed-array.cc:131:22: error: ‘New’ is not a member of ‘v8::String’
  282.      args.This()->Set(String::New("set"), FunctionTemplate::New(ArrayBufferViewSet)->GetFunction());
  283.                       ^
  284. ../typed-array.cc:131:82: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))
  285.      args.This()->Set(String::New("set"), FunctionTemplate::New(ArrayBufferViewSet)->GetFunction());
  286.                                                                                   ^
  287. In file included from ../typed-array.cc:1:0:
  288. /usr/include/nodejs/deps/v8/include/v8.h:5445:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
  289.    static Local<FunctionTemplate> New(
  290.                                   ^
  291. /usr/include/nodejs/deps/v8/include/v8.h:5445:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*
  292. ../typed-array.cc:132:10: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  293.      args.This()->Set(String::New("subarray"), FunctionTemplate::New(ArrayBufferViewSubarray)->GetFunction());
  294.           ^
  295. ../typed-array.cc:132:22: error: ‘New’ is not a member of ‘v8::String’
  296.      args.This()->Set(String::New("subarray"), FunctionTemplate::New(ArrayBufferViewSubarray)->GetFunction());
  297.                       ^
  298. ../typed-array.cc:132:92: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))
  299.      args.This()->Set(String::New("subarray"), FunctionTemplate::New(ArrayBufferViewSubarray)->GetFunction());
  300.                                                                                             ^
  301. In file included from ../typed-array.cc:1:0:
  302. /usr/include/nodejs/deps/v8/include/v8.h:5445:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
  303.    static Local<FunctionTemplate> New(
  304.                                   ^
  305. /usr/include/nodejs/deps/v8/include/v8.h:5445:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*
  306. ../typed-array.cc:134:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  307.      return args.This();
  308.                  ^
  309. ../typed-array.cc: At global scope:
  310. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  311.      Handle<Value> name(const Arguments& args) {\
  312.                               ^
  313. ../typed-array.cc:137:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  314.  DEFINE_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  315.  ^
  316. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Int8Array(const int&)’:
  317. ../typed-array.cc:137:37: error: ‘kExternalByteArray’ was not declared in this scope
  318.  DEFINE_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  319.                                      ^
  320. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  321.          return CreateArrayBufferView(args, type, element_size);\
  322.                                             ^
  323. ../typed-array.cc: At global scope:
  324. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  325.      Handle<Value> name(const Arguments& args) {\
  326.                               ^
  327. ../typed-array.cc:138:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  328.  DEFINE_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  329.  ^
  330. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Uint8Array(const int&)’:
  331. ../typed-array.cc:138:38: error: ‘kExternalUnsignedByteArray’ was not declared in this scope
  332.  DEFINE_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  333.                                       ^
  334. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  335.          return CreateArrayBufferView(args, type, element_size);\
  336.                                             ^
  337. ../typed-array.cc: At global scope:
  338. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  339.      Handle<Value> name(const Arguments& args) {\
  340.                               ^
  341. ../typed-array.cc:139:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  342.  DEFINE_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  343.  ^
  344. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Int16Array(const int&)’:
  345. ../typed-array.cc:139:38: error: ‘kExternalShortArray’ was not declared in this scope
  346.  DEFINE_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  347.                                       ^
  348. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  349.          return CreateArrayBufferView(args, type, element_size);\
  350.                                             ^
  351. ../typed-array.cc: At global scope:
  352. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  353.      Handle<Value> name(const Arguments& args) {\
  354.                               ^
  355. ../typed-array.cc:140:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  356.  DEFINE_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  357.  ^
  358. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Uint16Array(const int&)’:
  359. ../typed-array.cc:140:39: error: ‘kExternalUnsignedShortArray’ was not declared in this scope
  360.  DEFINE_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  361.                                        ^
  362. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  363.          return CreateArrayBufferView(args, type, element_size);\
  364.                                             ^
  365. ../typed-array.cc: At global scope:
  366. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  367.      Handle<Value> name(const Arguments& args) {\
  368.                               ^
  369. ../typed-array.cc:141:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  370.  DEFINE_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  371.  ^
  372. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Int32Array(const int&)’:
  373. ../typed-array.cc:141:38: error: ‘kExternalIntArray’ was not declared in this scope
  374.  DEFINE_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  375.                                       ^
  376. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  377.          return CreateArrayBufferView(args, type, element_size);\
  378.                                             ^
  379. ../typed-array.cc: At global scope:
  380. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  381.      Handle<Value> name(const Arguments& args) {\
  382.                               ^
  383. ../typed-array.cc:142:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  384.  DEFINE_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  385.  ^
  386. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Uint32Array(const int&)’:
  387. ../typed-array.cc:142:39: error: ‘kExternalUnsignedIntArray’ was not declared in this scope
  388.  DEFINE_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  389.                                        ^
  390. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  391.          return CreateArrayBufferView(args, type, element_size);\
  392.                                             ^
  393. ../typed-array.cc: At global scope:
  394. ../typed-array.cc:9:30: error: ‘Arguments’ does not name a type
  395.      Handle<Value> name(const Arguments& args) {\
  396.                               ^
  397. ../typed-array.cc:143:1: note: in expansion of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  398.  DEFINE_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  399.  ^
  400. ../typed-array.cc: In function ‘v8::Handle<v8::Value> Float32Array(const int&)’:
  401. ../typed-array.cc:143:40: error: ‘kExternalFloatArray’ was not declared in this scope
  402.  DEFINE_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  403.                                         ^
  404. ../typed-array.cc:10:44: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  405.          return CreateArrayBufferView(args, type, element_size);\
  406.                                             ^
  407. In file included from ../typed-array.cc:1:0:
  408. /usr/include/nodejs/deps/v8/include/v8.h: In function ‘void init(v8::Handle<v8::Object>)’:
  409. /usr/include/nodejs/deps/v8/include/v8.h:875:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  410.    V8_INLINE HandleScope() {}
  411.              ^
  412. ../typed-array.cc:149:17: error: within this context
  413.      HandleScope scope;
  414.                  ^
  415. ../typed-array.cc:152:101: error: reference to ‘ArrayBuffer’ is ambiguous
  416.          array_buffer_constructor_template = Persistent<FunctionTemplate>::New(FunctionTemplate::New(ArrayBuffer));
  417.                                                                                                      ^
  418. ../typed-array.cc:27:15: note: candidates are: v8::Handle<v8::Value> ArrayBuffer(const int&)
  419.  Handle<Value> ArrayBuffer(const Arguments& args) {
  420.                ^
  421. In file included from ../typed-array.cc:1:0:
  422. /usr/include/nodejs/deps/v8/include/v8.h:4256:17: note:                 class v8::ArrayBuffer
  423.  class V8_EXPORT ArrayBuffer : public Object {
  424.                  ^
  425. ../typed-array.cc:153:42: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>
  426.          array_buffer_constructor_template->InstanceTemplate()->SetInternalFieldCount(2);
  427.                                           ^
  428. ../typed-array.cc:154:62: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>
  429.          Local<Function> f = array_buffer_constructor_template->GetFunction();
  430.                                                               ^
  431. ../typed-array.cc:155:21: error: ‘New’ is not a member of ‘v8::String’
  432.          target->Set(String::New("ArrayBuffer"), f);
  433.                      ^
  434. ../typed-array.cc:158:28: error: reference to ‘Int8Array’ is ambiguous
  435.      INIT_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  436.                             ^
  437. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  438.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  439.                                                        ^
  440. ../typed-array.cc:137:26: note: candidates are: v8::Handle<v8::Value> Int8Array(const int&)
  441.  DEFINE_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  442.                           ^
  443. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  444.      Handle<Value> name(const Arguments& args) {\
  445.                    ^
  446. In file included from ../typed-array.cc:1:0:
  447. /usr/include/nodejs/deps/v8/include/v8.h:4554:17: note:                 class v8::Int8Array
  448.  class V8_EXPORT Int8Array : public TypedArray {
  449.                  ^
  450. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  451.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  452.             ^
  453. ../typed-array.cc:158:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  454.      INIT_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  455.      ^
  456. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  457.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  458.                                                                      ^
  459. ../typed-array.cc:158:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  460.      INIT_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  461.      ^
  462. In file included from ../typed-array.cc:1:0:
  463. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  464.    static Local<Integer> New(Isolate* isolate, int32_t value);
  465.                          ^
  466. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  467. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  468.      target->Set(String::New(#name), f);}
  469.                  ^
  470. ../typed-array.cc:158:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  471.      INIT_ARRAY_BUFFER_VIEW(Int8Array, kExternalByteArray, sizeof(int8_t));
  472.      ^
  473. ../typed-array.cc:159:28: error: reference to ‘Uint8Array’ is ambiguous
  474.      INIT_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  475.                             ^
  476. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  477.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  478.                                                        ^
  479. ../typed-array.cc:138:26: note: candidates are: v8::Handle<v8::Value> Uint8Array(const int&)
  480.  DEFINE_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  481.                           ^
  482. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  483.      Handle<Value> name(const Arguments& args) {\
  484.                    ^
  485. In file included from ../typed-array.cc:1:0:
  486. /usr/include/nodejs/deps/v8/include/v8.h:4520:17: note:                 class v8::Uint8Array
  487.  class V8_EXPORT Uint8Array : public TypedArray {
  488.                  ^
  489. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  490.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  491.             ^
  492. ../typed-array.cc:159:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  493.      INIT_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  494.      ^
  495. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  496.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  497.                                                                      ^
  498. ../typed-array.cc:159:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  499.      INIT_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  500.      ^
  501. In file included from ../typed-array.cc:1:0:
  502. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  503.    static Local<Integer> New(Isolate* isolate, int32_t value);
  504.                          ^
  505. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  506. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  507.      target->Set(String::New(#name), f);}
  508.                  ^
  509. ../typed-array.cc:159:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  510.      INIT_ARRAY_BUFFER_VIEW(Uint8Array, kExternalUnsignedByteArray, sizeof(uint8_t));
  511.      ^
  512. ../typed-array.cc:160:28: error: reference to ‘Int16Array’ is ambiguous
  513.      INIT_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  514.                             ^
  515. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  516.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  517.                                                        ^
  518. ../typed-array.cc:139:26: note: candidates are: v8::Handle<v8::Value> Int16Array(const int&)
  519.  DEFINE_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  520.                           ^
  521. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  522.      Handle<Value> name(const Arguments& args) {\
  523.                    ^
  524. In file included from ../typed-array.cc:1:0:
  525. /usr/include/nodejs/deps/v8/include/v8.h:4588:17: note:                 class v8::Int16Array
  526.  class V8_EXPORT Int16Array : public TypedArray {
  527.                  ^
  528. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  529.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  530.             ^
  531. ../typed-array.cc:160:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  532.      INIT_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  533.      ^
  534. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  535.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  536.                                                                      ^
  537. ../typed-array.cc:160:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  538.      INIT_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  539.      ^
  540. In file included from ../typed-array.cc:1:0:
  541. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  542.    static Local<Integer> New(Isolate* isolate, int32_t value);
  543.                          ^
  544. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  545. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  546.      target->Set(String::New(#name), f);}
  547.                  ^
  548. ../typed-array.cc:160:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  549.      INIT_ARRAY_BUFFER_VIEW(Int16Array, kExternalShortArray, sizeof(int16_t));
  550.      ^
  551. ../typed-array.cc:161:28: error: reference to ‘Uint16Array’ is ambiguous
  552.      INIT_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  553.                             ^
  554. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  555.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  556.                                                        ^
  557. ../typed-array.cc:140:26: note: candidates are: v8::Handle<v8::Value> Uint16Array(const int&)
  558.  DEFINE_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  559.                           ^
  560. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  561.      Handle<Value> name(const Arguments& args) {\
  562.                    ^
  563. In file included from ../typed-array.cc:1:0:
  564. /usr/include/nodejs/deps/v8/include/v8.h:4571:17: note:                 class v8::Uint16Array
  565.  class V8_EXPORT Uint16Array : public TypedArray {
  566.                  ^
  567. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  568.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  569.             ^
  570. ../typed-array.cc:161:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  571.      INIT_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  572.      ^
  573. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  574.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  575.                                                                      ^
  576. ../typed-array.cc:161:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  577.      INIT_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  578.      ^
  579. In file included from ../typed-array.cc:1:0:
  580. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  581.    static Local<Integer> New(Isolate* isolate, int32_t value);
  582.                          ^
  583. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  584. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  585.      target->Set(String::New(#name), f);}
  586.                  ^
  587. ../typed-array.cc:161:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  588.      INIT_ARRAY_BUFFER_VIEW(Uint16Array, kExternalUnsignedShortArray, sizeof(uint16_t));
  589.      ^
  590. ../typed-array.cc:162:28: error: reference to ‘Int32Array’ is ambiguous
  591.      INIT_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  592.                             ^
  593. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  594.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  595.                                                        ^
  596. ../typed-array.cc:141:26: note: candidates are: v8::Handle<v8::Value> Int32Array(const int&)
  597.  DEFINE_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  598.                           ^
  599. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  600.      Handle<Value> name(const Arguments& args) {\
  601.                    ^
  602. In file included from ../typed-array.cc:1:0:
  603. /usr/include/nodejs/deps/v8/include/v8.h:4622:17: note:                 class v8::Int32Array
  604.  class V8_EXPORT Int32Array : public TypedArray {
  605.                  ^
  606. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  607.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  608.             ^
  609. ../typed-array.cc:162:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  610.      INIT_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  611.      ^
  612. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  613.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  614.                                                                      ^
  615. ../typed-array.cc:162:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  616.      INIT_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  617.      ^
  618. In file included from ../typed-array.cc:1:0:
  619. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  620.    static Local<Integer> New(Isolate* isolate, int32_t value);
  621.                          ^
  622. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  623. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  624.      target->Set(String::New(#name), f);}
  625.                  ^
  626. ../typed-array.cc:162:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  627.      INIT_ARRAY_BUFFER_VIEW(Int32Array, kExternalIntArray, sizeof(int32_t));
  628.      ^
  629. ../typed-array.cc:163:28: error: reference to ‘Uint32Array’ is ambiguous
  630.      INIT_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  631.                             ^
  632. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  633.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  634.                                                        ^
  635. ../typed-array.cc:142:26: note: candidates are: v8::Handle<v8::Value> Uint32Array(const int&)
  636.  DEFINE_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  637.                           ^
  638. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  639.      Handle<Value> name(const Arguments& args) {\
  640.                    ^
  641. In file included from ../typed-array.cc:1:0:
  642. /usr/include/nodejs/deps/v8/include/v8.h:4605:17: note:                 class v8::Uint32Array
  643.  class V8_EXPORT Uint32Array : public TypedArray {
  644.                  ^
  645. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  646.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  647.             ^
  648. ../typed-array.cc:163:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  649.      INIT_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  650.      ^
  651. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  652.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  653.                                                                      ^
  654. ../typed-array.cc:163:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  655.      INIT_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  656.      ^
  657. In file included from ../typed-array.cc:1:0:
  658. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  659.    static Local<Integer> New(Isolate* isolate, int32_t value);
  660.                          ^
  661. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  662. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  663.      target->Set(String::New(#name), f);}
  664.                  ^
  665. ../typed-array.cc:163:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  666.      INIT_ARRAY_BUFFER_VIEW(Uint32Array, kExternalUnsignedIntArray, sizeof(uint32_t));
  667.      ^
  668. ../typed-array.cc:164:28: error: reference to ‘Float32Array’ is ambiguous
  669.      INIT_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  670.                             ^
  671. ../typed-array.cc:14:55: note: in definition of macro ‘INIT_ARRAY_BUFFER_VIEW’
  672.      Local<FunctionTemplate> t = FunctionTemplate::New(name); \
  673.                                                        ^
  674. ../typed-array.cc:143:26: note: candidates are: v8::Handle<v8::Value> Float32Array(const int&)
  675.  DEFINE_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  676.                           ^
  677. ../typed-array.cc:9:19: note: in definition of macro ‘DEFINE_ARRAY_BUFFER_VIEW’
  678.      Handle<Value> name(const Arguments& args) {\
  679.                    ^
  680. In file included from ../typed-array.cc:1:0:
  681. /usr/include/nodejs/deps/v8/include/v8.h:4639:17: note:                 class v8::Float32Array
  682.  class V8_EXPORT Float32Array : public TypedArray {
  683.                  ^
  684. ../typed-array.cc:17:12: error: ‘New’ is not a member of ‘v8::String’
  685.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  686.             ^
  687. ../typed-array.cc:164:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  688.      INIT_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  689.      ^
  690. ../typed-array.cc:17:69: error: no matching function for call to ‘v8::Int32::New(unsigned int)
  691.      f->Set(String::New("BYTES_PER_ELEMENT"), Int32::New(element_size), ReadOnly);\
  692.                                                                      ^
  693. ../typed-array.cc:164:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  694.      INIT_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  695.      ^
  696. In file included from ../typed-array.cc:1:0:
  697. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
  698.    static Local<Integer> New(Isolate* isolate, int32_t value);
  699.                          ^
  700. /usr/include/nodejs/deps/v8/include/v8.h:2929:25: note:   candidate expects 2 arguments, 1 provided
  701. ../typed-array.cc:18:17: error: ‘New’ is not a member of ‘v8::String’
  702.      target->Set(String::New(#name), f);}
  703.                  ^
  704. ../typed-array.cc:164:5: note: in expansion of macro ‘INIT_ARRAY_BUFFER_VIEW’
  705.      INIT_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
  706.      ^
  707. binding.target.mk:93: recipe for target 'Release/obj.target/binding/typed-array.o' failed
  708. make: *** [Release/obj.target/binding/typed-array.o] Error 1
  709. make: Map '/home/verhoeve/jsnixonlinux/v8-typed-array/build' wordt verlaten
  710. gyp ERR! build error
  711. gyp ERR! stack Error: `make` failed with exit code: 2
  712. gyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
  713. gyp ERR! stack     at emitTwo (events.js:126:13)
  714. gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
  715. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  716. gyp ERR! System Linux 4.15.0-34-generic
  717. gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "configure" "build"
  718. gyp ERR! cwd /home/verhoeve/jsnixonlinux/v8-typed-array
  719. gyp ERR! node -v v8.10.0
  720. gyp ERR! node-gyp -v v3.6.2
  721. gyp ERR! not ok
  722.  
  723. npm WARN typed-array@0.0.2 No license field.
  724. npm ERR! Linux 4.15.0-34-generic
  725. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
  726. npm ERR! node v8.10.0
  727. npm ERR! npm  v3.5.2
  728. npm ERR! code ELIFECYCLE
  729. npm ERR! typed-array@0.0.2 install: `node-gyp configure build`
  730. npm ERR! Exit status 1
  731. npm ERR!
  732. npm ERR! Failed at the typed-array@0.0.2 install script 'node-gyp configure build'.
  733. npm ERR! Make sure you have the latest version of node.js and npm installed.
  734. npm ERR! If you do, this is most likely a problem with the typed-array package,
  735. npm ERR! not with npm itself.
  736. npm ERR! Tell the author that this fails on your system:
  737. npm ERR!     node-gyp configure build
  738. npm ERR! You can get information on how to open an issue for this project with:
  739. npm ERR!     npm bugs typed-array
  740. npm ERR! Or if that isn't available, you can get their info via:
  741. npm ERR!     npm owner ls typed-array
  742. npm ERR! There is likely additional logging output above.
  743.  
  744. npm ERR! Please include the following file with any support request:
  745. npm ERR!     /home/verhoeve/jsnixonlinux/v8-typed-array/npm-debug.log
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top