Advertisement
Guest User

Untitled

a guest
Aug 8th, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. Consolidate compiler generated dependencies of target mlpack_test
  2. [ 94%] Building CXX object src/mlpack/tests/CMakeFiles/mlpack_test.dir/load_save_test.cpp.o
  3. In file included from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load.hpp:305,
  4. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/util/io.hpp:32,
  5. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core.hpp:72,
  6. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  7. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4,
  8. from <command-line>:
  9. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_impl.hpp: In instantiation of ‘bool mlpack::data::Load(const string&, MatType&, bool, bool, mlpack::data::file_type) [with MatType = arma::Mat<double>; std::string = std::__cxx11::basic_string<char>]’:
  10. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/tests/load_save_test.cpp:30:3: required from here
  11. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_impl.hpp:98:37: error: invalid initialization of reference of type ‘arma::SpMat<double>&’ from expression of type ‘arma::Mat<double>’
  12. 98 | return LoadSparseMatrix<MatType>(filename, matrix, fatal, transpose);
  13. | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_impl.hpp:320:53: note: in passing argument 2 of ‘bool mlpack::data::LoadSparseMatrix(const string&, arma::SpMat<typename T1::elem_type>&, bool, bool) [with MatType = arma::Mat<double>; std::string = std::__cxx11::basic_string<char>; typename T1::elem_type = double]’
  15. 320 | arma::SpMat<typename MatType::elem_type>& matrix,
  16. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  17. In file included from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_csv.hpp:551,
  18. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load.hpp:24,
  19. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/util/io.hpp:32,
  20. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core.hpp:72,
  21. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  22. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4,
  23. from <command-line>:
  24. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_csv_impl.hpp: In instantiation of ‘bool mlpack::data::LoadCSV::LoadCSVFile(MatType&, std::fstream&) [with MatType = arma::SpMat<double>; std::fstream = std::basic_fstream<char>]’:
  25. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_impl.hpp:187:35: required from ‘bool mlpack::data::LoadDenseMatrix(const string&, MatType&, bool, bool, mlpack::data::file_type) [with MatType = arma::SpMat<double>; std::string = std::__cxx11::basic_string<char>]’
  26. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_impl.hpp:93:36: required from ‘bool mlpack::data::Load(const string&, MatType&, bool, bool, mlpack::data::file_type) [with MatType = arma::SpMat<double>; std::string = std::__cxx11::basic_string<char>]’
  27. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/tests/load_save_test.cpp:147:3: required from here
  28. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_csv_impl.hpp:268:35: error: cannot bind non-const lvalue reference of type ‘arma::SpMat<double>::elem_type&’ {aka ‘double&’} to an rvalue of type ‘double’
  29. 268 | ConvertToken<MatType>(x.at(row, col), token);
  30. | ~~~~^~~~~~~~~~
  31. In file included from /usr/include/armadillo:630,
  32. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/arma_extend/arma_extend.hpp:17,
  33. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/prereqs.hpp:83,
  34. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core.hpp:67,
  35. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  36. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4,
  37. from <command-line>:
  38. /usr/include/armadillo_bits/MapMat_meat.hpp:1112:1: note: after user-defined conversion: ‘arma::SpMat_MapMat_val<eT>::operator eT() const [with eT = double]’
  39. 1112 | SpMat_MapMat_val<eT>::operator eT() const
  40. | ^~~~~~~~~~~~~~~~~~~~
  41. In file included from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_csv.hpp:551,
  42. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load.hpp:24,
  43. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/util/io.hpp:32,
  44. from /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core.hpp:72,
  45. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  46. from /home/heisenbug/mlpack/branches/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4,
  47. from <command-line>:
  48. /home/heisenbug/mlpack/branches/mlpack/src/mlpack/core/data/load_csv_impl.hpp:52:59: note: initializing argument 1 of ‘bool mlpack::data::LoadCSV::ConvertToken(typename MatType::elem_type&, const string&) [with MatType = arma::SpMat<double>; typename MatType::elem_type = double; std::string = std::__cxx11::basic_string<char>]’
  49. 52 | bool LoadCSV::ConvertToken(typename MatType::elem_type& val, const std::string& token)
  50. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
  51. make[3]: *** [src/mlpack/tests/CMakeFiles/mlpack_test.dir/build.make:85: src/mlpack/tests/CMakeFiles/mlpack_test.dir/load_save_test.cpp.o] Error 1
  52. make[2]: *** [CMakeFiles/Makefile2:3712: src/mlpack/tests/CMakeFiles/mlpack_test.dir/all] Error 2
  53. make[1]: *** [CMakeFiles/Makefile2:3719: src/mlpack/tests/CMakeFiles/mlpack_test.dir/rule] Error 2
  54. make: *** [Makefile:1024: mlpack_test] Error 2
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement