Advertisement
Guest User

ERROR: Failed to build gem native extension.

a guest
Apr 16th, 2013
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.33 KB | None | 0 0
  1. PS C:\> gem install json --platform=ruby
  2. Temporarily enhancing PATH to include DevKit...
  3. Building native extensions. This could take a while...
  4. ERROR: Error installing json:
  5. ERROR: Failed to build gem native extension.
  6.  
  7.  
  8. FROM THE LOGS:
  9. C:/Ruby192/bin/ruby.exe extconf.rb
  10. creating Makefile
  11.  
  12. make
  13. C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_generator'" > generator-i386-mingw32.def
  14. gcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby192/include/ruby-1.9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I. -DJSON_GENERATOR -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -O3 -Wall -O0 -ggdb -o generator.o -c generator.c
  15. In file included from c:/Ruby192/include/ruby-1.9.1/ruby/defines.h:205:0,
  16. from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
  17. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  18. from ../fbuffer/fbuffer.h:5,
  19. from generator.c:1:
  20. c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:185:0: warning: "_stati64" redefined [enabled by default]
  21. In file included from c:\devkit_ruby\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sys/stat.h:58:0,
  22. from c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:65,
  23. from c:/Ruby192/include/ruby-1.9.1/ruby/defines.h:205,
  24. from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
  25. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  26. from ../fbuffer/fbuffer.h:5,
  27. from generator.c:1:
  28. c:\devkit_ruby\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/_mingw_stat64.h:14:0: note: this is the location of the previous definition
  29. In file included from c:/Ruby192/include/ruby-1.9.1/ruby/defines.h:205:0,
  30. from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
  31. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  32. from ../fbuffer/fbuffer.h:5,
  33. from generator.c:1:
  34. c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:184:17: warning: 'struct _stati64' declared inside parameter list [enabled by default]
  35. c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:184:17: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
  36. c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:184:17: warning: 'struct _stati64' declared inside parameter list [enabled by default]
  37. In file included from c:/Ruby192/include/ruby-1.9.1/ruby.h:32:0,
  38. from ../fbuffer/fbuffer.h:5,
  39. from generator.c:1:
  40. c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:112:14: error: size of array 'ruby_check_sizeof_voidp' is negative
  41. In file included from c:/Ruby192/include/ruby-1.9.1/ruby.h:32:0,
  42. from ../fbuffer/fbuffer.h:5,
  43. from generator.c:1:
  44. c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h: In function 'rb_class_of':
  45. c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:1278:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  46. c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h: In function 'rb_type':
  47. c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:1294:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  48. In file included from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:1326:0,
  49. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  50. from ../fbuffer/fbuffer.h:5,
  51. from generator.c:1:
  52. c:/Ruby192/include/ruby-1.9.1/ruby/missing.h: At top level:
  53. c:/Ruby192/include/ruby-1.9.1/ruby/missing.h:35:8: error: redefinition of 'struct timespec'
  54. In file included from c:\devkit_ruby\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/process.h:12:0,
  55. from c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:55,
  56. from c:/Ruby192/include/ruby-1.9.1/ruby/defines.h:205,
  57. from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
  58. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  59. from ../fbuffer/fbuffer.h:5,
  60. from generator.c:1:
  61. c:\devkit_ruby\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sys/types.h:89:8: note: originally defined here
  62. In file included from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:1326:0,
  63. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  64. from ../fbuffer/fbuffer.h:5,
  65. from generator.c:1:
  66. c:/Ruby192/include/ruby-1.9.1/ruby/missing.h:42:8: error: redefinition of 'struct timezone'
  67. In file included from c:/Ruby192/include/ruby-1.9.1/ruby/win32.h:56:0,
  68. from c:/Ruby192/include/ruby-1.9.1/ruby/defines.h:205,
  69. from c:/Ruby192/include/ruby-1.9.1/ruby/ruby.h:74,
  70. from c:/Ruby192/include/ruby-1.9.1/ruby.h:32,
  71. from ../fbuffer/fbuffer.h:5,
  72. from generator.c:1:
  73. c:\devkit_ruby\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/time.h:260:8: note: originally defined here
  74. In file included from generator.c:1:0:
  75. ../fbuffer/fbuffer.h: In function 'fbuffer_append_str':
  76. ../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  77. ../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  78. ../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  79. generator.c: In function 'convert_UTF8_to_JSON_ASCII':
  80. generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  81. generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  82. generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  83. generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  84. generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  85. generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  86. generator.c: In function 'convert_UTF8_to_JSON':
  87. generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  88. generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  89. generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  90. generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  91. generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  92. generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  93. generator.c: In function 'mHash_to_json':
  94. generator.c:319:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  95. generator.c: In function 'mArray_to_json':
  96. generator.c:331:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  97. generator.c: In function 'mFixnum_to_json':
  98. generator.c:341:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  99. generator.c: In function 'mBignum_to_json':
  100. generator.c:351:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  101. generator.c: In function 'mFloat_to_json':
  102. generator.c:361:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  103. generator.c: In function 'mString_to_json':
  104. generator.c:383:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  105. generator.c: In function 'mTrueClass_to_json':
  106. generator.c:438:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  107. generator.c: In function 'mFalseClass_to_json':
  108. generator.c:448:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  109. generator.c: In function 'mNilClass_to_json':
  110. generator.c:458:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  111. generator.c: In function 'cState_configure':
  112. generator.c:513:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  113. generator.c:524:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  114. generator.c:524:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  115. generator.c:524:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  116. generator.c:525:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  117. generator.c:525:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  118. generator.c:525:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  119. generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  120. generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  121. generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  122. generator.c:533:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  123. generator.c:533:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  124. generator.c:533:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  125. generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  126. generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  127. generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  128. generator.c:541:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  129. generator.c:541:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  130. generator.c:541:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  131. generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  132. generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  133. generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  134. generator.c:549:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  135. generator.c:549:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  136. generator.c:549:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  137. generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  138. generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  139. generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  140. generator.c:557:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  141. generator.c:557:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  142. generator.c:557:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  143. generator.c: In function 'set_state_ivars':
  144. generator.c:605:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  145. generator.c:605:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  146. generator.c:605:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  147. generator.c:607:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  148. generator.c:607:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  149. generator.c:607:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  150. generator.c: In function 'cState_to_h':
  151. generator.c:622:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  152. generator.c: In function 'generate_json_object':
  153. generator.c:692:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  154. generator.c:692:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  155. generator.c:692:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  156. generator.c: In function 'generate_json_array':
  157. generator.c:738:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  158. generator.c:738:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  159. generator.c:738:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  160. generator.c: In function 'generate_json_float':
  161. generator.c:801:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  162. generator.c: In function 'cState_prepare_buffer':
  163. generator.c:852:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  164. generator.c: In function 'cState_partial_generate':
  165. generator.c:882:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  166. generator.c: In function 'isArrayOrObject':
  167. generator.c:894:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  168. generator.c:894:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  169. generator.c:894:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  170. generator.c:895:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  171. generator.c:895:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  172. generator.c:895:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  173. generator.c: In function 'cState_generate':
  174. generator.c:912:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  175. generator.c: In function 'cState_initialize':
  176. generator.c:942:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  177. generator.c: In function 'cState_init_copy':
  178. generator.c:960:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  179. generator.c:961:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  180. generator.c: In function 'cState_indent':
  181. generator.c:1004:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  182. generator.c: In function 'cState_indent_set':
  183. generator.c:1016:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  184. generator.c:1018:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  185. generator.c:1018:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  186. generator.c:1018:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  187. generator.c:1027:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  188. generator.c:1027:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  189. generator.c:1027:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  190. generator.c: In function 'cState_space':
  191. generator.c:1041:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  192. generator.c: In function 'cState_space_set':
  193. generator.c:1054:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  194. generator.c:1056:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  195. generator.c:1056:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  196. generator.c:1056:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  197. generator.c:1065:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  198. generator.c:1065:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  199. generator.c:1065:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  200. generator.c: In function 'cState_space_before':
  201. generator.c:1078:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  202. generator.c: In function 'cState_space_before_set':
  203. generator.c:1090:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  204. generator.c:1092:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  205. generator.c:1092:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  206. generator.c:1092:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  207. generator.c:1101:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  208. generator.c:1101:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  209. generator.c:1101:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  210. generator.c: In function 'cState_object_nl':
  211. generator.c:1115:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  212. generator.c: In function 'cState_object_nl_set':
  213. generator.c:1128:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  214. generator.c:1130:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  215. generator.c:1130:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  216. generator.c:1130:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  217. generator.c:1138:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  218. generator.c:1138:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  219. generator.c:1138:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  220. generator.c: In function 'cState_array_nl':
  221. generator.c:1151:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  222. generator.c: In function 'cState_array_nl_set':
  223. generator.c:1163:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  224. generator.c:1165:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  225. generator.c:1165:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  226. generator.c:1165:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  227. generator.c:1173:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  228. generator.c:1173:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  229. generator.c:1173:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  230. generator.c: In function 'cState_check_circular_p':
  231. generator.c:1188:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  232. generator.c: In function 'cState_max_nesting':
  233. generator.c:1200:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  234. generator.c: In function 'cState_max_nesting_set':
  235. generator.c:1212:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  236. generator.c: In function 'cState_allow_nan_p':
  237. generator.c:1225:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  238. generator.c: In function 'cState_ascii_only_p':
  239. generator.c:1237:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  240. generator.c: In function 'cState_quirks_mode_p':
  241. generator.c:1248:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  242. generator.c: In function 'cState_quirks_mode_set':
  243. generator.c:1259:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  244. generator.c: In function 'cState_depth':
  245. generator.c:1271:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  246. generator.c: In function 'cState_depth_set':
  247. generator.c:1283:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  248. generator.c: In function 'cState_buffer_initial_length':
  249. generator.c:1296:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  250. generator.c: In function 'cState_buffer_initial_length_set':
  251. generator.c:1309:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  252. make: *** [generator.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement