Posted to tcl by mookie at Fri Mar 12 20:08:11 GMT 2021view raw

  1. OS: FreeBSD 12
  2. TCL: 5.6.(latest from fossil)
  3. Source: Critcl-3.1.18.1 version
  4. tcl compile with flags: ./configure
  5.  
  6. $ critcl bgexec.tcl
  7. (provide bgexec 3.0) (tclStubsPtr => TclStubs *tclStubsPtr;)
  8. (tclPlatStubsPtr => TclPlatStubs *tclPlatStubsPtr;)
  9.  
  10. Fri Mar 12 20:05:03 +0000 2021 - /srv/scrap/bgexec.tcl
  11.  
  12. gcc
  13. -c
  14. -fPIC
  15. -DUSE_THREAD_ALLOC=1
  16. -D_REENTRANT=1
  17. -D_THREAD_SAFE=1
  18. -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
  19. -DHAVE_READDIR_R=1
  20. -DTCL_THREADS=1
  21. -DUSE_TCL_STUBS
  22. -I/usr/local/lib/tcl8.6/critcl3.1.18/critcl_c/tcl8.4
  23. -I/srv/.critcl/freebsd12-amd64
  24. -o
  25. /srv/.critcl/freebsd12-amd64/v3118_27b7121cd0d23600eebbc100c4fdd216_pic.o
  26. /srv/.critcl/freebsd12-amd64/v3118_27b7121cd0d23600eebbc100c4fdd216.c
  27. -O2
  28. -DNDEBUG
  29.  
  30. bgexec.tcl:51: warning: "NDEBUG" redefined
  31. 51 | #define NDEBUG
  32. |
  33. <command-line>: note: this is the location of the previous definition
  34. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  35. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  36. | ^
  37. bgexec.tcl:598:43: note: in expansion of macro 'Blt_Offset'
  38. 598 | {BLT_SWITCH_STRING, "-decodeoutput", Blt_Offset(BgExec, outputEncodingName),
  39. | ^~~~~~~~~~
  40. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  41. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  42. | ^
  43. bgexec.tcl:600:42: note: in expansion of macro 'Blt_Offset'
  44. 600 | {BLT_SWITCH_STRING, "-decodeerror", Blt_Offset(BgExec, errorEncodingName),
  45. | ^~~~~~~~~~
  46. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  47. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  48. | ^
  49. bgexec.tcl:602:36: note: in expansion of macro 'Blt_Offset'
  50. 602 | {BLT_SWITCH_BOOLEAN, "-echo", Blt_Offset(BgExec, sink2.echo), 0},
  51. | ^~~~~~~~~~
  52. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  53. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  54. | ^
  55. bgexec.tcl:603:36: note: in expansion of macro 'Blt_Offset'
  56. 603 | {BLT_SWITCH_STRING, "-error", Blt_Offset(BgExec, sink2.doneVar), 0},
  57. | ^~~~~~~~~~
  58. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  59. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  60. | ^
  61. bgexec.tcl:604:37: note: in expansion of macro 'Blt_Offset'
  62. 604 | {BLT_SWITCH_STRING, "-update", Blt_Offset(BgExec, sink1.updateVar), 0},
  63. | ^~~~~~~~~~
  64. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  65. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  66. | ^
  67. bgexec.tcl:605:37: note: in expansion of macro 'Blt_Offset'
  68. 605 | {BLT_SWITCH_STRING, "-output", Blt_Offset(BgExec, sink1.doneVar), 0},
  69. | ^~~~~~~~~~
  70. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  71. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  72. | ^
  73. bgexec.tcl:606:40: note: in expansion of macro 'Blt_Offset'
  74. 606 | {BLT_SWITCH_STRING, "-lasterror", Blt_Offset(BgExec, sink2.updateVar), 0},
  75. | ^~~~~~~~~~
  76. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  77. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  78. | ^
  79. bgexec.tcl:607:41: note: in expansion of macro 'Blt_Offset'
  80. 607 | {BLT_SWITCH_STRING, "-lastoutput", Blt_Offset(BgExec, sink1.updateVar), 0},
  81. | ^~~~~~~~~~
  82. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  83. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  84. | ^
  85. bgexec.tcl:608:36: note: in expansion of macro 'Blt_Offset'
  86. 608 | {BLT_SWITCH_LIST, "-onerror", Blt_Offset(BgExec, sink2.updateCmd), 0},
  87. | ^~~~~~~~~~
  88. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  89. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  90. | ^
  91. bgexec.tcl:609:37: note: in expansion of macro 'Blt_Offset'
  92. 609 | {BLT_SWITCH_LIST, "-onoutput", Blt_Offset(BgExec, sink1.updateCmd), 0},
  93. | ^~~~~~~~~~
  94. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  95. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  96. | ^
  97. bgexec.tcl:610:43: note: in expansion of macro 'Blt_Offset'
  98. 610 | {BLT_SWITCH_BOOLEAN, "-keepnewline", Blt_Offset(BgExec, keepNewline), 0},
  99. | ^~~~~~~~~~
  100. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  101. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  102. | ^
  103. bgexec.tcl:611:37: note: in expansion of macro 'Blt_Offset'
  104. 611 | {BLT_SWITCH_BOOLEAN, "-check", Blt_Offset(BgExec, interval), 0},
  105. | ^~~~~~~~~~
  106. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  107. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  108. | ^
  109. bgexec.tcl:612:41: note: in expansion of macro 'Blt_Offset'
  110. 612 | {BLT_SWITCH_CUSTOM, "-killsignal", Blt_Offset(BgExec, signalNum), 0,
  111. | ^~~~~~~~~~
  112. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  113. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  114. | ^
  115. bgexec.tcl:614:44: note: in expansion of macro 'Blt_Offset'
  116. 614 | {BLT_SWITCH_BOOLEAN, "-linebuffered", Blt_Offset(BgExec, lineBuffered), 0},
  117. | ^~~~~~~~~~
  118. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  119. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  120. | ^
  121. bgexec.tcl:615:42: note: in expansion of macro 'Blt_Offset'
  122. 615 | {BLT_SWITCH_BOOLEAN, "-ignorecode", Blt_Offset(BgExec, ignoreExitCode), 0},
  123. | ^~~~~~~~~~
  124. bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  125. 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  126. | ^
  127. bgexec.tcl:616:36: note: in expansion of macro 'Blt_Offset'
  128. 616 | {BLT_SWITCH_STRING, "-input", Blt_Offset(BgExec, inputVar), 0}, //DAS
  129. | ^~~~~~~~~~
  130. bgexec.tcl: In function 'DestroyBgExec':
  131. bgexec.tcl:1371:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  132. 1371 | Tcl_DetachPids(1, (Tcl_Pid *)bgPtr->procIds[i]);
  133. | ^
  134. bgexec.tcl: In function 'TimerProc':
  135. bgexec.tcl:1457:23: error: storage size of 'waitStatus' isn't known
  136. 1457 | WAIT_STATUS_TYPE waitStatus, lastStatus;
  137. | ^~~~~~~~~~
  138. bgexec.tcl:1457:35: error: storage size of 'lastStatus' isn't known
  139. 1457 | WAIT_STATUS_TYPE waitStatus, lastStatus;
  140. | ^~~~~~~~~~
  141. bgexec.tcl: In function 'SetupStdFile':
  142. bgexec.tcl:1918:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  143. 1918 | fd = (int)clientData;
  144. | ^
  145. bgexec.tcl: In function 'CreateProcess':
  146. bgexec.tcl:2105:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  147. 2105 | Tcl_WaitPid((Tcl_Pid)pid, &status, WNOHANG);
  148. | ^
  149. bgexec.tcl: In function 'FileForRedirect':
  150. bgexec.tcl:2190:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  151. 2190 | fd = (int)clientData;
  152. | ^
  153. bgexec.tcl: In function 'tcl__bgexec2':
  154. bgexec.tcl:3359:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  155. 3359 | chan = Tcl_MakeFileChannel((void*)inFd, TCL_WRITABLE);
  156. | ^
  157.  
  158. ERROR while compiling code in /srv/scrap/bgexec.tcl:
  159. child process exited abnormally
  160.  
  161. critcl build failed (/srv/scrap/bgexec.tcl)
  162. Files left in /srv/.critcl/freebsd12-amd64
  163. FAILURES 1
  164. FAILED: bgexec.tcl
  165. FAILED
  166. FAILED Fri Mar 12 20:05:03 +0000 2021 - /srv/scrap/bgexec.tcl
  167. FAILED
  168. FAILED gcc
  169. FAILED -c
  170. FAILED -fPIC
  171. FAILED -DUSE_THREAD_ALLOC=1
  172. FAILED -D_REENTRANT=1
  173. FAILED -D_THREAD_SAFE=1
  174. FAILED -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
  175. FAILED -DHAVE_READDIR_R=1
  176. FAILED -DTCL_THREADS=1
  177. FAILED -DUSE_TCL_STUBS
  178. FAILED -I/usr/local/lib/tcl8.6/critcl3.1.18/critcl_c/tcl8.4
  179. FAILED -I/srv/.critcl/freebsd12-amd64
  180. FAILED -o
  181. FAILED /srv/.critcl/freebsd12-amd64/v3118_27b7121cd0d23600eebbc100c4fdd216_pic.o
  182. FAILED /srv/.critcl/freebsd12-amd64/v3118_27b7121cd0d23600eebbc100c4fdd216.c
  183. FAILED -O2
  184. FAILED -DNDEBUG
  185. FAILED
  186. FAILED bgexec.tcl:51: warning: "NDEBUG" redefined
  187. FAILED 51 | #define NDEBUG
  188. FAILED |
  189. FAILED <command-line>: note: this is the location of the previous definition
  190. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  191. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  192. FAILED | ^
  193. FAILED bgexec.tcl:598:43: note: in expansion of macro 'Blt_Offset'
  194. FAILED 598 | {BLT_SWITCH_STRING, "-decodeoutput", Blt_Offset(BgExec, outputEncodingName),
  195. FAILED | ^~~~~~~~~~
  196. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  197. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  198. FAILED | ^
  199. FAILED bgexec.tcl:600:42: note: in expansion of macro 'Blt_Offset'
  200. FAILED 600 | {BLT_SWITCH_STRING, "-decodeerror", Blt_Offset(BgExec, errorEncodingName),
  201. FAILED | ^~~~~~~~~~
  202. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  203. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  204. FAILED | ^
  205. FAILED bgexec.tcl:602:36: note: in expansion of macro 'Blt_Offset'
  206. FAILED 602 | {BLT_SWITCH_BOOLEAN, "-echo", Blt_Offset(BgExec, sink2.echo), 0},
  207. FAILED | ^~~~~~~~~~
  208. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  209. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  210. FAILED | ^
  211. FAILED bgexec.tcl:603:36: note: in expansion of macro 'Blt_Offset'
  212. FAILED 603 | {BLT_SWITCH_STRING, "-error", Blt_Offset(BgExec, sink2.doneVar), 0},
  213. FAILED | ^~~~~~~~~~
  214. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  215. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  216. FAILED | ^
  217. FAILED bgexec.tcl:604:37: note: in expansion of macro 'Blt_Offset'
  218. FAILED 604 | {BLT_SWITCH_STRING, "-update", Blt_Offset(BgExec, sink1.updateVar), 0},
  219. FAILED | ^~~~~~~~~~
  220. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  221. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  222. FAILED | ^
  223. FAILED bgexec.tcl:605:37: note: in expansion of macro 'Blt_Offset'
  224. FAILED 605 | {BLT_SWITCH_STRING, "-output", Blt_Offset(BgExec, sink1.doneVar), 0},
  225. FAILED | ^~~~~~~~~~
  226. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  227. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  228. FAILED | ^
  229. FAILED bgexec.tcl:606:40: note: in expansion of macro 'Blt_Offset'
  230. FAILED 606 | {BLT_SWITCH_STRING, "-lasterror", Blt_Offset(BgExec, sink2.updateVar), 0},
  231. FAILED | ^~~~~~~~~~
  232. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  233. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  234. FAILED | ^
  235. FAILED bgexec.tcl:607:41: note: in expansion of macro 'Blt_Offset'
  236. FAILED 607 | {BLT_SWITCH_STRING, "-lastoutput", Blt_Offset(BgExec, sink1.updateVar), 0},
  237. FAILED | ^~~~~~~~~~
  238. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  239. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  240. FAILED | ^
  241. FAILED bgexec.tcl:608:36: note: in expansion of macro 'Blt_Offset'
  242. FAILED 608 | {BLT_SWITCH_LIST, "-onerror", Blt_Offset(BgExec, sink2.updateCmd), 0},
  243. FAILED | ^~~~~~~~~~
  244. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  245. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  246. FAILED | ^
  247. FAILED bgexec.tcl:609:37: note: in expansion of macro 'Blt_Offset'
  248. FAILED 609 | {BLT_SWITCH_LIST, "-onoutput", Blt_Offset(BgExec, sink1.updateCmd), 0},
  249. FAILED | ^~~~~~~~~~
  250. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  251. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  252. FAILED | ^
  253. FAILED bgexec.tcl:610:43: note: in expansion of macro 'Blt_Offset'
  254. FAILED 610 | {BLT_SWITCH_BOOLEAN, "-keepnewline", Blt_Offset(BgExec, keepNewline), 0},
  255. FAILED | ^~~~~~~~~~
  256. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  257. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  258. FAILED | ^
  259. FAILED bgexec.tcl:611:37: note: in expansion of macro 'Blt_Offset'
  260. FAILED 611 | {BLT_SWITCH_BOOLEAN, "-check", Blt_Offset(BgExec, interval), 0},
  261. FAILED | ^~~~~~~~~~
  262. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  263. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  264. FAILED | ^
  265. FAILED bgexec.tcl:612:41: note: in expansion of macro 'Blt_Offset'
  266. FAILED 612 | {BLT_SWITCH_CUSTOM, "-killsignal", Blt_Offset(BgExec, signalNum), 0,
  267. FAILED | ^~~~~~~~~~
  268. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  269. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  270. FAILED | ^
  271. FAILED bgexec.tcl:614:44: note: in expansion of macro 'Blt_Offset'
  272. FAILED 614 | {BLT_SWITCH_BOOLEAN, "-linebuffered", Blt_Offset(BgExec, lineBuffered), 0},
  273. FAILED | ^~~~~~~~~~
  274. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  275. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  276. FAILED | ^
  277. FAILED bgexec.tcl:615:42: note: in expansion of macro 'Blt_Offset'
  278. FAILED 615 | {BLT_SWITCH_BOOLEAN, "-ignorecode", Blt_Offset(BgExec, ignoreExitCode), 0},
  279. FAILED | ^~~~~~~~~~
  280. FAILED bgexec.tcl:179:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  281. FAILED 179 | #define Blt_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
  282. FAILED | ^
  283. FAILED bgexec.tcl:616:36: note: in expansion of macro 'Blt_Offset'
  284. FAILED 616 | {BLT_SWITCH_STRING, "-input", Blt_Offset(BgExec, inputVar), 0}, //DAS
  285. FAILED | ^~~~~~~~~~
  286. FAILED bgexec.tcl: In function 'DestroyBgExec':
  287. FAILED bgexec.tcl:1371:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  288. FAILED 1371 | Tcl_DetachPids(1, (Tcl_Pid *)bgPtr->procIds[i]);
  289. FAILED | ^
  290. FAILED bgexec.tcl: In function 'TimerProc':
  291. FAILED bgexec.tcl:1457:23: error: storage size of 'waitStatus' isn't known
  292. FAILED 1457 | WAIT_STATUS_TYPE waitStatus, lastStatus;
  293. FAILED | ^~~~~~~~~~
  294. FAILED bgexec.tcl:1457:35: error: storage size of 'lastStatus' isn't known
  295. FAILED 1457 | WAIT_STATUS_TYPE waitStatus, lastStatus;
  296. FAILED | ^~~~~~~~~~
  297. FAILED bgexec.tcl: In function 'SetupStdFile':
  298. FAILED bgexec.tcl:1918:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  299. FAILED 1918 | fd = (int)clientData;
  300. FAILED | ^
  301. FAILED bgexec.tcl: In function 'CreateProcess':
  302. FAILED bgexec.tcl:2105:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  303. FAILED 2105 | Tcl_WaitPid((Tcl_Pid)pid, &status, WNOHANG);
  304. FAILED | ^
  305. FAILED bgexec.tcl: In function 'FileForRedirect':
  306. FAILED bgexec.tcl:2190:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  307. FAILED 2190 | fd = (int)clientData;
  308. FAILED | ^
  309. FAILED bgexec.tcl: In function 'tcl__bgexec2':
  310. FAILED bgexec.tcl:3359:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  311. FAILED 3359 | chan = Tcl_MakeFileChannel((void*)inFd, TCL_WRITABLE);
  312. FAILED | ^
  313. FAILED
  314. FAILED ERROR while compiling code in /srv/scrap/bgexec.tcl:
  315. FAILED child process exited abnormally
  316. FAILED
  317. $
  318.