<html>#2772: Issues link against Kadath thorns and Intel MKL due to link ordering
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>tootle</td></tr>
<tr><td style='text-align:right'> Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>
<p>Comment (by tootle):</p>
<p><span class="ap-mention" data-atlassian-id="557058:59e031ba-9bb5-4298-a472-7b99d0ae6f22">@Roland Haas</span> Indeed that worked! Here is the final version with minor modification: </p>
<div class="codehilite language-diff"><pre><span></span><span class="gh">diff --git a/src/detect.sh b/src/detect.sh</span>
<span class="gh">index 9f80ed6..3fe691b 100755</span>
<span class="gd">--- a/src/detect.sh</span>
<span class="gi">+++ b/src/detect.sh</span>
<span class="gu">@@ -82,16 +82,18 @@ KADATH_LIBS="kadath"</span>
echo "BEGIN MESSAGE"
echo "KadathThorn: Detect settings - KADATH_DIR : ${KADATH_DIR}"
<span class="gd">-echo "KadathThorn: Detect settings - KADATH_LIB_DIRS : ${KADATH_LIB_DIRS}"</span>
<span class="gd">-echo "KadathThorn: Detect settings - KADATH_LIBS : ${KADATH_LIBS}"</span>
<span class="gi">+echo "KadathThorn: Detect settings - KADATH_INC_DIRS : ${KADATH_INC_DIRS}"</span>
<span class="gi">+echo "KadathThorn: Detect settings - KADATH_LIB_DIRS : ${KADATH_LIB_DIRS} ${GSL_LIB_DIRS} ${FFTW3_LIB_DIRS} ${BLAS_LIB_DIRSS} ${LAPACK_LIB_DIRS} ${BOOST_LIB_DIRS}"</span>
<span class="gi">+echo "KadathThorn: Detect settings - KADATH_LIBS : ${KADATH_LIBS} ${GSL_LIBS} ${FFTW3_LIBS} ${BLAS_LIBS} ${LAPACK_LIBS} ${BOOST_LIBS}"</span>
echo "END MESSAGE"
# Pass options to Cactus
echo "BEGIN MAKE_DEFINITION"
echo "KADATH_DIR = ${KADATH_DIR}"
echo "KADATH_INC_DIRS = ${KADATH_INC_DIRS}"
<span class="gd">-echo "KADATH_LIB_DIRS = ${KADATH_LIB_DIRS}"</span>
<span class="gd">-echo "KADATH_LIBS = ${KADATH_LIBS}"</span>
<span class="gi">+echo "KADATH_LIB_DIRS = ${KADATH_LIB_DIRS} ${GSL_LIB_DIRS} ${FFTW3_LIB_DIRS} ${BLAS_LIB_DIRSS} ${LAPACK_LIB_DIRS} ${BOOST_LIB_DIRS}"</span>
<span class="gi">+# keep the order like this, since MKL (LAPACK) can contain a (partial) FFTW3 which conflicts</span>
<span class="gi">+echo "KADATH_LIBS = ${KADATH_LIBS} ${GSL_LIBS} ${
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2772/issues-link-against-kadath-thorns-and'>https://bitbucket.org/einsteintoolkit/tickets/issues/2772/issues-link-against-kadath-thorns-and</a></p>
</html>