运行错误8.2.1 Mac M1时出错

c9qzyr3d  于 2022-10-15  发布在  Mac
关注(0)|答案(1)|浏览(252)

我是个新手,我想做一个项目,但我不能,因为我对Byebug Gem有问题,我搜索了很多论坛,但都没有解决我的问题Ruby 2.3.1和rbenv rails 4.2.2 MacBook Air M1在advance.........................................................................................中感谢.........................................................................................................................

  1. backend-ror git:(dev) sudo gem install byebug -v '8.2.1' --source 'https://rubygems.org/'
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing byebug:
  4. ERROR: Failed to build gem native extension.
  5. current directory: /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/byebug-8.2.1/ext/byebug
  6. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20220828-8331-k85pho.rb extconf.rb
  7. creating Makefile
  8. current directory: /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/byebug-8.2.1/ext/byebug
  9. make "DESTDIR=" clean
  10. current directory: /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/byebug-8.2.1/ext/byebug
  11. make "DESTDIR="
  12. compiling locker.c
  13. compiling byebug.c
  14. byebug.c:198:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  15. return call_at(ctx, dc, rb_intern("at_line"), 0, Qnil);
  16. ^~~~~~~~~~~~~~~~~~~~
  17. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  18. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  19. ^
  20. byebug.c:198:27: note: '{' token is here
  21. return call_at(ctx, dc, rb_intern("at_line"), 0, Qnil);
  22. ^~~~~~~~~~~~~~~~~~~~
  23. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  24. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  25. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  27. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  28. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  30. { \
  31. ^
  32. byebug.c:198:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  33. return call_at(ctx, dc, rb_intern("at_line"), 0, Qnil);
  34. ^~~~~~~~~~~~~~~~~~~~
  35. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  36. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  37. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  38. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  39. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  40. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  42. }
  43. ^
  44. byebug.c:198:27: note: ')' token is here
  45. return call_at(ctx, dc, rb_intern("at_line"), 0, Qnil);
  46. ^~~~~~~~~~~~~~~~~~~~
  47. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  48. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  49. ^
  50. byebug.c:204:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  51. return call_at(ctx, dc, rb_intern("at_tracing"), 0, Qnil);
  52. ^~~~~~~~~~~~~~~~~~~~~~~
  53. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  54. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  55. ^
  56. byebug.c:204:27: note: '{' token is here
  57. return call_at(ctx, dc, rb_intern("at_tracing"), 0, Qnil);
  58. ^~~~~~~~~~~~~~~~~~~~~~~
  59. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  60. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  61. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  63. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  64. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  66. { \
  67. ^
  68. byebug.c:204:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  69. return call_at(ctx, dc, rb_intern("at_tracing"), 0, Qnil);
  70. ^~~~~~~~~~~~~~~~~~~~~~~
  71. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  72. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  73. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  75. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  76. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  78. }
  79. ^
  80. byebug.c:204:27: note: ')' token is here
  81. return call_at(ctx, dc, rb_intern("at_tracing"), 0, Qnil);
  82. ^~~~~~~~~~~~~~~~~~~~~~~
  83. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  84. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  85. ^
  86. byebug.c:212:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  87. return call_at(ctx, dc, rb_intern("at_breakpoint"), 1, breakpoint);
  88. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  89. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  90. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  91. ^
  92. byebug.c:212:27: note: '{' token is here
  93. return call_at(ctx, dc, rb_intern("at_breakpoint"), 1, breakpoint);
  94. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  95. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  96. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  97. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  98. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  99. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  100. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  102. { \
  103. ^
  104. byebug.c:212:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  105. return call_at(ctx, dc, rb_intern("at_breakpoint"), 1, breakpoint);
  106. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  107. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  108. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  109. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  110. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  111. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  112. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  113. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  114. }
  115. ^
  116. byebug.c:212:27: note: ')' token is here
  117. return call_at(ctx, dc, rb_intern("at_breakpoint"), 1, breakpoint);
  118. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  119. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  120. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  121. ^
  122. byebug.c:220:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  123. return call_at(ctx, dc, rb_intern("at_catchpoint"), 1, exp);
  124. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  125. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  126. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  127. ^
  128. byebug.c:220:27: note: '{' token is here
  129. return call_at(ctx, dc, rb_intern("at_catchpoint"), 1, exp);
  130. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  131. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  132. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  133. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  134. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  135. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  136. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  137. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  138. { \
  139. ^
  140. byebug.c:220:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  141. return call_at(ctx, dc, rb_intern("at_catchpoint"), 1, exp);
  142. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  143. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  144. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  145. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  146. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  147. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  148. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  149. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  150. }
  151. ^
  152. byebug.c:220:27: note: ')' token is here
  153. return call_at(ctx, dc, rb_intern("at_catchpoint"), 1, exp);
  154. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  155. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  156. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  157. ^
  158. byebug.c:228:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  159. return call_at(ctx, dc, rb_intern("at_return"), 1, return_value);
  160. ^~~~~~~~~~~~~~~~~~~~~~
  161. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  162. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  163. ^
  164. byebug.c:228:27: note: '{' token is here
  165. return call_at(ctx, dc, rb_intern("at_return"), 1, return_value);
  166. ^~~~~~~~~~~~~~~~~~~~~~
  167. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  168. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  169. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  170. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  171. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  172. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  173. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  174. { \
  175. ^
  176. byebug.c:228:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  177. return call_at(ctx, dc, rb_intern("at_return"), 1, return_value);
  178. ^~~~~~~~~~~~~~~~~~~~~~
  179. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  180. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  181. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  182. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  183. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  184. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  185. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  186. }
  187. ^
  188. byebug.c:228:27: note: ')' token is here
  189. return call_at(ctx, dc, rb_intern("at_return"), 1, return_value);
  190. ^~~~~~~~~~~~~~~~~~~~~~
  191. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  192. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  193. ^
  194. byebug.c:236:27: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  195. return call_at(ctx, dc, rb_intern("at_end"), 0, Qnil);
  196. ^~~~~~~~~~~~~~~~~~~
  197. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  198. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  199. ^
  200. byebug.c:236:27: note: '{' token is here
  201. return call_at(ctx, dc, rb_intern("at_end"), 0, Qnil);
  202. ^~~~~~~~~~~~~~~~~~~
  203. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  204. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  205. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  206. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  207. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  208. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  209. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  210. { \
  211. ^
  212. byebug.c:236:27: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  213. return call_at(ctx, dc, rb_intern("at_end"), 0, Qnil);
  214. ^~~~~~~~~~~~~~~~~~~
  215. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  216. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  217. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  218. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  219. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  220. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  221. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  222. }
  223. ^
  224. byebug.c:236:27: note: ')' token is here
  225. return call_at(ctx, dc, rb_intern("at_end"), 0, Qnil);
  226. ^~~~~~~~~~~~~~~~~~~
  227. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  228. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  229. ^
  230. byebug.c:442:35: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  231. rb_ivar_set(raised_exception, rb_intern("@__bb_context"), pm_context);
  232. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  233. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  234. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  235. ^
  236. byebug.c:442:35: note: '{' token is here
  237. rb_ivar_set(raised_exception, rb_intern("@__bb_context"), pm_context);
  238. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  239. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  240. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  241. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  242. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  243. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  244. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  245. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  246. { \
  247. ^
  248. byebug.c:442:35: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  249. rb_ivar_set(raised_exception, rb_intern("@__bb_context"), pm_context);
  250. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  251. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  252. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  253. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  254. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  255. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  256. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  257. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  258. }
  259. ^
  260. byebug.c:442:35: note: ')' token is here
  261. rb_ivar_set(raised_exception, rb_intern("@__bb_context"), pm_context);
  262. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  263. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  264. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  265. ^
  266. byebug.c:560:33: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  267. list = rb_funcall(rb_cThread, rb_intern("list"), 0);
  268. ^~~~~~~~~~~~~~~~~
  269. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  270. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  271. ^
  272. byebug.c:560:33: note: '{' token is here
  273. list = rb_funcall(rb_cThread, rb_intern("list"), 0);
  274. ^~~~~~~~~~~~~~~~~
  275. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  276. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  277. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  278. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  279. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  280. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  281. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  282. { \
  283. ^
  284. byebug.c:560:33: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  285. list = rb_funcall(rb_cThread, rb_intern("list"), 0);
  286. ^~~~~~~~~~~~~~~~~
  287. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  288. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  289. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  290. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  291. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  292. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  293. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  294. }
  295. ^
  296. byebug.c:560:33: note: ')' token is here
  297. list = rb_funcall(rb_cThread, rb_intern("list"), 0);
  298. ^~~~~~~~~~~~~~~~~
  299. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  300. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  301. ^
  302. byebug.c:900:12: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  303. idPuts = rb_intern("puts");
  304. ^~~~~~~~~~~~~~~~~
  305. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  306. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  307. ^
  308. byebug.c:900:12: note: '{' token is here
  309. idPuts = rb_intern("puts");
  310. ^~~~~~~~~~~~~~~~~
  311. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  312. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  313. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  314. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  315. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  316. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  317. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  318. { \
  319. ^
  320. byebug.c:900:12: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  321. idPuts = rb_intern("puts");
  322. ^~~~~~~~~~~~~~~~~
  323. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  324. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  325. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  326. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  327. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  328. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  329. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1727:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  330. }
  331. ^
  332. byebug.c:900:12: note: ')' token is here
  333. idPuts = rb_intern("puts");
  334. ^~~~~~~~~~~~~~~~~
  335. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:51: note: expanded from macro 'rb_intern'
  336. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  337. ^
  338. byebug.c:901:13: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro]
  339. idEmpty = rb_intern("empty?");
  340. ^~~~~~~~~~~~~~~~~~~
  341. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:23: note: expanded from macro 'rb_intern'
  342. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  343. ^
  344. byebug.c:901:13: note: '{' token is here
  345. idEmpty = rb_intern("empty?");
  346. ^~~~~~~~~~~~~~~~~~~
  347. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1737:24: note: expanded from macro 'rb_intern'
  348. __extension__ (CONST_ID_CACHE((ID), (str))) : \
  349. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  350. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1730:37: note: expanded from macro 'CONST_ID_CACHE'
  351. # define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
  352. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  353. /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/ruby.h:1722:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
  354. { \
  355. ^
  356. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  357. 20 errors generated.
  358. make:***[byebug.o] Error 1
  359. make failed, exit code 2
  360. Gem files will remain installed in /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/byebug-8.2.1 for inspection.
  361. Results logged to /Users/cristopherhuarocolivera/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/-darwin-21/2.3.0-static/byebug-8.2.1/gem_make.out
3qpi33ja

3qpi33ja1#

也许你可以试试这个

  1. gem install byebug -v '8.2.1' -- --with-cppflags="-Wno-compound-token-split-by-macro"

相关问题