[mlpack-git] [mlpack] GCC 4.9.2 failed to build MLPACK 1.0.12 (#432)

Li Dong notifications at github.com
Tue Apr 21 07:53:40 EDT 2015


When I built MLPACK by using GCC `4.9.2` on Mac OS X `10.10.3`, I encountered the following error:
```
Undefined symbols for architecture x86_64:
  "___emutls_v._ZN4arma23arma_rng_cxx11_instanceE", referenced from:
      mlpack::distribution::GaussianDistribution::Random() const in gaussian_distribution.cpp.o
      mlpack::tree::CosineTree::ColumnSampleLS()     in cosine_tree.cpp.o
      mlpack::tree::CosineTree::ColumnSamplesLS(std::vector<unsigned long, std::allocator<unsigned long> >&, arma::Col<double>&, unsigned long) in cosine_tree.cpp.o
      arma::arma_rng::randn<double>::operator double() const [clone .isra.300] in radical.cpp.o
      void arma::eglue_core<arma::eglue_plus>::apply<arma::Mat<double>, arma::Op<arma::Mat<double>, arma::op_repmat>, arma::eOp<arma::Gen<arma::Mat<double>, arma::gen_randn>, arma::eop_scalar_times> >(arma::Mat<double>&, arma::eGlue<arma::Op<arma::Mat<double>, arma::op_repmat>, arma::eOp<arma::Gen<arma::Mat<double>, arma::gen_randn>, arma::eop_scalar_times>, arma::eglue_plus> const&) in radical.cpp.o
      mlpack::svd::RegularizedSVDFunction::RegularizedSVDFunction(arma::Mat<double> const&, unsigned long, double) in regularized_svd_function.cpp.o
      mlpack::svd::RegularizedSVDFunction::RegularizedSVDFunction(arma::Mat<double> const&, unsigned long, double) in regularized_svd_function.cpp.o
      ...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmlpack.1.0.dylib] Error 1
make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
make: *** [all] Error 2
```
Clang did build MLPACK correctly.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/432
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150421/dfc4e35e/attachment.html>


More information about the mlpack-git mailing list