Advertisement
Guest User

mongod centos scons gcc 8.2 fail

a guest
Apr 8th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. file /opt/mongodb/mongo/SConstruct,line 1199:
  2. Configure(confdir = build/scons/opt/sconf_temp)
  3. scons: Configure: Checking whether the C compiler works...
  4. build/scons/opt/sconf_temp/conftest_0.c <-
  5. |
  6. |int main(void)
  7. |{
  8. | return 0;
  9. |}
  10. |
  11. gcc -o build/scons/opt/sconf_temp/conftest_0.o -c build/scons/opt/sconf_temp/conftest_0.c
  12. scons: Configure: yes
  13.  
  14. scons: Configure: Checking whether the C++ compiler works...
  15. build/scons/opt/sconf_temp/conftest_1.cpp <-
  16. |
  17. |int main(void)
  18. |{
  19. | return 0;
  20. |}
  21. |
  22. g++ -o build/scons/opt/sconf_temp/conftest_1.o -c build/scons/opt/sconf_temp/conftest_1.cpp
  23. scons: Configure: yes
  24.  
  25. scons: Configure: Checking that the C++ compiler can link a C++ program...
  26. build/scons/opt/sconf_temp/conftest_2.cpp <-
  27. |
  28. |#include <iostream>
  29. |#include <cstdlib>
  30. |
  31. |int main() {
  32. | std::cout << "Hello, World" << std::endl;
  33. | return EXIT_SUCCESS;
  34. |}
  35. |
  36. g++ -o build/scons/opt/sconf_temp/conftest_2.o -c build/scons/opt/sconf_temp/conftest_2.cpp
  37. g++ -o build/scons/opt/sconf_temp/conftest_2 build/scons/opt/sconf_temp/conftest_2.o
  38. scons: Configure: yes
  39.  
  40. scons: Configure: Checking if C++ compiler "g++" is GCC...
  41. build/scons/opt/sconf_temp/conftest_3.cpp <-
  42. |
  43. |#if defined(__GNUC__) && !defined(__clang__)
  44. |/* we are using toolchain defined(__GNUC__) && !defined(__clang__) */
  45. |#else
  46. |#error
  47. |#endif
  48. |
  49. g++ -o build/scons/opt/sconf_temp/conftest_3.o -c build/scons/opt/sconf_temp/conftest_3.cpp
  50. scons: Configure: yes
  51.  
  52. scons: Configure: Checking if C compiler "gcc" is GCC...
  53. build/scons/opt/sconf_temp/conftest_4.c <-
  54. |
  55. |#if defined(__GNUC__) && !defined(__clang__)
  56. |/* we are using toolchain defined(__GNUC__) && !defined(__clang__) */
  57. |#else
  58. |#error
  59. |#endif
  60. |
  61. gcc -o build/scons/opt/sconf_temp/conftest_4.o -c build/scons/opt/sconf_temp/conftest_4.c
  62. scons: Configure: yes
  63.  
  64. build/scons/opt/sconf_temp/conftest_5.c <-
  65. |
  66. |#if defined(__x86_64) || defined(_M_AMD64)
  67. |/* Detected x86_64 */
  68. |#else
  69. |#error not x86_64
  70. |#endif
  71. |
  72. gcc -o build/scons/opt/sconf_temp/conftest_5.o -c build/scons/opt/sconf_temp/conftest_5.c
  73. scons: Configure: Detected a x86_64 processor
  74.  
  75. scons: Configure: Checking if target OS linux is supported by the toolchain...
  76. build/scons/opt/sconf_temp/conftest_6.c <-
  77. |
  78. |#if defined(__APPLE__)
  79. |#include <TargetConditionals.h>
  80. |#endif
  81. |#if defined(__linux__)
  82. |/* detected linux */
  83. |#else
  84. |#error
  85. |#endif
  86. |
  87. gcc -o build/scons/opt/sconf_temp/conftest_6.o -c build/scons/opt/sconf_temp/conftest_6.c
  88. scons: Configure: yes
  89.  
  90.  
  91. file /opt/mongodb/mongo/SConstruct,line 2043:
  92. Configure(confdir = build/scons/opt/sconf_temp)
  93. scons: Configure: Checking if C compiler is GCC 8.2 or newer...
  94. build/scons/opt/sconf_temp/conftest_7.c <-
  95. |
  96. |#if !defined(__GNUC__) || defined(__clang__)
  97. |#error
  98. |#endif
  99. |
  100. |#if (__GNUC__ < 8) || (__GNUC__ == 8 && __GNUC_MINOR__ < 2)
  101. |#error GCC 8.2 or newer is required to build MongoDB
  102. |#endif
  103. |
  104. |int main(int argc, char* argv[]) {
  105. | return 0;
  106. |}
  107. |
  108. Compiling build/scons/opt/sconf_temp/conftest_7.o
  109. build/scons/opt/sconf_temp/conftest_7.c:7:2: error: #error GCC 8.2 or newer is required to build MongoDB
  110. #error GCC 8.2 or newer is required to build MongoDB
  111. ^
  112. scons: Configure: no
  113.  
  114. scons: Configure: Checking if C++ compiler is GCC 8.2 or newer...
  115. build/scons/opt/sconf_temp/conftest_8.cpp <-
  116. |
  117. |#if !defined(__GNUC__) || defined(__clang__)
  118. |#error
  119. |#endif
  120. |
  121. |#if (__GNUC__ < 8) || (__GNUC__ == 8 && __GNUC_MINOR__ < 2)
  122. |#error GCC 8.2 or newer is required to build MongoDB
  123. |#endif
  124. |
  125. |int main(int argc, char* argv[]) {
  126. | return 0;
  127. |}
  128. |
  129. Compiling build/scons/opt/sconf_temp/conftest_8.o
  130. build/scons/opt/sconf_temp/conftest_8.cpp:7:2: error: #error GCC 8.2 or newer is required to build MongoDB
  131. #error GCC 8.2 or newer is required to build MongoDB
  132. ^
  133. scons: Configure: no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement