[mlpack-svn] [MLPACK] #260: Build error on linking mlpack

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Wed Nov 28 15:43:21 EST 2012


#260: Build error on linking mlpack
---------------------------+------------------------------------------------
  Reporter:  march         |        Owner:  rcurtin     
      Type:  defect        |       Status:  accepted    
  Priority:  major         |    Milestone:  mlpack 1.0.4
 Component:  build system  |   Resolution:              
  Keywords:                |     Blocking:              
Blocked By:                |  
---------------------------+------------------------------------------------
Changes (by rcurtin):

  * status:  new => accepted
  * component:  armadillo sparse => build system
  * milestone:  => mlpack 1.0.4


Comment:

 What system is this on?  ion?  I think that this might be a situation
 where libarmadillo.so is not properly wrapping liblapack.so and
 libblas.so.  If you can tell me more about the system and how I can get a
 shell on it, I can probably reproduce and fix the problem fairly quickly.
 A couple workarounds:

  * for the mlpack executables, in the CMake configuration command
 'target_link_libraries()' add "lapack" and "blas".  That will add -llapack
 and -lblas to the linker command line.
  * for your own executables, when linking, add -llapack and -lblas

 For (a little) more information, see the Armadillo FAQ, item 5 under
 "bugs": http://arma.sourceforge.net/faq.html
 It doesn't provide a thorough explanation of why exactly linking isn't
 working, though.  I have a feeling by the time I resolve this bug I will
 have a complete understanding of that issue and may be able to patch it
 upstream...

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/260#comment:1>
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