<p>Aha!  What's happening here is that libarmadillo.so is linked against the wrong liblapack.so!  It's linked against /usr/lib64/liblapack.so instead of /usr/lib64/atlas/liblapack.so, and this is indeed the problem I just helped someone else with.</p>

<p>It can be resolved with a patch I just submitted to Armadillo.  You can apply the patch by taking the two files below:</p>

<p><a href="https://github.com/mlpack/mlpack/blob/master/CMake/ARMA_FindBLAS.cmake">https://github.com/mlpack/mlpack/blob/master/CMake/ARMA_FindBLAS.cmake</a><br>
<a href="https://github.com/mlpack/mlpack/blob/master/CMake/ARMA_FindLAPACK.cmake">https://github.com/mlpack/mlpack/blob/master/CMake/ARMA_FindLAPACK.cmake</a></p>

<p>and putting them in cmake_aux/Modules/ in your Armadillo source directory.  Then, <code>rm CMakeCache.txt</code> and <code>./configure</code>, and you should see the following line of output:</p>

<pre><code>-- *** Armadillo wrapper library will use the following libraries:
-- *** ARMA_LIBS = /usr/lib64/atlas/libatlas.so;/usr/lib64/libblas.so;/usr/lib64/atlas/liblapack.so
</code></pre>

<p>Make sure that the right liblapack.so is being used (the ATLAS one), and then reconfigure and recompile mlpack.  I think this will solve your problem...</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/511#issuecomment-180104014">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFL4uI3iz4wdC-sc__Glbk_qqsooxks5pg9iDgaJpZM4HPrM8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/511#issuecomment-180104014"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>