Advertisement
Guest User

Error building LLVM with LLVM_ENABLE_MODULES

a guest
May 22nd, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.57 KB | None | 0 0
  1. [1/2029] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/StringRef.cpp.o
  2. FAILED: /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++1y -fmodules -fcxx-modules -fcolor-diagnostics -ffunction-sections -fdata-sections -O3 -Ilib/Support -I../lib/Support -Iinclude -I../include -UNDEBUG -fno-exceptions -fno-rtti -MMD -MT lib/Support/CMakeFiles/LLVMSupport.dir/StringRef.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/StringRef.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/StringRef.cpp.o -c ../lib/Support/StringRef.cpp
  3. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  4. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  5. In file included from <module-includes>:1:
  6. In file included from include/llvm/Support/DataTypes.h:41:
  7. /usr/include/inttypes.h:293:18: error: functions that differ only in their return type cannot be overloaded
  8. extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
  9. ~~~~~~~~~ ^
  10. /usr/include/inttypes.h:293:18: note: previous declaration is here
  11. extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
  12. ~~~~~~~~~ ^
  13. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  14. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  15. In file included from <module-includes>:1:
  16. In file included from include/llvm/Support/DataTypes.h:41:
  17. /usr/include/inttypes.h:324:8: error: redefinition of a 'extern inline' function 'strtoimax' is not supported in C++
  18. __NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr,
  19. ^
  20. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  21. # define __NTH(fct) __LEAF_ATTR fct throw ()
  22. ^
  23. /usr/include/inttypes.h:324:8: note: previous definition is here
  24. __NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr,
  25. ^
  26. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  27. # define __NTH(fct) __LEAF_ATTR fct throw ()
  28. ^
  29. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  30. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  31. In file included from <module-includes>:1:
  32. In file included from include/llvm/Support/DataTypes.h:41:
  33. /usr/include/inttypes.h:336:8: error: redefinition of a 'extern inline' function 'strtoumax' is not supported in C++
  34. __NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr,
  35. ^
  36. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  37. # define __NTH(fct) __LEAF_ATTR fct throw ()
  38. ^
  39. /usr/include/inttypes.h:336:8: note: previous definition is here
  40. __NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr,
  41. ^
  42. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  43. # define __NTH(fct) __LEAF_ATTR fct throw ()
  44. ^
  45. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  46. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  47. In file included from <module-includes>:1:
  48. In file included from include/llvm/Support/DataTypes.h:41:
  49. /usr/include/inttypes.h:348:8: error: redefinition of a 'extern inline' function 'wcstoimax' is not supported in C++
  50. __NTH (wcstoimax (const __gwchar_t *__restrict nptr,
  51. ^
  52. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  53. # define __NTH(fct) __LEAF_ATTR fct throw ()
  54. ^
  55. /usr/include/inttypes.h:348:8: note: previous definition is here
  56. __NTH (wcstoimax (const __gwchar_t *__restrict nptr,
  57. ^
  58. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  59. # define __NTH(fct) __LEAF_ATTR fct throw ()
  60. ^
  61. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  62. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  63. In file included from <module-includes>:1:
  64. In file included from include/llvm/Support/DataTypes.h:41:
  65. /usr/include/inttypes.h:362:8: error: redefinition of a 'extern inline' function 'wcstoumax' is not supported in C++
  66. __NTH (wcstoumax (const __gwchar_t *__restrict nptr,
  67. ^
  68. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  69. # define __NTH(fct) __LEAF_ATTR fct throw ()
  70. ^
  71. /usr/include/inttypes.h:362:8: note: previous definition is here
  72. __NTH (wcstoumax (const __gwchar_t *__restrict nptr,
  73. ^
  74. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  75. # define __NTH(fct) __LEAF_ATTR fct throw ()
  76. ^
  77. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  78. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  79. In file included from <module-includes>:1:
  80. In file included from include/llvm/Support/DataTypes.h:66:
  81. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:
  82. In file included from /usr/include/x86_64-linux-gnu/sys/select.h:43:
  83. /usr/include/time.h:120:8: error: redefinition of 'timespec'
  84. struct timespec
  85. ^
  86. /usr/include/time.h:120:8: note: previous definition is here
  87. struct timespec
  88. ^
  89. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  90. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  91. In file included from <module-includes>:1:
  92. In file included from include/llvm/Support/DataTypes.h:66:
  93. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:
  94. In file included from /usr/include/x86_64-linux-gnu/sys/select.h:45:
  95. /usr/include/x86_64-linux-gnu/bits/time.h:30:8: error: redefinition of 'timeval'
  96. struct timeval
  97. ^
  98. /usr/include/x86_64-linux-gnu/bits/time.h:30:8: note: previous definition is here
  99. struct timeval
  100. ^
  101. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  102. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  103. In file included from <module-includes>:1:
  104. In file included from include/llvm/Support/DataTypes.h:66:
  105. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:
  106. /usr/include/x86_64-linux-gnu/sys/select.h:106:12: error: conflicting types for 'select'
  107. extern int select (int __nfds, fd_set *__restrict __readfds,
  108. ^
  109. /usr/include/x86_64-linux-gnu/sys/select.h:106:12: note: previous declaration is here
  110. extern int select (int __nfds, fd_set *__restrict __readfds,
  111. ^
  112. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  113. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  114. In file included from <module-includes>:1:
  115. In file included from include/llvm/Support/DataTypes.h:66:
  116. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:
  117. /usr/include/x86_64-linux-gnu/sys/select.h:118:12: error: conflicting types for 'pselect'
  118. extern int pselect (int __nfds, fd_set *__restrict __readfds,
  119. ^
  120. /usr/include/x86_64-linux-gnu/sys/select.h:118:12: note: previous declaration is here
  121. extern int pselect (int __nfds, fd_set *__restrict __readfds,
  122. ^
  123. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  124. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  125. In file included from <module-includes>:1:
  126. In file included from include/llvm/Support/DataTypes.h:66:
  127. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:222:
  128. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:39:8: error: redefinition of a 'extern inline' function 'gnu_dev_major' is not supported in C++
  129. __NTH (gnu_dev_major (unsigned long long int __dev))
  130. ^
  131. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  132. # define __NTH(fct) __LEAF_ATTR fct throw ()
  133. ^
  134. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:39:8: note: previous definition is here
  135. __NTH (gnu_dev_major (unsigned long long int __dev))
  136. ^
  137. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  138. # define __NTH(fct) __LEAF_ATTR fct throw ()
  139. ^
  140. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  141. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  142. In file included from <module-includes>:1:
  143. In file included from include/llvm/Support/DataTypes.h:66:
  144. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:222:
  145. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:45:8: error: redefinition of a 'extern inline' function 'gnu_dev_minor' is not supported in C++
  146. __NTH (gnu_dev_minor (unsigned long long int __dev))
  147. ^
  148. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  149. # define __NTH(fct) __LEAF_ATTR fct throw ()
  150. ^
  151. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:45:8: note: previous definition is here
  152. __NTH (gnu_dev_minor (unsigned long long int __dev))
  153. ^
  154. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  155. # define __NTH(fct) __LEAF_ATTR fct throw ()
  156. ^
  157. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  158. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  159. In file included from <module-includes>:1:
  160. In file included from include/llvm/Support/DataTypes.h:66:
  161. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:222:
  162. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:51:8: error: redefinition of a 'extern inline' function 'gnu_dev_makedev' is not supported in C++
  163. __NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
  164. ^
  165. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  166. # define __NTH(fct) __LEAF_ATTR fct throw ()
  167. ^
  168. /usr/include/x86_64-linux-gnu/sys/sysmacros.h:51:8: note: previous definition is here
  169. __NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor))
  170. ^
  171. /usr/include/x86_64-linux-gnu/sys/cdefs.h:62:35: note: expanded from macro '__NTH'
  172. # define __NTH(fct) __LEAF_ATTR fct throw ()
  173. ^
  174. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  175. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  176. In file included from <module-includes>:1:
  177. In file included from include/llvm/Support/DataTypes.h:66:
  178. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:270:
  179. /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:63:7: error: redefinition of 'pthread_attr_t'
  180. union pthread_attr_t
  181. ^
  182. /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:63:7: note: previous definition is here
  183. union pthread_attr_t
  184. ^
  185. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  186. While building module 'LLVM_Support_DataTypes' imported from ../include/llvm/Support/PointerLikeTypeTraits.h:18:
  187. In file included from <module-includes>:1:
  188. In file included from include/llvm/Support/DataTypes.h:66:
  189. In file included from /usr/include/x86_64-linux-gnu/sys/types.h:270:
  190. /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:75:16: error: redefinition of '__pthread_internal_list'
  191. typedef struct __pthread_internal_list
  192. ^
  193. /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:75:16: note: previous definition is here
  194. typedef struct __pthread_internal_list
  195. ^
  196. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  197. In file included from <module-includes>:1:
  198. In file included from /home/james/ll/llvm/build/../include/llvm/ADT/DenseSet.h:17:
  199. In file included from ../include/llvm/ADT/DenseMap.h:17:
  200. In file included from ../include/llvm/ADT/DenseMapInfo.h:17:
  201. ../include/llvm/Support/PointerLikeTypeTraits.h:18:10: fatal error: could not build module 'LLVM_Support_DataTypes'
  202. #include "llvm/Support/DataTypes.h"
  203. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  204. While building module 'LLVM_Utils' imported from ../lib/Support/StringRef.cpp:10:
  205. While building module 'LLVM_C' imported from ../include/llvm/Support/MemoryBuffer.h:17:
  206. In file included from <module-includes>:1:
  207. In file included from /home/james/ll/llvm/build/../include/llvm-c/IRReader.h:17:
  208. In file included from ../include/llvm-c/Core.h:18:
  209. ../include/llvm-c/Support.h:17:10: fatal error: could not build module 'LLVM_Support_DataTypes'
  210. #include "llvm/Support/DataTypes.h"
  211. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  212. ../lib/Support/StringRef.cpp:10:10: fatal error: could not build module 'LLVM_Utils'
  213. #include "llvm/ADT/StringRef.h"
  214. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  215. 17 errors generated.
  216. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement