Advertisement
TELunus

llvm-mingw Hello World compilation fail

Nov 10th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 KB | None | 0 0
  1. C:\WINDOWS\system32\cmd.exe /C ""C:/Program Files/mingw-w64/llvm-mingw-20211002-ucrt-x86_64/bin/mingw32-make.exe" -j12 SHELL=cmd.exe -e -f Makefile"
  2. "----------Building project:[ CPlusPlusSandbox - Debug ]----------"
  3. mingw32-make.exe[1]: Entering directory 'Z:/Projects/CPlusPlusSandbox'
  4. While building module 'std' imported from main.cpp:1:
  5. In file included from <module-includes>:17:
  6. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  7. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:93:
  8. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\stdlib.h:766:
  9. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\malloc.h:120:25: error: redefinition of '_MarkAllocaS'
  10. static __inline void *_MarkAllocaS(void *_Ptr,unsigned int _Marker) {
  11. ^
  12. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\malloc.h:120:25: note: previous definition is here
  13. static __inline void *_MarkAllocaS(void *_Ptr,unsigned int _Marker) {
  14. ^
  15. While building module 'std' imported from main.cpp:1:
  16. In file included from <module-includes>:17:
  17. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  18. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:93:
  19. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\stdlib.h:766:
  20. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\malloc.h:139:32: error: redefinition of '_freea'
  21. static __inline void __cdecl _freea(void *_Memory) {
  22. ^
  23. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\malloc.h:139:32: note: previous definition is here
  24. static __inline void __cdecl _freea(void *_Memory) {
  25. ^
  26. While building module 'std' imported from main.cpp:1:
  27. In file included from <module-includes>:17:
  28. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  29. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:107:39: error: redefinition of 'abs'
  30. inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
  31. ^
  32. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:107:39: note: previous definition is here
  33. inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
  34. ^
  35. While building module 'std' imported from main.cpp:1:
  36. In file included from <module-includes>:17:
  37. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  38. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:111:44: error: redefinition of 'abs'
  39. inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {
  40. ^
  41. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:111:44: note: previous definition is here
  42. inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {
  43. ^
  44. While building module 'std' imported from main.cpp:1:
  45. In file included from <module-includes>:17:
  46. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  47. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:118:40: error: redefinition of 'abs'
  48. inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT {
  49. ^
  50. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:118:40: note: previous definition is here
  51. inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT {
  52. ^
  53. While building module 'std' imported from main.cpp:1:
  54. In file included from <module-includes>:17:
  55. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  56. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:122:41: error: redefinition of 'abs'
  57. inline _LIBCPP_INLINE_VISIBILITY double abs(double __lcpp_x) _NOEXCEPT {
  58. ^
  59. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:122:41: note: previous definition is here
  60. inline _LIBCPP_INLINE_VISIBILITY double abs(double __lcpp_x) _NOEXCEPT {
  61. ^
  62. While building module 'std' imported from main.cpp:1:
  63. In file included from <module-includes>:17:
  64. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  65. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:127:1: error: redefinition of 'abs'
  66. abs(long double __lcpp_x) _NOEXCEPT {
  67. ^
  68. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:127:1: note: previous definition is here
  69. abs(long double __lcpp_x) _NOEXCEPT {
  70. ^
  71. While building module 'std' imported from main.cpp:1:
  72. In file included from <module-includes>:17:
  73. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  74. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:142:41: error: redefinition of 'div'
  75. inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
  76. ^
  77. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:142:41: note: previous definition is here
  78. inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
  79. ^
  80. While building module 'std' imported from main.cpp:1:
  81. In file included from <module-includes>:17:
  82. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/math.h:308:
  83. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:146:42: error: redefinition of 'div'
  84. inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
  85. ^
  86. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\stdlib.h:146:42: note: previous definition is here
  87. inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
  88. ^
  89. While building module 'std' imported from main.cpp:1:
  90. In file included from <module-includes>:31:
  91. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/complex.h:28:
  92. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\ccomplex:20:
  93. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\complex:236:
  94. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\iosfwd:98:
  95. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\wchar.h:119:
  96. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\wchar.h:1339:20: error: conflicting types for 'wcstok'
  97. wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim,wchar_t **_Ptr) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  98. ^
  99. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\string.h:147:20: note: previous declaration is here
  100. wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  101. ^
  102. While building module 'std' imported from main.cpp:1:
  103. In file included from <module-includes>:31:
  104. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1/complex.h:28:
  105. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\ccomplex:20:
  106. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\complex:242:
  107. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\sstream:184:
  108. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\istream:163:
  109. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\ostream:137:
  110. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\bitset:122:
  111. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\string:527:
  112. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\cwchar:107:
  113. In file included from C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\c++\v1\wchar.h:119:
  114. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\wchar.h:1339:20: error: conflicting types for 'wcstok'
  115. wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim,wchar_t **_Ptr) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  116. ^
  117. C:\Program Files\mingw-w64\llvm-mingw-20211002-ucrt-x86_64\include\string.h:147:20: note: previous declaration is here
  118. wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  119. ^
  120. main.cpp:1:10: fatal error: could not build module 'std'
  121. #include <iostream>;
  122. ~~~~~~~~^
  123. 12 errors generated.
  124. mingw32-make.exe[1]: *** [CPlusPlusSandbox.mk:97: Debug/main.cpp.o] Error 1
  125. mingw32-make.exe: *** [Makefile:5: All] Error 2
  126. mingw32-make.exe[1]: Leaving directory 'Z:/Projects/CPlusPlusSandbox'
  127. ====1 errors, 11 warnings====
  128.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement