[mlpack-svn] [MLPACK] #222: MLPACK build fails right at the beginning

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Tue Apr 10 15:24:31 EDT 2012


#222: MLPACK build fails right at the beginning
--------------------------+-------------------------------------------------
 Reporter:  gsrivast      |        Owner:  rcurtin
     Type:  defect        |       Status:  new    
 Priority:  major         |    Milestone:         
Component:  build system  |     Keywords:         
 Blocking:                |   Blocked By:         
--------------------------+-------------------------------------------------
 Hi,

 I ran cmake and the resuls were as follows:

 gsrivast at nishkama: cmake -D DEBUG=OFF -D PROFILE=OFF ../
 -- The C compiler identification is GNU
 -- The CXX compiler identification is GNU
 -- Check for working C compiler: /usr/bin/gcc
 -- Check for working C compiler: /usr/bin/gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /usr/bin/c++
 -- Check for working CXX compiler: /usr/bin/c++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- A library with BLAS API found.
 -- A library with LAPACK API found.
 -- Found Pthreads: /usr/lib/x86_64-linux-gnu/libpthread.so
 -- Found components for Armadillo 3.0.0
 -- ARMADILLO_INCLUDES  = /usr/include/armadillo_bits;/usr/include
 -- ARMADILLO_LIBRARIES = /usr/lib/libarmadillo.so
 -- Found LibXml2: /usr/lib/libxml2.so
 -- Boost version: 1.46.1
 -- Found the following Boost libraries:
 --   math_c99
 --   program_options
 --   unit_test_framework
 -- Boost version: 1.46.1
 -- Found the following Boost libraries:
 --   random
 -- Found Doxygen: /usr/bin/doxygen
 -- Configuring done
 -- Generating done
 -- Build files have been written to:
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/build


 But when I try make, it fails right in the beginning. Please help:

 Scanning dependencies of target mlpack
 [  1%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
 In file included from /usr/include/armadillo:438:0,
                  from
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/src/mlpack/../mlpack/core/arma_extend/arma_extend.hpp:29,
                  from
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/src/mlpack/../mlpack/core.hpp:142,
                  from
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/src/mlpack/core/dists/discrete_distribution.hpp:11,
                  from
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/src/mlpack/core/dists/discrete_distribution.cpp:7:
 /usr/include/armadillo_bits/glue_times_meat.hpp: In static member function
 ‘static void arma::glue_times_redirect<3u>::apply(arma::Mat<typename
 T1::elem_type>&, const arma::Glue<arma::Glue<T1, T2, arma::glue_times>,
 T3, arma::glue_times>&) [with T1 = arma::Op<arma::Col<double>,
 arma::op_htrans2>, T2 = arma::Op<arma::Mat<double>, arma::op_inv>, T3 =
 arma::Col<double>, typename T1::elem_type = double]’:
 /usr/include/armadillo_bits/glue_times_meat.hpp:240:3:   instantiated from
 ‘static void arma::glue_times::apply(arma::Mat<typename T1::elem_type>&,
 const arma::Glue<T1, T2, arma::glue_times>&) [with T1 =
 arma::Glue<arma::Op<arma::Col<double>, arma::op_htrans2>,
 arma::Op<arma::Mat<double>, arma::op_inv>, arma::glue_times>, T2 =
 arma::Col<double>, typename T1::elem_type = double]’
 /usr/include/armadillo_bits/Mat_meat.hpp:3509:3:   instantiated from
 ‘const arma::Mat<eT>& arma::Mat<eT>::operator=(const arma::Glue<T1, T2,
 glue_type>&) [with T1 = arma::Glue<arma::Op<arma::Col<double>,
 arma::op_htrans2>, arma::Op<arma::Mat<double>, arma::op_inv>,
 arma::glue_times>, T2 = arma::Col<double>, glue_type = arma::glue_times,
 eT = double]’
 /usr/include/armadillo_bits/Col_meat.hpp:205:3:   instantiated from
 ‘arma::Col<eT>::Col(const arma::Base<eT, T1>&) [with T1 =
 arma::Glue<arma::Glue<arma::Op<arma::Col<double>, arma::op_htrans2>,
 arma::Op<arma::Mat<double>, arma::op_inv>, arma::glue_times>,
 arma::Col<double>, arma::glue_times>, eT = double]’
 /home/gsrivast/BackupRequired/Research/Softwares/mlpack-1.0.1/src/mlpack/../mlpack/methods/gmm/phi.hpp:59:56:
 instantiated from here
 /usr/include/armadillo_bits/glue_times_meat.hpp:162:49: error: no matching
 function for call to
 ‘arma::partial_unwrap_check<arma::Op<arma::Col<double>, arma::op_htrans2>
 >::partial_unwrap_check(const arma::Op<arma::Col<double>,
 arma::op_htrans2>&, arma::Mat<double>&)’
 /usr/include/armadillo_bits/glue_times_meat.hpp:162:49: note: candidates
 are:
 /usr/include/armadillo_bits/unwrap.hpp:1311:3: note:
 arma::partial_unwrap_check<arma::Op<arma::Col<eT>, arma::op_htrans2>
 >::partial_unwrap_check(const arma::Op<arma::Mat<eT>, arma::op_htrans2>&,
 const arma::Mat<eT>&) [with eT = double]
 /usr/include/armadillo_bits/unwrap.hpp:1311:3: note:   no known conversion
 for argument 1 from ‘const arma::Op<arma::Col<double>, arma::op_htrans2>’
 to ‘const arma::Op<arma::Mat<double>, arma::op_htrans2>&’
 /usr/include/armadillo_bits/unwrap.hpp:1306:7: note:
 arma::partial_unwrap_check<arma::Op<arma::Col<double>, arma::op_htrans2>
 >::partial_unwrap_check(const
 arma::partial_unwrap_check<arma::Op<arma::Col<double>, arma::op_htrans2>
 >&)
 /usr/include/armadillo_bits/unwrap.hpp:1306:7: note:   candidate expects 1
 argument, 2 provided
 make[2]: ***
 [src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o]
 Error 1
 make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
 make: *** [all] Error 2

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/222>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list