[mlpack-svn] [MLPACK] #241: build mlpack-1.0.1 failed at ubuntu 10.04

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Tue Aug 14 04:00:21 EDT 2012


#241: build mlpack-1.0.1 failed at ubuntu 10.04
-------------------------+--------------------------------------------------
 Reporter:  zhxgigi      |        Owner:     
     Type:  enhancement  |       Status:  new
 Priority:  major        |    Milestone:     
Component:  mlpack       |     Keywords:     
 Blocking:               |   Blocked By:     
-------------------------+--------------------------------------------------
 I downloaded mlpack-1.0.1 tarball and build fails at ubuntu-10.04-x64, see
 the attached log for more infomation, thanks you.

 Scanning dependencies of target mlpack
 [  1%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
 [  2%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/dists/gaussian_distribution.cpp.o
 [  4%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/math/random.cpp.o
 [  5%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp.o
 [  7%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/optimizers/lbfgs/test_functions.cpp.o
 [  8%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/cli.cpp.o
 [  9%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/cli_deleter.cpp.o
 [ 11%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/log.cpp.o
 [ 12%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/option.cpp.o
 [ 14%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/prefixedoutstream.cpp.o
 [ 15%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/save_restore_utility.cpp.o
 [ 16%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/core/util/timers.cpp.o
 [ 18%] Building CXX object
 src/mlpack/CMakeFiles/mlpack.dir/methods/gmm/gmm.cpp.o
 In file included from
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/max_variance_new_cluster.hpp:52,
                  from
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/kmeans.hpp:14,
                  from
 /root/projects/mlpack-1.0.1/src/mlpack/methods/gmm/gmm.cpp:12:
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:
 In static member function ‘static size_t
 mlpack::kmeans::MaxVarianceNewCluster::EmptyCluster(const MatType&,
 size_t, const MatType&, arma::Col<long unsigned int>&, arma::Col<long
 unsigned int>&) [with MatType = arma::Mat<double>]’:
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp:147:
 instantiated from ‘void mlpack::kmeans::KMeans<DistanceMetric,
 InitialPartitionPolicy, EmptyClusterPolicy>::Cluster(const MatType&,
 size_t, arma::Col<long unsigned int>&) const [with MatType =
 arma::Mat<double>, DistanceMetric = mlpack::metric::LMetric<2, false>,
 InitialPartitionPolicy = mlpack::kmeans::RandomPartition,
 EmptyClusterPolicy = mlpack::kmeans::MaxVarianceNewCluster]’
 /root/projects/mlpack-1.0.1/src/mlpack/methods/gmm/gmm_impl.hpp:31:
 instantiated from ‘void mlpack::gmm::GMM::InitialClustering(const
 ClusteringType&, const arma::mat&, std::vector<arma::Col<double>,
 std::allocator<arma::Col<double> > >&, std::vector<arma::Mat<double>,
 std::allocator<arma::Mat<double> > >&, arma::vec&) const [with
 ClusteringType = mlpack::kmeans::KMeans<mlpack::metric::LMetric<2, false>,
 mlpack::kmeans::RandomPartition, mlpack::kmeans::MaxVarianceNewCluster>]’
 /root/projects/mlpack-1.0.1/src/mlpack/methods/gmm/gmm.cpp:73:
 instantiated from here
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:35:
 error: ‘as_scalar’ was not declared in this scope
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp:147:
 instantiated from ‘void mlpack::kmeans::KMeans<DistanceMetric,
 InitialPartitionPolicy, EmptyClusterPolicy>::Cluster(const MatType&,
 size_t, arma::Col<long unsigned int>&) const [with MatType =
 arma::Mat<double>, DistanceMetric = mlpack::metric::LMetric<2, false>,
 InitialPartitionPolicy = mlpack::kmeans::RandomPartition,
 EmptyClusterPolicy = mlpack::kmeans::MaxVarianceNewCluster]’
 /root/projects/mlpack-1.0.1/src/mlpack/methods/gmm/gmm_impl.hpp:31:
 instantiated from ‘void mlpack::gmm::GMM::InitialClustering(const
 ClusteringType&, const arma::mat&, std::vector<arma::Col<double>,
 std::allocator<arma::Col<double> > >&, std::vector<arma::Mat<double>,
 std::allocator<arma::Mat<double> > >&, arma::vec&) const [with
 ClusteringType = mlpack::kmeans::KMeans<mlpack::metric::LMetric<2, false>,
 mlpack::kmeans::RandomPartition, mlpack::kmeans::MaxVarianceNewCluster>]’
 /root/projects/mlpack-1.0.1/src/mlpack/methods/gmm/gmm.cpp:73:
 instantiated from here
 /root/projects/mlpack-1.0.1/src/mlpack/../mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:51:
 error: ‘as_scalar’ was not declared in this scope
 make[2]: *** [src/mlpack/CMakeFiles/mlpack.dir/methods/gmm/gmm.cpp.o]
 Error 1
 make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
 make: *** [all] Error 2

-- 
Ticket URL: <https://trac.research.cc.gatech.edu/fastlab/ticket/241>
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