<html>#2679: How to link an externally compiled library during ET compilation
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Maria Mutz</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>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>Hello Maria, I had a look at make.log.pdf (a text file is sufficient, there is no need to convert to PDF). Unfortunately, I am still not sure what is going on. The error message is produced by the linker (ld) but the compilation does not yet have reached the final linking stage and seems to be just compiling <code>include_modulesfiles_MRNS.f90</code> which should only compile and not attempt to link.</p>
<p>There may be “confusing” files present in the src directory (or your environment may contain strange variables) is my best guess. Is the file that produces the error (<code>include_modulesfiles_MRNS.f90</code>) the first Fortran 90 file ever compiled?</p>
<p>Could you please use the command</p>
<div class="codehilite"><pre><span></span><span> VERBOSE=1 simfactory/bin/sim build -j1 2&gt;&amp;1 | tee make.log  </span>
</pre></div>


<p>indicated on <a data-is-external-link="true" href="http://einsteintoolkit.org/support.html#general-guidelines-for-questions" rel="nofollow">http://einsteintoolkit.org/support.html#general-guidelines-for-questions</a> to ensure that make outputs the actual commands it executes (this is what <code>VERBOSE=yes</code> does) and compilation happens serially (<code>-j1</code>) so that one is sure what command produces the error?</p>
<p>Also if you could run <code>env &gt;env.log</code> and attach the file <code>env.log</code> this may help.</p>
<p>Ideally also if possible, could you inlcude the source file <code>MRNS/Cocalthorn/src/include_modulefiles_MRNS.f90</code> (via private mail to <a data-is-external-link="true" href="mailto:rhaas@illinois.edu" rel="nofollow">rhaas@illinois.edu</a> if needed)?</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2679/how-to-link-an-externally-compiled-library'>https://bitbucket.org/einsteintoolkit/tickets/issues/2679/how-to-link-an-externally-compiled-library</a></p>
</html>