<html>#117: Error while building multiple configurations
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Erik Schnetter</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>resolved</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>SimFactory</td></tr>
</table>

<p>Changes (by Roland Haas):</p>
<p><table>
<tr><td>status:</td><td>resolved (was new)</td></tr>
</table></p>
<p>I wanted to build multiple configurations at once with the command</p>
<p>./simfactory/sim build sim-debug sim</p>
<p>sim-debug is a debug configuration, sim is optimised. SimFactory built sim-debug, then aborted with the error:</p>
<p>optionlist is: /Users/eschnett/EinsteinToolkit-hg/configs/sim/OptionList
Error: pattern '^\s<em>DEBUG\s</em>=.*$' exists already</p>
<p>It assumes that SimFactory doesn't properly distinguish between the different build options of the different configurations.</p>
<p><strong>Keyword:</strong></p>
<p>Comment (by Roland Haas):</p>
<p>Worksforme. Not sure when this was fixed but already  git hash <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2/commits/a6725750a49a80b6efe927e7bf8ec4d1b82cef28" rel="nofollow">a672575</a> "This is a major commit. Please test and get back to me if there are (and there probably will be) issues." of <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2" rel="nofollow">simfactory2</a> from ~8 years ago lets me compile both of them. That commit introduces a separate <code>DefineDatabase</code> in <code>sim-build.py/PreConfiguration</code>. To document what I did:</p>
<div class="codehilite"><pre><span></span>echo &gt; null.th
simfactory/bin/sim build --debug null-debug
simfactory/bin/sim build null
simfactory/bin/sim build null-debug null
</pre></div>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/117/error-while-building-multiple'>https://bitbucket.org/einsteintoolkit/tickets/issues/117/error-while-building-multiple</a></p>
</html>