Advertisement
PoHSuan

Numenta Build Fail using clang++

Jul 10th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. Pohsuans-MacBook-Pro:scripts pohsuanhuang$ CXX='usr/bin/clang++'
  2. Pohsuans-MacBook-Pro:scripts pohsuanhuang$ echo $CXX
  3. usr/bin/clang++
  4. Pohsuans-MacBook-Pro:scripts pohsuanhuang$ CXX='usr/bin/clang++' make -j3
  5. [ 0%] Performing configure step for 'Apr1StaticLib'
  6. [ 0%] Performing configure step for 'CapnProto'
  7. [ 3%] Built target Swig
  8. [ 3%] Performing configure step for 'YamlStaticLib'
  9. -- The CXX compiler identification is unknown
  10. -- Check for working CXX compiler: /Users/pohsuanhuang/miniconda/envs/nupic/bin/c++
  11. -- Check for working CXX compiler: /Users/pohsuanhuang/miniconda/envs/nupic/bin/c++ -- broken
  12. CMake Error at /opt/local/share/cmake-3.3/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  13. The C++ compiler "/Users/pohsuanhuang/miniconda/envs/nupic/bin/c++" is not
  14. able to compile a simple test program.
  15.  
  16. It fails with the following output:
  17.  
  18. Change Dir: /Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/CapnProto/CMakeFiles/CMakeTmp
  19.  
  20.  
  21.  
  22. Run Build Command:"/usr/bin/make" "cmTC_15f6a/fast"
  23.  
  24. /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
  25. CMakeFiles/cmTC_15f6a.dir/build.make CMakeFiles/cmTC_15f6a.dir/build
  26.  
  27. Building CXX object CMakeFiles/cmTC_15f6a.dir/testCXXCompiler.cxx.o
  28.  
  29. /Users/pohsuanhuang/miniconda/envs/nupic/bin/c++ -static-libgcc
  30. -fdiagnostics-show-option -m64 -fPIC -Wno-unused-variable
  31. -Wno-unused-parameter -Wno-incompatible-pointer-types
  32. -Wno-deprecated-declarations -stdlib=libc++ -static-libstdc++ -std=c++11
  33. -DHAVE_UNISTD_H -o CMakeFiles/cmTC_15f6a.dir/testCXXCompiler.cxx.o -c
  34. /Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/CapnProto/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
  35.  
  36.  
  37. c++: error: unrecognized command line option ‘-stdlib=libc++’
  38.  
  39. make[4]: *** [CMakeFiles/cmTC_15f6a.dir/testCXXCompiler.cxx.o] Error 1
  40.  
  41. make[3]: *** [cmTC_15f6a/fast] Error 2
  42.  
  43.  
  44.  
  45.  
  46.  
  47. CMake will not be able to correctly generate this project.
  48. Call Stack (most recent call first):
  49. CMakeLists.txt:1 (project)
  50.  
  51.  
  52. -- Configuring incomplete, errors occurred!
  53. See also "/Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/CapnProto/CMakeFiles/CMakeOutput.log".
  54. See also "/Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/CapnProto/CMakeFiles/CMakeError.log".
  55. make[2]: *** [ThirdParty/Stamp/CapnProto/CapnProto-configure] Error 1
  56. make[1]: *** [external/CMakeFiles/CapnProto.dir/all] Error 2
  57. make[1]: *** Waiting for unfinished jobs....
  58. -- The C compiler identification is unknown
  59. -- Check for working C compiler: /Users/pohsuanhuang/miniconda/envs/nupic/bin/cc
  60. -- Check for working C compiler: /Users/pohsuanhuang/miniconda/envs/nupic/bin/cc -- broken
  61. CMake Error at /opt/local/share/cmake-3.3/Modules/CMakeTestCCompiler.cmake:61 (message):
  62. The C compiler "/Users/pohsuanhuang/miniconda/envs/nupic/bin/cc" is not
  63. able to compile a simple test program.
  64.  
  65. It fails with the following output:
  66.  
  67. Change Dir: /Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/CMakeFiles/CMakeTmp
  68.  
  69.  
  70.  
  71. Run Build Command:"/usr/bin/make" "cmTC_dbf9b/fast"
  72.  
  73. /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
  74. CMakeFiles/cmTC_dbf9b.dir/build.make CMakeFiles/cmTC_dbf9b.dir/build
  75.  
  76. Building C object CMakeFiles/cmTC_dbf9b.dir/testCCompiler.c.o
  77.  
  78. /Users/pohsuanhuang/miniconda/envs/nupic/bin/cc -static-libgcc
  79. -fdiagnostics-show-option -m64 -fPIC -Wno-unused-variable
  80. -Wno-unused-parameter -Wno-incompatible-pointer-types
  81. -Wno-deprecated-declarations -pipe -O2 -mtune=generic -fuse-ld=gold
  82. -fuse-linker-plugin -flto-report -flto -DHAVE_UNISTD_H -o
  83. CMakeFiles/cmTC_dbf9b.dir/testCCompiler.c.o -c
  84. /Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/CMakeFiles/CMakeTmp/testCCompiler.c
  85.  
  86.  
  87. cc1: error: LTO support has not been enabled in this configuration
  88.  
  89. cc1: warning: unrecognized command line option
  90. "-Wno-incompatible-pointer-types" [enabled by default]
  91.  
  92. make[4]: *** [CMakeFiles/cmTC_dbf9b.dir/testCCompiler.c.o] Error 1
  93.  
  94. make[3]: *** [cmTC_dbf9b/fast] Error 2
  95.  
  96.  
  97.  
  98.  
  99.  
  100. CMake will not be able to correctly generate this project.
  101. Call Stack (most recent call first):
  102. CMakeLists.txt:4 (project)
  103.  
  104.  
  105. -- Configuring incomplete, errors occurred!
  106. See also "/Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/CMakeFiles/CMakeOutput.log".
  107. See also "/Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/CMakeFiles/CMakeError.log".
  108. make[2]: *** [ThirdParty/Stamp/YamlStaticLib/YamlStaticLib-configure] Error 1
  109. make[1]: *** [external/CMakeFiles/YamlStaticLib.dir/all] Error 2
  110. checking build system type... x86_64-apple-darwin15.3.0
  111. checking host system type... x86_64-apple-darwin15.3.0
  112. checking target system type... x86_64-apple-darwin15.3.0
  113. Configuring APR library
  114. Platform: x86_64-apple-darwin15.3.0
  115. checking for working mkdir -p... yes
  116. APR Version: 1.5.2
  117. checking for chosen layout... apr
  118. checking for gcc... gcc
  119. checking whether the C compiler works... no
  120. configure: error: in `/Users/pohsuanhuang/miniconda/envs/nupic/project/nupic.core/build/scripts/ThirdParty/Build/Apr1StaticLib':
  121. configure: error: C compiler cannot create executables
  122. See `config.log' for more details
  123. make[2]: *** [ThirdParty/Stamp/Apr1StaticLib/Apr1StaticLib-configure] Error 77
  124. make[1]: *** [external/CMakeFiles/Apr1StaticLib.dir/all] Error 2
  125. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement