<html>#2400: Compiling OpenBLAS from source produces strange error message
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td></td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</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>Other</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>This fragment fixes the issue:</p>
<div class="codehilite language-diff"><pre><span></span><span class="gh">Index: build.sh</span>
<span class="gh">===================================================================</span>
<span class="gd">--- build.sh    (revision 235)</span>
<span class="gi">+++ build.sh    (working copy)</span>
<span class="gu">@@ -14,8 +14,8 @@</span>

 # Set locations
 THORN=OpenBLAS
<span class="gd">-NAME=OpenBLAS-0.2.19</span>
<span class="gd">-TARNAME=v0.2.19</span>
<span class="gi">+NAME=OpenBLAS-0.3.9</span>
<span class="gi">+TARNAME=v0.3.9</span>
 SRCDIR=&quot;$(dirname $0)&quot;
 BUILD_DIR=${SCRATCH_BUILD}/build/${THORN}
 if [ -z &quot;${OPENBLAS_INSTALL_DIR}&quot; ]; then
<span class="gu">@@ -33,6 +33,9 @@</span>
 if echo &#39;&#39; ${ARFLAGS} | grep 64 &gt; /dev/null 2&gt;&amp;1; then
     export OBJECT_MODE=64
 fi
<span class="gi">+# Keep only -j option in Makeflags but not Cactus&#39; make variables (some confuse</span>
<span class="gi">+# OpenBLAS&#39;s c_check script)</span>
<span class="gi">+MAKEFLAGS=${MAKEFLAGS%% -- *}</span>

 echo &quot;OpenBLAS: Preparing directory structure...&quot;
 cd ${SCRATCH_BUILD}
</pre></div>


<p>by removing all Cactus build system make variables from <code>MAKEFLAGS</code> (but keeping eg <code>-j</code> for parallelism).</p>
<p>Using <code>gcc -v</code> to learn about libraries that need to be linked against seems very wrong to me and modifying MAKEFLAGS is a poor way of working around this issue.</p>
<p>To be applied after the release and code deep freeze (on May 28th) and backported, along with an update of the tarball to 0.3.9.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2400/compiling-openblas-from-source-produces'>https://bitbucket.org/einsteintoolkit/tickets/issues/2400/compiling-openblas-from-source-produces</a></p>
</html>