Advertisement
Guest User

mlpack cygwin Win7 64, compilation error

a guest
May 4th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.51 KB | None | 0 0
  1. Ozair Shafiq@OzairShafiq-PC /cygdrive/d/programming/mlpack/build
  2. $ cmake .. -DDEBUG=OFF -DPROFILE=OFF
  3. -- The C compiler identification is GNU 5.3.0
  4. -- The CXX compiler identification is GNU 5.3.0
  5. -- Check for working C compiler: /usr/bin/cc
  6. -- Check for working C compiler: /usr/bin/cc -- works
  7. -- Detecting C compiler ABI info
  8. -- Detecting C compiler ABI info - done
  9. -- Detecting C compile features
  10. -- Detecting C compile features - done
  11. -- Check for working CXX compiler: /usr/bin/c++.exe
  12. -- Check for working CXX compiler: /usr/bin/c++.exe -- works
  13. -- Detecting CXX compiler ABI info
  14. -- Detecting CXX compiler ABI info - done
  15. -- Detecting CXX compile features
  16. -- Detecting CXX compile features - done
  17. -- Checking for C++11 compiler
  18. -- Checking for C++11 compiler - available
  19. -- Found Armadillo: /usr/lib/libarmadillo.dll.a (found suitable version "6.500.5", minimum required is "4.100.0")
  20. -- Armadillo libraries: /usr/lib/libarmadillo.dll.a
  21. -- Boost version: 1.58.0
  22. -- Found the following Boost libraries:
  23. --   program_options
  24. --   unit_test_framework
  25. --   serialization
  26. -- Try OpenMP C flag = [-fopenmp]
  27. -- Performing Test OpenMP_FLAG_DETECTED
  28. -- Performing Test OpenMP_FLAG_DETECTED - Success
  29. -- Try OpenMP CXX flag = [-fopenmp]
  30. -- Performing Test OpenMP_FLAG_DETECTED
  31. -- Performing Test OpenMP_FLAG_DETECTED - Success
  32. -- Found OpenMP: -fopenmp
  33. -- Found Git: /usr/bin/git.exe (found version "2.8.0")
  34. -- gitversion.hpp is already up to date.
  35. -- Regenerating arma_config.hpp.
  36. CMake Warning (dev) at src/mlpack/methods/neighbor_search/CMakeLists.txt:40 (get_property):
  37.   Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  38.   Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  39.   command to set the policy and suppress this warning.
  40.  
  41.   The LOCATION property should not be read from target "mlpack_knn".  Use the
  42.   target name directly with add_custom_command, or use the generator
  43.   expression $<TARGET_FILE>, as appropriate.
  44.  
  45. This warning is for project developers.  Use -Wno-dev to suppress it.
  46.  
  47. CMake Warning (dev) at src/mlpack/methods/neighbor_search/CMakeLists.txt:48 (get_property):
  48.   Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  49.   Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  50.   command to set the policy and suppress this warning.
  51.  
  52.   The LOCATION property should not be read from target "mlpack_kfn".  Use the
  53.   target name directly with add_custom_command, or use the generator
  54.   expression $<TARGET_FILE>, as appropriate.
  55.  
  56. This warning is for project developers.  Use -Wno-dev to suppress it.
  57.  
  58. -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
  59. -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
  60. -- Found Doxygen: /usr/bin/doxygen.exe (found version "1.8.11")
  61. CMake Warning at CMakeLists.txt:348 (message):
  62.   txt2man not found; man pages will not be generated.
  63.  
  64.  
  65. -- Configuring done
  66. -- Generating done
  67. -- Build files have been written to: /cygdrive/d/programming/mlpack/build
  68.  
  69. Ozair Shafiq@OzairShafiq-PC /cygdrive/d/programming/mlpack/build
  70. $ make install
  71. Scanning dependencies of target mlpack_arma_config
  72. [  0%] Updating arma_config.hpp (if necessary)
  73. -- Regenerating arma_config.hpp.
  74. [  0%] Built target mlpack_arma_config
  75. Scanning dependencies of target mlpack_gitversion
  76. [  1%] Updating gitversion.hpp (if necessary)
  77. -- Found Git: /usr/bin/git.exe (found version "2.8.0")
  78. -- gitversion.hpp is already up to date.
  79. [  1%] Built target mlpack_gitversion
  80. Scanning dependencies of target mlpack_headers
  81. Moving header files to include/mlpack/
  82. [  1%] Built target mlpack_headers
  83. Scanning dependencies of target mlpack
  84. [  1%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
  85. In file included from /usr/include/armadillo:50:0,
  86.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/arma_extend/arma_extend.hpp:52,
  87.                  from /cygdrive/d/programming/mlpack/src/mlpack/prereqs.hpp:70,
  88.                  from /cygdrive/d/programming/mlpack/src/mlpack/core.hpp:195,
  89.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11,
  90.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
  91. /usr/include/armadillo_bits/compiler_setup.hpp:70:87: note: #pragma message: WARNING: Cygwin may have incomplete support for C++11 features;
  92.      #pragma message ("WARNING: Cygwin may have incomplete support for C++11 features;")
  93.                                                                                        ^
  94. /usr/include/armadillo_bits/compiler_setup.hpp:71:85: note: #pragma message: WARNING: if something breaks, you get to keep all the pieces.
  95.      #pragma message ("WARNING: if something breaks, you get to keep all the pieces.")
  96.                                                                                      ^
  97. /usr/include/armadillo_bits/compiler_setup.hpp:72:91: note: #pragma message: WARNING: to forcefully prevent Armadillo from using C++11 features,
  98.      #pragma message ("WARNING: to forcefully prevent Armadillo from using C++11 features,")
  99.                                                                                            ^
  100. /usr/include/armadillo_bits/compiler_setup.hpp:73:88: note: #pragma message: WARNING: #define ARMA_DONT_USE_CXX11 before #include <armadillo>
  101.      #pragma message ("WARNING: #define ARMA_DONT_USE_CXX11 before #include <armadillo>")
  102.                                                                                         ^
  103. In file included from /usr/include/armadillo:305:0,
  104.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/arma_extend/arma_extend.hpp:52,
  105.                  from /cygdrive/d/programming/mlpack/src/mlpack/prereqs.hpp:70,
  106.                  from /cygdrive/d/programming/mlpack/src/mlpack/core.hpp:195,
  107.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11,
  108.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
  109. /usr/include/armadillo_bits/memory.hpp: In static member function ‘static eT* arma::memory::acquire(arma::uword)’:
  110. /usr/include/armadillo_bits/memory.hpp:75:130: error: there are no arguments to ‘posix_memalign’ that depend on a template parameter, so a declaration of ‘posix_memalign’ must be available [-fpermissive]
  111.      int status = posix_memalign((void **)&memptr, ( (alignment >= sizeof(void*)) ? alignment : sizeof(void*) ), sizeof(eT)*n_elem);
  112.                                                                                                                                   ^
  113. /usr/include/armadillo_bits/memory.hpp:75:130: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
  114. In file included from /usr/include/armadillo:305:0,
  115.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/arma_extend/arma_extend.hpp:52,
  116.                  from /cygdrive/d/programming/mlpack/src/mlpack/prereqs.hpp:70,
  117.                  from /cygdrive/d/programming/mlpack/src/mlpack/core.hpp:195,
  118.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11,
  119.                  from /cygdrive/d/programming/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
  120. /usr/include/armadillo_bits/memory.hpp: In instantiation of ‘static eT* arma::memory::acquire(arma::uword) [with eT = long long unsigned int; arma::uword = long long unsigned int]’:
  121. /usr/include/armadillo_bits/SpMat_meat.hpp:30:36:   required from ‘arma::SpMat<eT>::SpMat() [with eT = double]
  122. /usr/include/armadillo_bits/fn_speye.hpp:65:10:   required from here
  123. /usr/include/armadillo_bits/memory.hpp:75:32: error: ‘posix_memalign’ was not declared in this scope
  124.      int status = posix_memalign((void **)&memptr, ( (alignment >= sizeof(void*)) ? alignment : sizeof(void*) ), sizeof(eT)*n_elem);
  125.                                 ^
  126. /usr/include/armadillo_bits/memory.hpp: In instantiation of ‘static eT* arma::memory::acquire(arma::uword) [with eT = double; arma::uword = long long unsigned int]’:
  127. /usr/include/armadillo_bits/Mat_meat.hpp:213:42:   required from ‘void arma::Mat<eT>::init_cold() [with eT = double]
  128. /usr/include/armadillo_bits/Mat_meat.hpp:643:16:   required from ‘arma::Mat<eT>::Mat(arma::Mat<eT>&&) [with eT = double]
  129. /usr/include/armadillo_bits/fn_misc.hpp:90:39:   required from here
  130. /usr/include/armadillo_bits/memory.hpp:75:32: error: ‘posix_memalign’ was not declared in this scope
  131. /usr/include/armadillo_bits/memory.hpp: In instantiation of ‘static eT* arma::memory::acquire(arma::uword) [with eT = long long int; arma::uword = long long unsigned int]’:
  132. /usr/include/armadillo_bits/Mat_meat.hpp:213:42:   required from ‘void arma::Mat<eT>::init_cold() [with eT = long long int]
  133. /usr/include/armadillo_bits/Mat_meat.hpp:643:16:   required from ‘arma::Mat<eT>::Mat(arma::Mat<eT>&&) [with eT = long long int]
  134. /usr/include/armadillo_bits/fn_randi.hpp:107:43:   required from here
  135. /usr/include/armadillo_bits/memory.hpp:75:32: error: ‘posix_memalign’ was not declared in this scope
  136. /usr/include/armadillo_bits/memory.hpp: In instantiation of ‘static eT* arma::memory::acquire(arma::uword) [with eT = unsigned char; arma::uword = long long unsigned int]’:
  137. /usr/include/armadillo_bits/podarray_meat.hpp:365:30:   required from ‘void arma::podarray<eT>::init_cold(arma::uword) [with eT = unsigned char; arma::uword = long long unsigned int]
  138. /usr/include/armadillo_bits/podarray_meat.hpp:86:12:   required from ‘arma::podarray<eT>::podarray(arma::uword) [with eT = unsigned char; arma::uword = long long unsigned int]
  139. /usr/include/armadillo_bits/diskio_meat.hpp:569:33:   required from here
  140. /usr/include/armadillo_bits/memory.hpp:75:32: error: ‘posix_memalign’ was not declared in this scope
  141. /usr/include/armadillo_bits/memory.hpp: In instantiation of ‘static eT* arma::memory::acquire(arma::uword) [with eT = int; arma::uword = long long unsigned int ’:
  142. /usr/include/armadillo_bits/podarray_meat.hpp:365:30:   required from ‘void arma::podarray<eT>::init_cold(arma::uword) [with eT = int; arma::uword = long long unsigned int]
  143. /usr/include/armadillo_bits/podarray_meat.hpp:86:12:   required from ‘arma::podarray<eT>::podarray(arma::uword) [with eT = int; arma::uword = long long unsigned int]
  144. /usr/include/armadillo_bits/auxlib_meat.hpp:3096:41:   required from ‘static bool arma::auxlib::solve_square_fast(arma::Mat<typename T1::elem_type>&, arma::Mat<typename T1::elem_type>&, const arma::Base<typename T1::elem_type, T1>&) [with T1 = arma::Mat<double>; typename T1::elem_type = double]
  145. /usr/include/armadillo_bits/glue_times_meat.hpp:95:50:   required from ‘static void arma::glue_times_redirect2_helper<true>::apply(arma::Mat<typename T1::elem_type>&, const arma::Glue<T1, T2, arma::glue_times>&) [with T1 = arma::eOp<arma::Mat<double>, arma::eop_scalar_times>; T2 = arma::Mat<double>; typename T1::elem_type = double]
  146. /usr/include/armadillo_bits/glue_times_meat.hpp:341:74:   required from ‘static void arma::glue_times_redirect<2ull>::apply(arma::Mat<typename T1::elem_type>&, const arma::Glue<T1, T2, arma::glue_times>&) [with T1 = arma::eOp<arma::Mat<double>, arma::eop_scalar_times>; T2 = arma::Mat<double>; typename T1::elem_type = double]
  147. /usr/include/armadillo_bits/glue_times_meat.hpp:435:36:   required from ‘static void arma::glue_times::apply(arma::Mat<typename T1::elem_type>&, const arma::Glue<T1, T2, arma::glue_times>&) [with T1 = arma::eOp<arma::Mat<double>, arma::eop_scalar_times>; T2 = arma::Mat<double>; typename T1::elem_type = double]
  148. /usr/include/armadillo_bits/Mat_meat.hpp:4935:19:   required from ‘arma::Mat<eT>::Mat(const arma::Glue<T1, T2, glue_type>&) [with T1 = arma::eOp<arma::Mat<double>, arma::eop_scalar_times>; T2 = arma::Mat<double>; glue_type = arma::glue_times; eT = double]
  149. /cygdrive/d/programming/mlpack/src/mlpack/core/dists/gaussian_distribution.hpp:182:41:   required from here
  150. /usr/include/armadillo_bits/memory.hpp:75:32: error: ‘posix_memalign’ was not declared in this scope
  151. src/mlpack/CMakeFiles/mlpack.dir/build.make:62: recipe for target 'src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o' failed
  152. make[2]: *** [src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o] Error 1
  153. CMakeFiles/Makefile2:237: recipe for target 'src/mlpack/CMakeFiles/mlpack.dir/all' failed
  154. make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
  155. Makefile:138: recipe for target 'all' failed
  156. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement