Advertisement
TeLLie

Untitled

Dec 1st, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.49 KB | None | 0 0
  1. Try: gcc
  2. Line: gcc -Zexe cmake_bootstrap_1190_test.c -o cmake_bootstrap_1190_test
  3. ---------- file -----------------------
  4.  
  5. #ifdef __cplusplus
  6. # error "The CMAKE_C_COMPILER is set to a C++ compiler"
  7. #endif
  8.  
  9. #include<stdio.h>
  10.  
  11. #if defined(__CLASSIC_C__)
  12. int main(argc, argv)
  13. int argc;
  14. char* argv[];
  15. #else
  16. int main(int argc, char* argv[])
  17. #endif
  18. {
  19. printf("%d%c", (argv != 0), (char)0x0a);
  20. return argc-1;
  21. }
  22.  
  23. ------------------------------------------
  24. 1
  25. Test succeeded
  26. Try: g++
  27. Line: g++ -DTEST1 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
  28. ---------- file -----------------------
  29.  
  30. #if defined(TEST1)
  31. # include <iostream>
  32. #else
  33. # include <iostream.h>
  34. #endif
  35.  
  36. class NeedCXX
  37. {
  38. public:
  39. NeedCXX() { this->Foo = 1; }
  40. int GetFoo() { return this->Foo; }
  41. private:
  42. int Foo;
  43. };
  44. int main()
  45. {
  46. NeedCXX c;
  47. #ifdef TEST3
  48. cout << c.GetFoo() << endl;
  49. #else
  50. std::cout << c.GetFoo() << std::endl;
  51. #endif
  52. return 0;
  53. }
  54.  
  55. ------------------------------------------
  56. In file included from C:/USR/include/sys/types.h:307:0,
  57. from C:/USR/include/InnoTekLIBC/backend.h:31,
  58. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  59. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  60. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  61. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  62. from C:/USR/include/c++/4.9.2/ios:42,
  63. from C:/USR/include/c++/4.9.2/ostream:38,
  64. from C:/USR/include/c++/4.9.2/iostream:39,
  65. from cmake_bootstrap_1190_test.cxx:3:
  66. C:\os2tk45/H/sys/select.h:56:1: error: stray '\32' in program
  67. In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
  68. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  69. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  70. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  71. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  72. from C:/USR/include/c++/4.9.2/ios:42,
  73. from C:/USR/include/c++/4.9.2/ostream:38,
  74. from C:/USR/include/c++/4.9.2/iostream:39,
  75. from cmake_bootstrap_1190_test.cxx:3:
  76. C:\os2tk45/H/sys/time.h:140:1: error: stray '\32' in program
  77. In file included from C:/USR/include/emx/io.h:8:0,
  78. from C:/USR/include/InnoTekLIBC/backend.h:39,
  79. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  80. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  81. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  82. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  83. from C:/USR/include/c++/4.9.2/ios:42,
  84. from C:/USR/include/c++/4.9.2/ostream:38,
  85. from C:/USR/include/c++/4.9.2/iostream:39,
  86. from cmake_bootstrap_1190_test.cxx:3:
  87. C:/USR/include/InnoTekLIBC/fork.h:512:20: error: missing binary operator before token "("
  88. #if __GNUC_PREREQ__(4,2)
  89. ^
  90. In file included from C:/USR/include/sys/fmutex.h:11:0,
  91. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:41,
  92. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  93. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  94. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  95. from C:/USR/include/c++/4.9.2/ios:42,
  96. from C:/USR/include/c++/4.9.2/ostream:38,
  97. from C:/USR/include/c++/4.9.2/iostream:39,
  98. from cmake_bootstrap_1190_test.cxx:3:
  99. C:/USR/include/stdlib.h:90:19: error: expected initializer before '__dead2'
  100. void abort(void) __dead2;
  101. ^
  102. C:/USR/include/stdlib.h:91:15: error: expected initializer before '__pure2'
  103. int abs(int) __pure2;
  104. ^
  105. C:/USR/include/stdlib.h:99:22: error: expected initializer before '__pure2'
  106. div_t div(int, int) __pure2;
  107. ^
  108. C:/USR/include/stdlib.h:100:17: error: expected initializer before '__dead2'
  109. void exit(int) __dead2;
  110. ^
  111. C:/USR/include/stdlib.h:103:18: error: expected initializer before '__pure2'
  112. long labs(long) __pure2;
  113. ^
  114. C:/USR/include/stdlib.h:104:26: error: expected initializer before '__pure2'
  115. ldiv_t ldiv(long, long) __pure2;
  116. ^
  117. In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:45:0,
  118. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  119. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  120. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  121. from C:/USR/include/c++/4.9.2/ios:42,
  122. from C:/USR/include/c++/4.9.2/ostream:38,
  123. from C:/USR/include/c++/4.9.2/iostream:39,
  124. from cmake_bootstrap_1190_test.cxx:3:
  125. C:/USR/include/InnoTekLIBC/thread.h:61:5: error: 'sigset_t' does not name a type
  126. sigset_t SigSetWait;
  127. ^
  128. C:/USR/include/InnoTekLIBC/thread.h:63:5: error: 'siginfo_t' does not name a type
  129. siginfo_t SigInfo;
  130. ^
  131. C:/USR/include/InnoTekLIBC/thread.h:140:5: error: 'sigset_t' does not name a type
  132. sigset_t SigSetPending;
  133. ^
  134. C:/USR/include/InnoTekLIBC/thread.h:143:5: error: 'sigset_t' does not name a type
  135. sigset_t SigSetBlocked;
  136. ^
  137. C:/USR/include/InnoTekLIBC/thread.h:149:5: error: 'sigset_t' does not name a type
  138. sigset_t SigSetBlockedOld;
  139. ^
  140. In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
  141. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  142. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  143. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  144. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  145. from C:/USR/include/c++/4.9.2/ios:42,
  146. from C:/USR/include/c++/4.9.2/ostream:38,
  147. from C:/USR/include/c++/4.9.2/iostream:39,
  148. from cmake_bootstrap_1190_test.cxx:3:
  149. C:\os2tk45/H/sys/time.h:48:8: error: redefinition of 'struct timeval'
  150. struct timeval {
  151. ^
  152. In file included from C:/USR/include/InnoTekLIBC/backend.h:32:0,
  153. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  154. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  155. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  156. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  157. from C:/USR/include/c++/4.9.2/ios:42,
  158. from C:/USR/include/c++/4.9.2/ostream:38,
  159. from C:/USR/include/c++/4.9.2/iostream:39,
  160. from cmake_bootstrap_1190_test.cxx:3:
  161. C:/USR/include/sys/_timeval.h:55:8: error: previous definition of 'struct timeval'
  162. struct timeval {
  163. ^
  164. In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
  165. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
  166. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  167. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  168. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  169. from C:/USR/include/c++/4.9.2/ios:42,
  170. from C:/USR/include/c++/4.9.2/ostream:38,
  171. from C:/USR/include/c++/4.9.2/iostream:39,
  172. from cmake_bootstrap_1190_test.cxx:3:
  173. C:\os2tk45/H/sys/time.h:57:8: error: redefinition of 'struct timespec'
  174. struct timespec {
  175. ^
  176. In file included from C:/USR/include/signal.h:50:0,
  177. from C:/USR/include/InnoTekLIBC/thread.h:45,
  178. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:45,
  179. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  180. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  181. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  182. from C:/USR/include/c++/4.9.2/ios:42,
  183. from C:/USR/include/c++/4.9.2/ostream:38,
  184. from C:/USR/include/c++/4.9.2/iostream:39,
  185. from cmake_bootstrap_1190_test.cxx:3:
  186. C:/USR/include/sys/timespec.h:58:8: error: previous definition of 'struct timespec'
  187. struct timespec {
  188. ^
  189. In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46:0,
  190. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  191. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  192. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  193. from C:/USR/include/c++/4.9.2/ios:42,
  194. from C:/USR/include/c++/4.9.2/ostream:38,
  195. from C:/USR/include/c++/4.9.2/iostream:39,
  196. from cmake_bootstrap_1190_test.cxx:3:
  197. C:/USR/include/InnoTekLIBC/backend.h:731:50: error: 'siginfo_t' does not name a type
  198. int __libc_Back_signalRaise(int iSignalNo, const siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags);
  199. ^
  200. C:/USR/include/InnoTekLIBC/backend.h:811:57: error: 'stack_t' does not name a type
  201. int __libc_Back_signalStack(__LIBC_PTHREAD pThrd, const stack_t *pStack, stack_t *pOldStack);
  202. ^
  203. C:/USR/include/InnoTekLIBC/backend.h:811:74: error: 'stack_t' has not been declared
  204. int __libc_Back_signalStack(__LIBC_PTHREAD pThrd, const stack_t *pStack, stack_t *pOldStack);
  205. ^
  206. C:/USR/include/InnoTekLIBC/backend.h:835:66: error: 'sigset_t' does not name a type
  207. int __libc_Back_signalMask(__LIBC_PTHREAD pThrd, int iHow, const sigset_t * __restrict pSigSetNew, sigset_t * __restrict pSigSetOld);
  208. ^
  209. C:/USR/include/InnoTekLIBC/backend.h:835:100: error: 'sigset_t' has not been declared
  210. int __libc_Back_signalMask(__LIBC_PTHREAD pThrd, int iHow, const sigset_t * __restrict pSigSetNew, sigset_t * __restrict pSigSetOld);
  211. ^
  212. In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46:0,
  213. from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
  214. from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
  215. from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
  216. from C:/USR/include/c++/4.9.2/ios:42,
  217. from C:/USR/include/c++/4.9.2/ostream:38,
  218. from C:/USR/include/c++/4.9.2/iostream:39,
  219. from cmake_bootstrap_1190_test.cxx:3:
  220. C:/USR/include/InnoTekLIBC/backend.h:851:34: error: 'sigset_t' does not name a type
  221. int __libc_Back_signalWait(const sigset_t *pSigSet, siginfo_t *pSigInfo, const struct timespec *pTimeout);
  222. ^
  223. C:/USR/include/InnoTekLIBC/backend.h:851:53: error: 'siginfo_t' has not been declared
  224. int __libc_Back_signalWait(const sigset_t *pSigSet, siginfo_t *pSigInfo, const struct timespec *pTimeout);
  225. ^
  226. C:/USR/include/InnoTekLIBC/backend.h:859:37: error: 'sigset_t' does not name a type
  227. int __libc_Back_signalSuspend(const sigset_t *pSigSet);
  228. ^
  229. C:/USR/include/InnoTekLIBC/backend.h:869:31: error: 'sigset_t' was not declared in this scope
  230. int __libc_Back_signalPending(sigset_t *pSigSet);
  231. ^
  232. C:/USR/include/InnoTekLIBC/backend.h:869:41: error: 'pSigSet' was not declared in this scope
  233. int __libc_Back_signalPending(sigset_t *pSigSet);
  234. ^
  235. C:/USR/include/InnoTekLIBC/backend.h:926:29: error: 'idtype_t' was not declared in this scope
  236. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  237. ^
  238. C:/USR/include/InnoTekLIBC/backend.h:926:54: error: expected primary-expression before 'Id'
  239. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  240. ^
  241. C:/USR/include/InnoTekLIBC/backend.h:926:58: error: 'siginfo_t' was not declared in this scope
  242. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  243. ^
  244. C:/USR/include/InnoTekLIBC/backend.h:926:69: error: 'pSigInfo' was not declared in this scope
  245. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  246. ^
  247. C:/USR/include/InnoTekLIBC/backend.h:926:79: error: expected primary-expression before 'unsigned'
  248. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  249. ^
  250. C:/USR/include/InnoTekLIBC/backend.h:926:98: error: expected primary-expression before 'struct'
  251. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  252. ^
  253. C:/USR/include/InnoTekLIBC/backend.h:926:119: error: expression list treated as compound expression in initializer [-fpermissive]
  254. int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
  255. ^
  256. C:/USR/include/InnoTekLIBC/backend.h:1074:1: error: 'hrtime_t' does not name a type
  257. hrtime_t __libc_Back_timeHighResNano(void);
  258. ^
  259. Test failed to compile
  260. Try: g++
  261. Line: g++ -DTEST2 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
  262. ---------- file -----------------------
  263.  
  264. #if defined(TEST1)
  265. # include <iostream>
  266. #else
  267. # include <iostream.h>
  268. #endif
  269.  
  270. class NeedCXX
  271. {
  272. public:
  273. NeedCXX() { this->Foo = 1; }
  274. int GetFoo() { return this->Foo; }
  275. private:
  276. int Foo;
  277. };
  278. int main()
  279. {
  280. NeedCXX c;
  281. #ifdef TEST3
  282. cout << c.GetFoo() << endl;
  283. #else
  284. std::cout << c.GetFoo() << std::endl;
  285. #endif
  286. return 0;
  287. }
  288.  
  289. ------------------------------------------
  290. cmake_bootstrap_1190_test.cxx:5:23: fatal error: iostream.h: No such file or directory
  291. # include <iostream.h>
  292. ^
  293. compilation terminated.
  294. Test failed to compile
  295. Try: g++
  296. Line: g++ -DTEST3 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
  297. ---------- file -----------------------
  298.  
  299. #if defined(TEST1)
  300. # include <iostream>
  301. #else
  302. # include <iostream.h>
  303. #endif
  304.  
  305. class NeedCXX
  306. {
  307. public:
  308. NeedCXX() { this->Foo = 1; }
  309. int GetFoo() { return this->Foo; }
  310. private:
  311. int Foo;
  312. };
  313. int main()
  314. {
  315. NeedCXX c;
  316. #ifdef TEST3
  317. cout << c.GetFoo() << endl;
  318. #else
  319. std::cout << c.GetFoo() << std::endl;
  320. #endif
  321. return 0;
  322. }
  323.  
  324. ------------------------------------------
  325. cmake_bootstrap_1190_test.cxx:5:23: fatal error: iostream.h: No such file or directory
  326. # include <iostream.h>
  327. ^
  328. compilation terminated.
  329. Test failed to compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement