Advertisement
Guest User

Untitled

a guest
Feb 10th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 14.17 KB | None | 0 0
  1. clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy | wgetpaste
  2.  
  3. -L/usr/local/lib   -lrt -ldl -lpthread
  4. -lLLVMCore -lLLVMSupport -o toyIn file included from toy.cpp:5:
  5. In file included from /usr/include/llvm/IRBuilder.h:18:
  6. In file included from /usr/include/llvm/Instructions.h:23:
  7. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  8. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  9. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  10. In file included from /usr/local/include/llvm/IR/User.h:22:
  11. In file included from /usr/local/include/llvm/IR/Value.h:17:
  12. /usr/local/include/llvm/IR/Use.h:43:7: error: redefinition of 'llvm::PointerLikeTypeTraits<llvm::Use **>'
  13. class PointerLikeTypeTraits<Use**> {
  14.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. /usr/include/llvm/Use.h:43:7: note: previous definition is here
  16. class PointerLikeTypeTraits<Use**> {
  17.       ^
  18. In file included from toy.cpp:5:
  19. In file included from /usr/include/llvm/IRBuilder.h:18:
  20. In file included from /usr/include/llvm/Instructions.h:23:
  21. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  22. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  23. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  24. In file included from /usr/local/include/llvm/IR/User.h:22:
  25. In file included from /usr/local/include/llvm/IR/Value.h:17:
  26. /usr/local/include/llvm/IR/Use.h:58:7: error: redefinition of 'Use'
  27. class Use {
  28.       ^
  29. /usr/include/llvm/Use.h:58:7: note: previous definition is here
  30. class Use {
  31.       ^
  32. In file included from toy.cpp:5:
  33. In file included from /usr/include/llvm/IRBuilder.h:18:
  34. In file included from /usr/include/llvm/Instructions.h:23:
  35. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  36. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  37. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  38. In file included from /usr/local/include/llvm/IR/User.h:22:
  39. In file included from /usr/local/include/llvm/IR/Value.h:17:
  40. /usr/local/include/llvm/IR/Use.h:151:19: error: redefinition of 'llvm::simplify_type<llvm::Use>'
  41. template<> struct simplify_type<Use> {
  42.                   ^~~~~~~~~~~~~~~~~~
  43. /usr/include/llvm/Use.h:151:19: note: previous definition is here
  44. template<> struct simplify_type<Use> {
  45.                   ^
  46. In file included from toy.cpp:5:
  47. In file included from /usr/include/llvm/IRBuilder.h:18:
  48. In file included from /usr/include/llvm/Instructions.h:23:
  49. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  50. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  51. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  52. In file included from /usr/local/include/llvm/IR/User.h:22:
  53. In file included from /usr/local/include/llvm/IR/Value.h:17:
  54. /usr/local/include/llvm/IR/Use.h:157:19: error: redefinition of 'llvm::simplify_type<const llvm::Use>'
  55. template<> struct simplify_type<const Use> {
  56.                   ^~~~~~~~~~~~~~~~~~~~~~~~
  57. /usr/include/llvm/Use.h:157:19: note: previous definition is here
  58. template<> struct simplify_type<const Use> {
  59.                   ^
  60. In file included from toy.cpp:5:
  61. In file included from /usr/include/llvm/IRBuilder.h:18:
  62. In file included from /usr/include/llvm/Instructions.h:23:
  63. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  64. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  65. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  66. In file included from /usr/local/include/llvm/IR/User.h:22:
  67. In file included from /usr/local/include/llvm/IR/Value.h:17:
  68. /usr/local/include/llvm/IR/Use.h:167:7: error: redefinition of 'value_use_iterator'
  69. class value_use_iterator : public std::iterator<std::forward_iterator_tag,
  70.       ^
  71. /usr/include/llvm/Use.h:167:7: note: previous definition is here
  72. class value_use_iterator : public std::iterator<std::forward_iterator_tag,
  73.       ^
  74. In file included from toy.cpp:5:
  75. In file included from /usr/include/llvm/IRBuilder.h:18:
  76. In file included from /usr/include/llvm/Instructions.h:23:
  77. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  78. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  79. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  80. In file included from /usr/local/include/llvm/IR/User.h:22:
  81. /usr/local/include/llvm/IR/Value.h:61:7: error: redefinition of 'Value'
  82. class Value {
  83.       ^
  84. /usr/include/llvm/Value.h:61:7: note: previous definition is here
  85. class Value {
  86.       ^
  87. In file included from toy.cpp:5:
  88. In file included from /usr/include/llvm/IRBuilder.h:18:
  89. In file included from /usr/include/llvm/Instructions.h:23:
  90. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  91. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  92. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  93. In file included from /usr/local/include/llvm/IR/User.h:22:
  94. /usr/local/include/llvm/IR/Value.h:320:21: error: redefinition of 'operator<<'
  95. inline raw_ostream &operator<<(raw_ostream &OS, const Value &V) {
  96.                     ^
  97. /usr/include/llvm/Value.h:320:21: note: previous definition is here
  98. inline raw_ostream &operator<<(raw_ostream &OS, const Value &V) {
  99.                     ^
  100. In file included from toy.cpp:5:
  101. In file included from /usr/include/llvm/IRBuilder.h:18:
  102. In file included from /usr/include/llvm/Instructions.h:23:
  103. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  104. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  105. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  106. In file included from /usr/local/include/llvm/IR/User.h:22:
  107. /usr/local/include/llvm/IR/Value.h:325:11: error: redefinition of 'set'
  108. void Use::set(Value *V) {
  109.           ^
  110. /usr/include/llvm/Value.h:325:11: note: previous definition is here
  111. void Use::set(Value *V) {
  112.           ^
  113. In file included from toy.cpp:5:
  114. In file included from /usr/include/llvm/IRBuilder.h:18:
  115. In file included from /usr/include/llvm/Instructions.h:23:
  116. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  117. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  118. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  119. In file included from /usr/local/include/llvm/IR/User.h:22:
  120. /usr/local/include/llvm/IR/Value.h:335:20: error: redefinition of 'llvm::isa_impl<llvm::Constant, llvm::Value>'
  121. template <> struct isa_impl<Constant, Value> {
  122.                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  123. /usr/include/llvm/Value.h:335:20: note: previous definition is here
  124. template <> struct isa_impl<Constant, Value> {
  125.                    ^
  126. In file included from toy.cpp:5:
  127. In file included from /usr/include/llvm/IRBuilder.h:18:
  128. In file included from /usr/include/llvm/Instructions.h:23:
  129. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  130. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  131. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  132. In file included from /usr/local/include/llvm/IR/User.h:22:
  133. /usr/local/include/llvm/IR/Value.h:342:20: error: redefinition of 'llvm::isa_impl<llvm::Argument, llvm::Value>'
  134. template <> struct isa_impl<Argument, Value> {
  135.                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  136. /usr/include/llvm/Value.h:342:20: note: previous definition is here
  137. template <> struct isa_impl<Argument, Value> {
  138.                    ^
  139. In file included from toy.cpp:5:
  140. In file included from /usr/include/llvm/IRBuilder.h:18:
  141. In file included from /usr/include/llvm/Instructions.h:23:
  142. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  143. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  144. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  145. In file included from /usr/local/include/llvm/IR/User.h:22:
  146. /usr/local/include/llvm/IR/Value.h:348:20: error: redefinition of 'llvm::isa_impl<llvm::InlineAsm, llvm::Value>'
  147. template <> struct isa_impl<InlineAsm, Value> {
  148.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
  149. /usr/include/llvm/Value.h:348:20: note: previous definition is here
  150. template <> struct isa_impl<InlineAsm, Value> {
  151.                    ^
  152. In file included from toy.cpp:5:
  153. In file included from /usr/include/llvm/IRBuilder.h:18:
  154. In file included from /usr/include/llvm/Instructions.h:23:
  155. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  156. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  157. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  158. In file included from /usr/local/include/llvm/IR/User.h:22:
  159. /usr/local/include/llvm/IR/Value.h:354:20: error: redefinition of 'llvm::isa_impl<llvm::Instruction, llvm::Value>'
  160. template <> struct isa_impl<Instruction, Value> {
  161.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  162. /usr/include/llvm/Value.h:354:20: note: previous definition is here
  163. template <> struct isa_impl<Instruction, Value> {
  164.                    ^
  165. In file included from toy.cpp:5:
  166. In file included from /usr/include/llvm/IRBuilder.h:18:
  167. In file included from /usr/include/llvm/Instructions.h:23:
  168. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  169. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  170. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  171. In file included from /usr/local/include/llvm/IR/User.h:22:
  172. /usr/local/include/llvm/IR/Value.h:360:20: error: redefinition of 'llvm::isa_impl<llvm::BasicBlock, llvm::Value>'
  173. template <> struct isa_impl<BasicBlock, Value> {
  174.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  175. /usr/include/llvm/Value.h:360:20: note: previous definition is here
  176. template <> struct isa_impl<BasicBlock, Value> {
  177.                    ^
  178. In file included from toy.cpp:5:
  179. In file included from /usr/include/llvm/IRBuilder.h:18:
  180. In file included from /usr/include/llvm/Instructions.h:23:
  181. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  182. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  183. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  184. In file included from /usr/local/include/llvm/IR/User.h:22:
  185. /usr/local/include/llvm/IR/Value.h:366:20: error: redefinition of 'llvm::isa_impl<llvm::Function, llvm::Value>'
  186. template <> struct isa_impl<Function, Value> {
  187.                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  188. /usr/include/llvm/Value.h:366:20: note: previous definition is here
  189. template <> struct isa_impl<Function, Value> {
  190.                    ^
  191. In file included from toy.cpp:5:
  192. In file included from /usr/include/llvm/IRBuilder.h:18:
  193. In file included from /usr/include/llvm/Instructions.h:23:
  194. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  195. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  196. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  197. In file included from /usr/local/include/llvm/IR/User.h:22:
  198. /usr/local/include/llvm/IR/Value.h:372:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalVariable, llvm::Value>'
  199. template <> struct isa_impl<GlobalVariable, Value> {
  200.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  201. /usr/include/llvm/Value.h:372:20: note: previous definition is here
  202. template <> struct isa_impl<GlobalVariable, Value> {
  203.                    ^
  204. In file included from toy.cpp:5:
  205. In file included from /usr/include/llvm/IRBuilder.h:18:
  206. In file included from /usr/include/llvm/Instructions.h:23:
  207. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  208. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  209. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  210. In file included from /usr/local/include/llvm/IR/User.h:22:
  211. /usr/local/include/llvm/IR/Value.h:378:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalAlias, llvm::Value>'
  212. template <> struct isa_impl<GlobalAlias, Value> {
  213.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  214. /usr/include/llvm/Value.h:378:20: note: previous definition is here
  215. template <> struct isa_impl<GlobalAlias, Value> {
  216.                    ^
  217. In file included from toy.cpp:5:
  218. In file included from /usr/include/llvm/IRBuilder.h:18:
  219. In file included from /usr/include/llvm/Instructions.h:23:
  220. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  221. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  222. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  223. In file included from /usr/local/include/llvm/IR/User.h:22:
  224. /usr/local/include/llvm/IR/Value.h:384:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalValue, llvm::Value>'
  225. template <> struct isa_impl<GlobalValue, Value> {
  226.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  227. /usr/include/llvm/Value.h:384:20: note: previous definition is here
  228. template <> struct isa_impl<GlobalValue, Value> {
  229.                    ^
  230. In file included from toy.cpp:5:
  231. In file included from /usr/include/llvm/IRBuilder.h:18:
  232. In file included from /usr/include/llvm/Instructions.h:23:
  233. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  234. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  235. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  236. In file included from /usr/local/include/llvm/IR/User.h:22:
  237. /usr/local/include/llvm/IR/Value.h:391:20: error: redefinition of 'llvm::isa_impl<llvm::MDNode, llvm::Value>'
  238. template <> struct isa_impl<MDNode, Value> {
  239.                    ^~~~~~~~~~~~~~~~~~~~~~~
  240. /usr/include/llvm/Value.h:391:20: note: previous definition is here
  241. template <> struct isa_impl<MDNode, Value> {
  242.                    ^
  243. In file included from toy.cpp:5:
  244. In file included from /usr/include/llvm/IRBuilder.h:18:
  245. In file included from /usr/include/llvm/Instructions.h:23:
  246. In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
  247. In file included from /usr/local/include/llvm/IR/Constants.h:27:
  248. In file included from /usr/local/include/llvm/IR/Constant.h:17:
  249. In file included from /usr/local/include/llvm/IR/User.h:22:
  250. /usr/local/include/llvm/IR/Value.h:399:7: error: redefinition of 'llvm::PointerLikeTypeTraits<llvm::Value *>'
  251. class PointerLikeTypeTraits<Value*> {
  252.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  253. /usr/include/llvm/Value.h:399:7: note: previous definition is here
  254. class PointerLikeTypeTraits<Value*> {
  255.       ^
  256. fatal error: too many errors emitted, stopping now [-ferror-limit=]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement