<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>Trying to compile OpenBLAS from the included tarball (0.2.19.a) produces a strange error message (gcc 9.3.1):</p>
<div class="codehilite"><pre><span></span>gcc -g -std=gnu99 -O2 -fopenmp -Wall -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=24 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\&quot;_\&quot; -DCHAR_CNAME=\&quot;\&quot; -DNO_AFFINITY -I.. -rdynamic -w -o linktest linktest.c ../libopenblas_nehalemp-r0.2.19.so -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../..  -lgfortran -lm -lquadmath -lm -lc  NAME=/data/rhaas/postdoc/gr/cactus/CactusAMReX/configs/amrex/lib/libthorn_OpenBLAS.a  &amp;&amp; echo OK.
gcc: error: NAME=/data/rhaas/postdoc/gr/cactus/CactusAMReX/configs/amrex/lib/libthorn_OpenBLAS.a: No such file or directory
make[5]: *** [Makefile:134: ../libopenblas_nehalemp-r0.2.19.so] Error 1
</pre></div>


<p>As far as I can tell the incorrect string may (though I have no idea really) produced by <code>c_check</code> and in particular the line:</p>
<div class="codehilite"><pre><span></span>    $link = `$compiler_name -c ctest2.c -o ctest2.o 2&gt;&amp;1 &amp;&amp; $compiler_name $openmp -v ctest2.o -o ctest2 2&gt;&amp;1 &amp;&amp; rm -f ctest2.o ctest2 ctest2.exe`;
</pre></div>


<p>which sets <code>$link</code> to the output of <code>gcc -v</code> for a compiler call.
Possibly this goes away when updating the tarball.</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>