Guest User

Cmake Build Fail

a guest
Oct 19th, 2017
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (cv) root@ubuntu:~# pip install dlib
  2. The directory '/home/shafi/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  3. The directory '/home/shafi/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  4. Collecting dlib
  5. Downloading dlib-19.7.0.tar.gz (4.0MB)
  6. 100% |████████████████████████████████| 4.0MB 246kB/s
  7. Installing collected packages: dlib
  8. Running setup.py install for dlib ... error
  9. Complete output from command /home/shafi/.virtualenvs/cv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8gm4jy99/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5j_r484x-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/shafi/.virtualenvs/cv/include/site/python3.5/dlib:
  10. running install
  11. running build
  12. Detected Python architecture: 64bit
  13. Detected platform: linux
  14. Configuring cmake ...
  15. -- The C compiler identification is GNU 5.4.0
  16. -- The CXX compiler identification is GNU 5.4.0
  17. -- Check for working C compiler: /usr/bin/cc
  18. -- Check for working C compiler: /usr/bin/cc -- works
  19. -- Detecting C compiler ABI info
  20. -- Detecting C compiler ABI info - done
  21. -- Detecting C compile features
  22. -- Detecting C compile features - done
  23. -- Check for working CXX compiler: /usr/bin/c++
  24. -- Check for working CXX compiler: /usr/bin/c++ -- works
  25. -- Detecting CXX compiler ABI info
  26. -- Detecting CXX compiler ABI info - done
  27. -- Detecting CXX compile features
  28. -- Detecting CXX compile features - done
  29. -- Could NOT find Boost
  30. -- Boost version: 1.58.0
  31. -- Found the following Boost libraries:
  32. -- python-py35
  33. -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable version "3.5.2", minimum required is "3.4")
  34. -- USING BOOST_LIBS: /usr/lib/x86_64-linux-gnu/libboost_python-py35.so
  35. -- C++11 activated.
  36. -- Enabling SSE4 instructions
  37. -- Looking for pthread.h
  38. -- Looking for pthread.h - found
  39. -- Looking for pthread_create
  40. -- Looking for pthread_create - not found
  41. -- Looking for pthread_create in pthreads
  42. -- Looking for pthread_create in pthreads - not found
  43. -- Looking for pthread_create in pthread
  44. -- Looking for pthread_create in pthread - found
  45. -- Found Threads: TRUE
  46. -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
  47. -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
  48. -- Looking for gethostbyname
  49. -- Looking for gethostbyname - found
  50. -- Looking for connect
  51. -- Looking for connect - found
  52. -- Looking for remove
  53. -- Looking for remove - found
  54. -- Looking for shmat
  55. -- Looking for shmat - found
  56. -- Looking for IceConnectionNumber in ICE
  57. -- Looking for IceConnectionNumber in ICE - found
  58. -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
  59. -- Looking for png_create_read_struct
  60. -- Looking for png_create_read_struct - found
  61. -- Looking for jpeg_read_header
  62. -- Looking for jpeg_read_header - found
  63. -- Searching for BLAS and LAPACK
  64. -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
  65. -- Checking for module 'cblas'
  66. -- No package 'cblas' found
  67. -- Checking for module 'lapack'
  68. -- Found lapack, version 3.10.2
  69. -- Looking for sys/types.h
  70. -- Looking for sys/types.h - found
  71. -- Looking for stdint.h
  72. -- Looking for stdint.h - found
  73. -- Looking for stddef.h
  74. -- Looking for stddef.h - found
  75. -- Check size of void*
  76. -- Check size of void* - done
  77. -- Found LAPACK library
  78. -- Found ATLAS BLAS library
  79. -- Looking for cblas_ddot
  80. -- Looking for cblas_ddot - found
  81. CUDA_TOOLKIT_ROOT_DIR not found or specified
  82. -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
  83. -- *** cuDNN V5.0 OR GREATER NOT FOUND. DLIB WILL NOT USE CUDA. ***
  84. -- *** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder.
  85. -- Configuring done
  86. -- Generating done
  87. -- Build files have been written to: /tmp/pip-build-8gm4jy99/dlib/tools/python/build
  88. Build using cmake ...
  89. Scanning dependencies of target dlib
  90. [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
  91. [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
  92. [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
  93. [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
  94. [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
  95. [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
  96. [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
  97. [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
  98. [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
  99. [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
  100. [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
  101. [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
  102. [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
  103. [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dnn/cpu_dlib.cpp.o
  104. [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dnn/tensor_tools.cpp.o
  105. [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
  106. [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
  107. [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
  108. [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
  109. [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
  110. [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
  111. [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
  112. [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
  113. [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
  114. [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
  115. [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
  116. [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
  117. [ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
  118. [ 38%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
  119. [ 40%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
  120. [ 41%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
  121. [ 42%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
  122. [ 44%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
  123. [ 45%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
  124. [ 46%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
  125. [ 48%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
  126. [ 49%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
  127. [ 50%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
  128. [ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
  129. [ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
  130. [ 54%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
  131. [ 56%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
  132. [ 57%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o
  133. [ 58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o
  134. [ 60%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o
  135. [ 61%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o
  136. [ 62%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/style.cpp.o
  137. [ 64%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o
  138. [ 65%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o
  139. [ 66%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o
  140. [ 68%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o
  141. [ 69%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o
  142. [ 70%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
  143. [ 72%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
  144. [ 73%] Linking CXX static library libdlib.a
  145. [ 73%] Built target dlib
  146. Scanning dependencies of target dlib_
  147. [ 74%] Building CXX object CMakeFiles/dlib_.dir/src/dlib.cpp.o
  148. [ 76%] Building CXX object CMakeFiles/dlib_.dir/src/matrix.cpp.o
  149. [ 77%] Building CXX object CMakeFiles/dlib_.dir/src/vector.cpp.o
  150. [ 78%] Building CXX object CMakeFiles/dlib_.dir/src/svm_c_trainer.cpp.o
  151. c++: internal compiler error: Killed (program cc1plus)
  152. Please submit a full bug report,
  153. with preprocessed source if appropriate.
  154. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
  155. CMakeFiles/dlib_.dir/build.make:134: recipe for target 'CMakeFiles/dlib_.dir/src/svm_c_trainer.cpp.o' failed
  156. make[2]: *** [CMakeFiles/dlib_.dir/src/svm_c_trainer.cpp.o] Error 4
  157. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dlib_.dir/all' failed
  158. make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
  159. Makefile:127: recipe for target 'all' failed
  160. make: *** [all] Error 2
  161. error: cmake build failed!
  162.  
  163. ----------------------------------------
  164. Command "/home/shafi/.virtualenvs/cv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8gm4jy99/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5j_r484x-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/shafi/.virtualenvs/cv/include/site/python3.5/dlib" failed with error code 1 in /tmp/pip-build-8gm4jy99/dlib/
RAW Paste Data