Advertisement
Guest User

tree-sitter-haskell-git build failure

a guest
Jan 7th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.98 KB | None | 0 0
  1. makepkg -s
  2. ==> Making package: tree-sitter-haskell-git 0.13.0.r80.g237f4eb-1 (Sat 07 Jan 2023 19:19:14 CST)
  3. ==> Checking runtime dependencies...
  4. ==> Checking buildtime dependencies...
  5. ==> Retrieving sources...
  6. -> Cloning tree-sitter-haskell-git git repo...
  7. Cloning into bare repository '/home/bhrgunatha/scratch/tree-sitter-haskell-git/tree-sitter-haskell-git'...
  8. remote: Enumerating objects: 8017, done.
  9. remote: Counting objects: 100% (149/149), done.
  10. remote: Compressing objects: 100% (112/112), done.
  11. remote: Total 8017 (delta 76), reused 86 (delta 35), pack-reused 7868
  12. Receiving objects: 100% (8017/8017), 257.68 MiB | 6.35 MiB/s, done.
  13. Resolving deltas: 100% (5209/5209), done.
  14. ==> Validating source files with sha256sums...
  15. tree-sitter-haskell-git ... Skipped
  16. ==> Extracting sources...
  17. -> Creating working copy of tree-sitter-haskell-git git repo...
  18. Cloning into 'tree-sitter-haskell-git'...
  19. done.
  20. ==> Starting prepare()...
  21. ==> Starting pkgver()...
  22. ==> Updated version: tree-sitter-haskell-git 0.13.0.r143.gaee3725-1
  23. ==> Starting build()...
  24. scanner.c:211:51: error: expected ‘,’ or ‘...’ before ‘vs’
  25. 211 | State state_new(TSLexer *l, const bool * restrict vs, indent_vec *is) {
  26. | ^~
  27. scanner.c: In function ‘State state_new(TSLexer*, const bool*)’:
  28. scanner.c:214:16: error: ‘vs’ was not declared in this scope
  29. 214 | .symbols = vs,
  30. | ^~
  31. scanner.c:215:16: error: ‘is’ was not declared in this scope
  32. 215 | .indents = is,
  33. | ^~
  34. scanner.c: At global scope:
  35. scanner.c:301:39: error: expected ‘,’ or ‘...’ before ‘s’
  36. 301 | static bool seq(const char * restrict s, State *state) {
  37. | ^
  38. scanner.c: In function ‘bool seq(const char*)’:
  39. scanner.c:302:23: error: ‘s’ was not declared in this scope
  40. 302 | size_t len = strlen(s);
  41. | ^
  42. scanner.c:23:14: error: ‘state’ was not declared in this scope; did you mean ‘State’?
  43. 23 | #define PEEK state->lexer->lookahead
  44. | ^~~~~
  45. scanner.c:305:18: note: in expansion of macro ‘PEEK’
  46. 305 | int32_t c2 = PEEK;
  47. | ^~~~
  48. scanner.c: In function ‘void consume_until(char*, State*)’:
  49. scanner.c:315:27: error: too many arguments to function ‘bool seq(const char*)’
  50. 315 | while (PEEK != 0 && !seq(target, state)) {
  51. | ~~~^~~~~~~~~~~~~~~
  52. scanner.c:301:13: note: declared here
  53. 301 | static bool seq(const char * restrict s, State *state) {
  54. | ^~~
  55. scanner.c: In function ‘wchar_vec read_string(bool (*)(uint32_t), State*)’:
  56. scanner.c:39:24: error: invalid conversion from ‘void*’ to ‘int32_t*’ {aka ‘int*’} [-fpermissive]
  57. 39 | (vec)->data = realloc((vec)->data, (_cap) * sizeof((vec)->data[0])); \
  58. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  59. | |
  60. | void*
  61. scanner.c:46:35: note: in expansion of macro ‘VEC_RESIZE’
  62. 46 | if ((vec)->cap == (vec)->len) { VEC_RESIZE((vec), MAX(20, (vec)->len * 2)); } \
  63. | ^~~~~~~~~~
  64. scanner.c:342:5: note: in expansion of macro ‘VEC_PUSH’
  65. 342 | VEC_PUSH(&res, c);
  66. | ^~~~~~~~
  67. scanner.c: At global scope:
  68. scanner.c:388:40: error: expected ‘,’ or ‘...’ before ‘s’
  69. 388 | static bool token(const char *restrict s, State *state) {
  70. | ^
  71. scanner.c: In function ‘bool token(const char*)’:
  72. scanner.c:389:14: error: ‘s’ was not declared in this scope
  73. 389 | return seq(s, state) && token_end(PEEK);
  74. | ^
  75. scanner.c:389:17: error: ‘state’ was not declared in this scope; did you mean ‘State’?
  76. 389 | return seq(s, state) && token_end(PEEK);
  77. | ^~~~~
  78. | State
  79. scanner.c: At global scope:
  80. scanner.c:644:50: error: expected ‘,’ or ‘...’ before ‘desc’
  81. 644 | static Result finish(const Sym s, char *restrict desc) {
  82. | ^~~~
  83. scanner.c:652:59: error: expected ‘,’ or ‘...’ before ‘desc’
  84. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  85. | ^~~~
  86. scanner.c: In function ‘Result finish_if_valid(Sym, char*)’:
  87. scanner.c:28:17: error: ‘state’ was not declared in this scope; did you mean ‘State’?
  88. 28 | #define SYM(s) (state->symbols[s])
  89. | ^~~~~
  90. scanner.c:653:10: note: in expansion of macro ‘SYM’
  91. 653 | return SYM(s) ? finish(s, desc) : res_cont;
  92. | ^~~
  93. scanner.c:653:29: error: ‘desc’ was not declared in this scope
  94. 653 | return SYM(s) ? finish(s, desc) : res_cont;
  95. | ^~~~
  96. scanner.c: In function ‘void push(uint16_t, State*)’:
  97. scanner.c:39:24: error: invalid conversion from ‘void*’ to ‘uint16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
  98. 39 | (vec)->data = realloc((vec)->data, (_cap) * sizeof((vec)->data[0])); \
  99. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. | |
  101. | void*
  102. scanner.c:46:35: note: in expansion of macro ‘VEC_RESIZE’
  103. 46 | if ((vec)->cap == (vec)->len) { VEC_RESIZE((vec), MAX(20, (vec)->len * 2)); } \
  104. | ^~~~~~~~~~
  105. scanner.c:661:3: note: in expansion of macro ‘VEC_PUSH’
  106. 661 | VEC_PUSH(state->indents, ind);
  107. | ^~~~~~~~
  108. scanner.c: In function ‘Result end_or_semicolon(char*, State*)’:
  109. scanner.c:707:25: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  110. 707 | return finish_if_valid(SEMICOLON, desc, state);
  111. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  112. scanner.c:652:15: note: declared here
  113. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  114. | ^~~~~~~~~~~~~~~
  115. scanner.c: In function ‘Result eof(State*)’:
  116. scanner.c:759:28: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  117. 759 | return finish(EMPTY, "eof");
  118. | ^~~~~
  119. scanner.c:761:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  120. 761 | Result res = end_or_semicolon("eof", state);
  121. | ^~~~~
  122. scanner.c: In function ‘Result initialize(uint32_t, State*)’:
  123. scanner.c:777:23: error: too many arguments to function ‘bool token(const char*)’
  124. 777 | bool match = token("module", state);
  125. | ~~~~~^~~~~~~~~~~~~~~~~
  126. scanner.c:388:13: note: declared here
  127. 388 | static bool token(const char *restrict s, State *state) {
  128. | ^~~~~
  129. scanner.c:780:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  130. 780 | return finish(INDENT, "init");
  131. | ^~~~~~
  132. scanner.c: In function ‘Result dot(State*)’:
  133. scanner.c:807:64: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  134. 807 | if (SYM(VARSYM) && iswspace(PEEK)) return finish(VARSYM, "dot");
  135. | ^~~~~
  136. scanner.c:809:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  137. 809 | return finish(DOT, "dot");
  138. | ^~~~~
  139. scanner.c: In function ‘Result cpp_workaround(State*)’:
  140. scanner.c:843:12: error: too many arguments to function ‘bool seq(const char*)’
  141. 843 | if (seq("el", state)) {
  142. | ~~~^~~~~~~~~~~~~
  143. scanner.c:301:13: note: declared here
  144. 301 | static bool seq(const char * restrict s, State *state) {
  145. | ^~~
  146. scanner.c:844:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  147. 844 | consume_until("#endif", state);
  148. | ^~~~~~~~
  149. scanner.c:850:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  150. 850 | return finish(CPP, "cpp-else");
  151. | ^~~~~~~~~~
  152. scanner.c:854:24: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  153. 854 | return finish(CPP, "cpp");
  154. | ^~~~~
  155. scanner.c: In function ‘Result dedent(uint32_t, State*)’:
  156. scanner.c:874:56: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  157. 874 | if (smaller_indent(indent, state)) return layout_end("dedent", state);
  158. | ^~~~~~~~
  159. scanner.c: In function ‘Result newline_where(uint32_t, State*)’:
  160. scanner.c:886:14: error: too many arguments to function ‘bool token(const char*)’
  161. 886 | if (token("where", state)) {
  162. | ~~~~~^~~~~~~~~~~~~~~~
  163. scanner.c:388:13: note: declared here
  164. 388 | static bool token(const char *restrict s, State *state) {
  165. | ^~~~~
  166. scanner.c:887:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  167. 887 | return end_or_semicolon("newline_where", state);
  168. | ^~~~~~~~~~~~~~~
  169. scanner.c: In function ‘Result newline_semicolon(uint32_t, State*)’:
  170. scanner.c:899:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  171. 899 | return finish(SEMICOLON, "newline_semicolon");
  172. | ^~~~~~~~~~~~~~~~~~~
  173. scanner.c: In function ‘Result newline_infix(uint32_t, Symbolic, State*)’:
  174. scanner.c:924:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  175. 924 | return layout_end("newline_infix", state);
  176. | ^~~~~~~~~~~~~~~
  177. scanner.c: In function ‘Result where(State*)’:
  178. scanner.c:935:12: error: too many arguments to function ‘bool token(const char*)’
  179. 935 | if (token("where", state)) {
  180. | ~~~~~^~~~~~~~~~~~~~~~
  181. scanner.c:388:13: note: declared here
  182. 388 | static bool token(const char *restrict s, State *state) {
  183. | ^~~~~
  184. scanner.c:938:28: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  185. 938 | return finish(WHERE, "where");
  186. | ^~~~~~~
  187. scanner.c:940:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  188. 940 | return layout_end("where", state);
  189. | ^~~~~~~
  190. scanner.c: In function ‘Result in(State*)’:
  191. scanner.c:949:23: error: too many arguments to function ‘bool token(const char*)’
  192. 949 | if (SYM(IN) && token("in", state)) {
  193. | ~~~~~^~~~~~~~~~~~~
  194. scanner.c:388:13: note: declared here
  195. 388 | static bool token(const char *restrict s, State *state) {
  196. | ^~~~~
  197. scanner.c:952:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  198. 952 | return finish(IN, "in");
  199. | ^~~~
  200. scanner.c: In function ‘Result else_(State*)’:
  201. scanner.c:961:15: error: too many arguments to function ‘bool token(const char*)’
  202. 961 | return token("else", state) ? end_or_semicolon("else", state) : res_cont;
  203. | ~~~~~^~~~~~~~~~~~~~~
  204. scanner.c:388:13: note: declared here
  205. 388 | static bool token(const char *restrict s, State *state) {
  206. | ^~~~~
  207. scanner.c:961:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  208. 961 | return token("else", state) ? end_or_semicolon("else", state) : res_cont;
  209. | ^~~~~~
  210. scanner.c: In function ‘Result qq_start(State*)’:
  211. scanner.c:971:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  212. 971 | if (PEEK == '|') return finish(QQ_START, "qq_start");
  213. | ^~~~~~~~~~
  214. scanner.c: In function ‘Result qq_body(State*)’:
  215. scanner.c:991:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  216. 991 | return finish(QQ_BODY, "qq_body");
  217. | ^~~~~~~~~
  218. scanner.c: In function ‘Result splice(State*)’:
  219. scanner.c:1006:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  220. 1006 | return finish(SPLICE, "splice");
  221. | ^~~~~~~~
  222. scanner.c: In function ‘Result unboxed_close(State*)’:
  223. scanner.c:1016:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  224. 1016 | return finish(UNBOXED_TUPLE_CLOSE, "unboxed_close");
  225. | ^~~~~~~~~~~~~~~
  226. scanner.c: In function ‘Result inline_comment(State*)’:
  227. scanner.c:1040:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  228. 1040 | return finish(COMMENT, "inline_comment");
  229. | ^~~~~~~~~~~~~~~~
  230. scanner.c: In function ‘Result symop_marked(Symbolic, State*)’:
  231. scanner.c:1064:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  232. 1064 | Result res = finish_if_valid(TYCONSYM, "symop", state);
  233. | ^~~~~~~
  234. scanner.c:1064:35: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  235. 1064 | Result res = finish_if_valid(TYCONSYM, "symop", state);
  236. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  237. scanner.c:652:15: note: declared here
  238. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  239. | ^~~~~~~~~~~~~~~
  240. scanner.c:1073:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  241. 1073 | return finish_if_valid(STRICT, "strict", state);
  242. | ^~~~~~~~
  243. scanner.c:1073:29: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  244. 1073 | return finish_if_valid(STRICT, "strict", state);
  245. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  246. scanner.c:652:15: note: declared here
  247. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  248. | ^~~~~~~~~~~~~~~
  249. scanner.c:1077:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  250. 1077 | Result res = finish_if_valid(CONSYM, "symop", state);
  251. | ^~~~~~~
  252. scanner.c:1077:35: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  253. 1077 | Result res = finish_if_valid(CONSYM, "symop", state);
  254. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  255. scanner.c:652:15: note: declared here
  256. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  257. | ^~~~~~~~~~~~~~~
  258. scanner.c: In function ‘Result symop(Symbolic, State*)’:
  259. scanner.c:1107:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  260. 1107 | return finish(BAR, "bar");
  261. | ^~~~~
  262. scanner.c:1109:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  263. 1109 | Result res = layout_end("bar", state);
  264. | ^~~~~
  265. scanner.c:1116:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  266. 1116 | res = finish_if_valid(TYCONSYM, "symop", state);
  267. | ^~~~~~~
  268. scanner.c:1116:24: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  269. 1116 | res = finish_if_valid(TYCONSYM, "symop", state);
  270. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  271. scanner.c:652:15: note: declared here
  272. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  273. | ^~~~~~~~~~~~~~~
  274. scanner.c:1118:33: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  275. 1118 | res = finish_if_valid(VARSYM, "symop", state);
  276. | ^~~~~~~
  277. scanner.c:1118:24: error: too many arguments to function ‘Result finish_if_valid(Sym, char*)’
  278. 1118 | res = finish_if_valid(VARSYM, "symop", state);
  279. | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  280. scanner.c:652:15: note: declared here
  281. 652 | static Result finish_if_valid(const Sym s, char *restrict desc, State *state) {
  282. | ^~~~~~~~~~~~~~~
  283. scanner.c: In function ‘Result minus(State*)’:
  284. scanner.c:1133:11: error: too many arguments to function ‘bool seq(const char*)’
  285. 1133 | if (!seq("--", state)) return res_cont;
  286. | ~~~^~~~~~~~~~~~~
  287. scanner.c:301:13: note: declared here
  288. 301 | static bool seq(const char * restrict s, State *state) {
  289. | ^~~
  290. scanner.c: In function ‘Result multiline_comment_success(State*)’:
  291. scanner.c:1144:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  292. 1144 | return finish(COMMENT, "multiline_comment");
  293. | ^~~~~~~~~~~~~~~~~~~
  294. scanner.c: In function ‘Result close_layout_in_list(State*)’:
  295. scanner.c:1232:28: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  296. 1232 | return finish(END, "bracket");
  297. | ^~~~~~~~~
  298. scanner.c:1240:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  299. 1240 | return finish(COMMA, "comma");
  300. | ^~~~~~~
  301. scanner.c:1242:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  302. 1242 | Result res = layout_end("comma", state);
  303. | ^~~~~~~
  304. scanner.c: In function ‘Result inline_tokens(State*)’:
  305. scanner.c:1279:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  306. 1279 | Result res = layout_end(")", state);
  307. | ^~~
  308. scanner.c: In function ‘Result layout_start(uint32_t, State*)’:
  309. scanner.c:1344:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  310. 1344 | return finish(START, "layout_start");
  311. | ^~~~~~~~~~~~~~
  312. scanner.c: In function ‘Result post_end_semicolon(uint32_t, State*)’:
  313. scanner.c:1366:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  314. 1366 | ? finish(SEMICOLON, "post_end_semicolon")
  315. | ^~~~~~~~~~~~~~~~~~~~
  316. scanner.c: In function ‘Result repeat_end(uint32_t, State*)’:
  317. scanner.c:1375:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  318. 1375 | return layout_end("repeat_end", state);
  319. | ^~~~~~~~~~~~
  320. scanner.c: In function ‘void tree_sitter_haskell_external_scanner_deserialize(void*, char*, unsigned int)’:
  321. scanner.c:39:24: error: invalid conversion from ‘void*’ to ‘uint16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
  322. 39 | (vec)->data = realloc((vec)->data, (_cap) * sizeof((vec)->data[0])); \
  323. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  324. | |
  325. | void*
  326. scanner.c:43:56: note: in expansion of macro ‘VEC_RESIZE’
  327. 43 | #define VEC_GROW(vec, _cap) if ((vec)->cap < (_cap)) { VEC_RESIZE((vec), (_cap)); }
  328. | ^~~~~~~~~~
  329. scanner.c:1610:5: note: in expansion of macro ‘VEC_GROW’
  330. 1610 | VEC_GROW(indents, els);
  331. | ^~~~~~~~
  332. ==> ERROR: A failure occurred in build().
  333. Aborting...
  334.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement